I activated Opera in the GwtGL examples (not live on http://gwtgl-examples.appspot.com/):
Now our *.gwt.xml looks like this:
To use the GWT 2.2 Canvas you must include the GWT module containing the canvas widget:WebGLCanvas webGLCanvas = new WebGLCanvas("500px", "500px");glContext = webGLCanvas.getGlContext();glContext.viewport(0, 0, 500, 500);
[...]
<inherits name='com.google.gwt.canvas.Canvas'/>
and change the initialization code to:
webGLCanvas = Canvas.createIfSupported();Remember: The Canvas and WebGLRenderingContext can both be null if the browser doesn't support Canvas or WebGL.
webGLCanvas.setCoordinateSpaceHeight(500);
webGLCanvas.setCoordinateSpaceWidth(500);
glContext = (WebGLRenderingContext) webGLCanvas.getContext("experimental-webgl");
glContext.viewport(0, 0, 500, 500);
[...]