summaryrefslogtreecommitdiffstats
path: root/src/demos/fullscreen
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/fullscreen')
-rwxr-xr-xsrc/demos/fullscreen/GearsFullscreen.java8
-rwxr-xr-xsrc/demos/fullscreen/GearsFullscreen2.java8
-rwxr-xr-xsrc/demos/fullscreen/JGearsFullscreen.java8
3 files changed, 12 insertions, 12 deletions
diff --git a/src/demos/fullscreen/GearsFullscreen.java b/src/demos/fullscreen/GearsFullscreen.java
index 6c48ef0..f33221a 100755
--- a/src/demos/fullscreen/GearsFullscreen.java
+++ b/src/demos/fullscreen/GearsFullscreen.java
@@ -99,7 +99,7 @@ public class GearsFullscreen {
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()));
@@ -164,7 +164,7 @@ public class GearsFullscreen {
});
}
- 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;
@@ -196,7 +196,7 @@ public class GearsFullscreen {
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();
@@ -228,7 +228,7 @@ public class GearsFullscreen {
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,
diff --git a/src/demos/fullscreen/GearsFullscreen2.java b/src/demos/fullscreen/GearsFullscreen2.java
index d7502cf..0afad8c 100755
--- a/src/demos/fullscreen/GearsFullscreen2.java
+++ b/src/demos/fullscreen/GearsFullscreen2.java
@@ -120,7 +120,7 @@ public class GearsFullscreen2 {
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()));
@@ -186,7 +186,7 @@ public class GearsFullscreen2 {
});
}
- 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;
@@ -218,7 +218,7 @@ public class GearsFullscreen2 {
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();
@@ -250,7 +250,7 @@ public class GearsFullscreen2 {
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,
diff --git a/src/demos/fullscreen/JGearsFullscreen.java b/src/demos/fullscreen/JGearsFullscreen.java
index 6b68667..62b10fe 100755
--- a/src/demos/fullscreen/JGearsFullscreen.java
+++ b/src/demos/fullscreen/JGearsFullscreen.java
@@ -118,7 +118,7 @@ public class JGearsFullscreen {
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()));
@@ -199,7 +199,7 @@ public class JGearsFullscreen {
actMap.put(act, act);
}
- 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;
@@ -231,7 +231,7 @@ public class JGearsFullscreen {
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();
@@ -263,7 +263,7 @@ public class JGearsFullscreen {
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,