Examples of WebGLContextAttributes


Examples of com.google.gwt.webgl.client.WebGLContextAttributes

    root.add(canvasWidget);
    canvas.setWidth(config.width);
    canvas.setHeight(config.height);
    this.config = config;

    WebGLContextAttributes attributes = WebGLContextAttributes.create();
    attributes.setAntialias(config.antialiasing);
    attributes.setStencil(config.stencil);
    attributes.setAlpha(false);
    attributes.setPremultipliedAlpha(false);

    context = WebGLRenderingContext.getContext(canvas, attributes);
    context.viewport(0, 0, config.width, config.height);
    this.gl = config.useDebugGL ? new GwtGL20Debug(context) : new GwtGL20(context);
  }
View Full Code Here

Examples of com.google.gwt.webgl.client.WebGLContextAttributes

    root.add(canvasWidget);
    canvas.setWidth(config.width);
    canvas.setHeight(config.height);
    this.config = config;

    WebGLContextAttributes attributes = WebGLContextAttributes.create();
    attributes.setAntialias(config.antialiasing);
    attributes.setStencil(config.stencil);
    attributes.setAlpha(false);
    attributes.setPremultipliedAlpha(false);
    attributes.setPreserveDrawingBuffer(config.preserveDrawingBuffer);

    context = WebGLRenderingContext.getContext(canvas, attributes);
    context.viewport(0, 0, config.width, config.height);
    this.gl = config.useDebugGL ? new GwtGL20Debug(context) : new GwtGL20(context);
  }
View Full Code Here

Examples of com.googlecode.gwtgl.binding.WebGLContextAttributes

  protected AbstractGwtGLExample() {
    // create the button to launch the example
    final PushButton button = new PushButton("Launch example!");
    setWidget(0, 0, button);
   
    WebGLContextAttributes contextAttributes = WebGLContextAttributes.create();
    contextAttributes.setAlpha(false);

    // create the WebGL Canvas
    webGLCanvas = new WebGLCanvas(contextAttributes, "500px", "500px");
    glContext = webGLCanvas.getGlContext();
    glContext.viewport(0, 0, 500, 500);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.