diff options
author | Sven Gothel <[email protected]> | 2009-03-13 12:10:29 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-03-13 12:10:29 +0000 |
commit | 8417ded5c1f892b58a4608ff248842c8aed4026a (patch) | |
tree | f9ce74136307bd122c72cec3babd03c26052e9df /src/demos/GLInfo.java | |
parent | e03aaaf1b14cc40cb2c8f2158acf02390c4fafe6 (diff) |
Adapt to JOGL nwi package changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@320 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
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)); |