summaryrefslogtreecommitdiffstats
path: root/src/demos/jgears/JGears.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/jgears/JGears.java')
-rw-r--r--src/demos/jgears/JGears.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/jgears/JGears.java b/src/demos/jgears/JGears.java
index 91704f5..6a4d539 100644
--- a/src/demos/jgears/JGears.java
+++ b/src/demos/jgears/JGears.java
@@ -70,7 +70,7 @@ public class JGears {
private boolean mouseRButtonDown = false;
- public void init(GLDrawable drawable) {
+ public void init(GLAutoDrawable drawable) {
// Use debug pipeline
// drawable.setGL(new DebugGL(drawable.getGL()));
@@ -113,7 +113,7 @@ public class JGears {
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;
@@ -145,7 +145,7 @@ public class JGears {
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();
@@ -177,7 +177,7 @@ public class JGears {
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,