summaryrefslogtreecommitdiffstats
path: root/src/demos/gears/Gears.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/gears/Gears.java')
-rw-r--r--src/demos/gears/Gears.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java
index c007004..2ebc11d 100644
--- a/src/demos/gears/Gears.java
+++ b/src/demos/gears/Gears.java
@@ -46,7 +46,7 @@ public class Gears {
private int prevMouseX, prevMouseY;
private boolean mouseRButtonDown = false;
- public void init(GLDrawable drawable) {
+ public void init(GLAutoDrawable drawable) {
// Use debug pipeline
// drawable.setGL(new DebugGL(drawable.getGL()));
@@ -92,7 +92,7 @@ public class Gears {
drawable.addMouseMotionListener(this);
}
- 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) {
GL gl = drawable.getGL();
float h = (float)height / (float)width;
@@ -124,7 +124,7 @@ public class Gears {
gl.glTranslatef(0.0f, 0.0f, -40.0f);
}
- public void display(GLDrawable drawable) {
+ public void display(GLAutoDrawable drawable) {
angle += 2.0f;
GL gl = drawable.getGL();
@@ -156,7 +156,7 @@ public class Gears {
gl.glPopMatrix();
}
- public void displayChanged(GLDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
+ public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
private void gear(GL gl,
float inner_radius,