From 15bc81d1e89d16e7f462f13acb554d4df27fa1b8 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 10 Jul 2005 23:17:52 +0000 Subject: 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 --- src/gleem/TestMultiWin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gleem/TestMultiWin.java') diff --git a/src/gleem/TestMultiWin.java b/src/gleem/TestMultiWin.java index 4b9fa58..7a9fe14 100644 --- a/src/gleem/TestMultiWin.java +++ b/src/gleem/TestMultiWin.java @@ -79,7 +79,7 @@ public class TestMultiWin { private CameraParameters params = new CameraParameters(); private ExaminerViewer viewer; - public void init(GLDrawable drawable) { + public void init(GLAutoDrawable drawable) { gl = drawable.getGL(); glu = drawable.getGLU(); @@ -121,7 +121,7 @@ public class TestMultiWin { viewer.viewAll(gl); } - public void display(GLDrawable drawable) { + public void display(GLAutoDrawable drawable) { gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); viewer.update(gl); ManipManager.getManipManager().updateCameraParameters(drawable, viewer.getCameraParameters()); @@ -129,8 +129,8 @@ public class TestMultiWin { } // Unused routines - public void reshape(GLDrawable drawable, int x, int y, int w, int h) {} - public void displayChanged(GLDrawable drawable, boolean modeChanged, boolean deviceChanged) {} + public void reshape(GLAutoDrawable drawable, int x, int y, int w, int h) {} + public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {} } private static void showFrame(String name, Point location) { -- cgit v1.2.3