summaryrefslogtreecommitdiffstats
path: root/src/demos/testContextDestruction/TestContextDestruction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/testContextDestruction/TestContextDestruction.java')
-rwxr-xr-xsrc/demos/testContextDestruction/TestContextDestruction.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/demos/testContextDestruction/TestContextDestruction.java b/src/demos/testContextDestruction/TestContextDestruction.java
index fd9dd6e..fea89da 100755
--- a/src/demos/testContextDestruction/TestContextDestruction.java
+++ b/src/demos/testContextDestruction/TestContextDestruction.java
@@ -176,7 +176,7 @@ public class TestContextDestruction {
}
class Listener implements GLEventListener {
- public void init(GLDrawable drawable) {
+ public void init(GLAutoDrawable drawable) {
System.out.println("Listener.init()");
drawable.setGL(new DebugGL(drawable.getGL()));
@@ -193,11 +193,10 @@ public class TestContextDestruction {
gl.glEnable(GL.GL_NORMALIZE);
- Dimension d = drawable.getSize();
- reshape(drawable, 0, 0, d.width, d.height);
+ reshape(drawable, 0, 0, drawable.getWidth(), drawable.getHeight());
}
- public void display(GLDrawable drawable) {
+ public void display(GLAutoDrawable drawable) {
angle += 2.0f;
GL gl = drawable.getGL();
@@ -210,7 +209,7 @@ public class TestContextDestruction {
gl.glPopMatrix();
}
- public void reshape(GLDrawable drawable, int x, int y, int width, int height) {
+ public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
System.out.println("Listener.reshape()");
GL gl = drawable.getGL();
@@ -224,7 +223,7 @@ public class TestContextDestruction {
gl.glTranslatef(0.0f, 0.0f, -40.0f);
}
- public void destroy(GLDrawable drawable) {
+ public void destroy(GLAutoDrawable drawable) {
System.out.println("Listener.destroy()");
GL gl = drawable.getGL();
gl.glDeleteLists(gearDisplayList, 1);
@@ -232,7 +231,7 @@ public class TestContextDestruction {
}
// Unused routines
- public void displayChanged(GLDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
+ public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
}
private synchronized void initializeDisplayList(GL gl) {