diff options
author | Kenneth Russel <[email protected]> | 2008-10-30 00:36:37 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-10-30 00:36:37 +0000 |
commit | 1d4b8640e128143707e6c19f6249d6b4dba0d2a0 (patch) | |
tree | 6e84ac75c88aee73b60255048a00cfd301f8db3f /src/demos/multisample | |
parent | 0df738664c9ade75e38c3982560b5cf3e4cdf3df (diff) |
Incorporated patch from Michael Bien fixing roughly 80% of compilation errors
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@287 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/multisample')
-rwxr-xr-x | src/demos/multisample/Multisample.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/demos/multisample/Multisample.java b/src/demos/multisample/Multisample.java index 4db572a..c3c9a01 100755 --- a/src/demos/multisample/Multisample.java +++ b/src/demos/multisample/Multisample.java @@ -42,6 +42,7 @@ package demos.multisample; import java.awt.*; import java.awt.event.*; import javax.media.opengl.*; +import javax.media.opengl.awt.GLCanvas; public class Multisample { private GLCanvas canvas; @@ -89,7 +90,7 @@ public class Multisample { canvas.setSize(512, 512); frame.add(canvas, BorderLayout.CENTER); frame.pack(); - frame.show(); + frame.setVisible(true); frame.setLocation(0, 0); canvas.requestFocus(); @@ -109,7 +110,7 @@ public class Multisample { canvas.setSize(512, 512); frame.add(canvas, BorderLayout.CENTER); frame.pack(); - frame.show(); + frame.setVisible(true); frame.setLocation(512, 0); canvas.requestFocus(); @@ -122,7 +123,7 @@ public class Multisample { class Listener implements GLEventListener { public void init(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); gl.glClearColor(0, 0, 0, 0); // gl.glEnable(GL.GL_DEPTH_TEST); @@ -136,7 +137,7 @@ public class Multisample { } public void display(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); |