diff options
author | Kenneth Russel <[email protected]> | 2005-07-10 23:17:52 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-10 23:17:52 +0000 |
commit | 15bc81d1e89d16e7f462f13acb554d4df27fa1b8 (patch) | |
tree | 89dd265110545538f6b236cfd9f62d48fd9126f2 /src/demos/jgears/JGears.java | |
parent | affb27f968fb3cb7902146ad7b521b7b24d18fe5 (diff) |
Initial set of context-related changes for the JSR-231 API. GLContext
has been exposed in the public API. The GLEventListener callback
mechanism has been removed from the core GLContext implementation and
moved up to a higher level. GLAutoDrawable now contains the
GLEventListener-related methods, and the GLEventListener's methods now
receive a GLAutoDrawable as argument. All JOGL demos have been updated
for the new APIs. Many FIXMEs and much unimplemented functionality
remain. There is slightly different initialization behavior for the
demos containing pbuffers, and the deferring of reshape callbacks
needs to be rethought.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@100 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/jgears/JGears.java')
-rw-r--r-- | src/demos/jgears/JGears.java | 8 |
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, |