diff options
Diffstat (limited to 'src/demos/GLInfo.java')
-rwxr-xr-x | src/demos/GLInfo.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/demos/GLInfo.java b/src/demos/GLInfo.java index 02b3fa4..70fcb91 100755 --- a/src/demos/GLInfo.java +++ b/src/demos/GLInfo.java @@ -1,6 +1,7 @@ package demos; import java.nio.*; +import javax.media.nwi.*; import javax.media.opengl.*; import javax.media.opengl.util.*; import javax.media.opengl.glu.*; @@ -17,13 +18,13 @@ public class GLInfo implements GLEventListener { System.err.println("GLInfo.run()"); GLProfile.setProfileGLAny(); try { - GLCapabilities caps = new GLCapabilities(); + NWCapabilities caps = new NWCapabilities(); // For emulation library, use 16 bpp caps.setRedBits(5); caps.setGreenBits(6); caps.setBlueBits(5); caps.setDepthBits(16); - System.err.println("GLCapabilities PRE : "+caps); + System.err.println("NWCapabilities PRE : "+caps); Window nWindow = null; if(0!=(type&USE_AWT)) { @@ -38,7 +39,7 @@ public class GLInfo implements GLEventListener { // Size OpenGL to Video Surface window.setSize(width, height); - window.setFullscreen(true); + // window.setFullscreen(true); window.setVisible(true); window.display(); @@ -55,7 +56,7 @@ public class GLInfo implements GLEventListener { public void init(GLAutoDrawable drawable) { GL gl = drawable.getGL(); - System.err.println("GLCapabilities POST: "+drawable.getChosenGLCapabilities()); + System.err.println("NWCapabilities POST: "+drawable.getChosenNWCapabilities()); System.err.println("GL Profile: "+GLProfile.getProfile()); System.err.println("GL:" + gl); System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION)); |