From 252efbfd61fb62883df028cba5743e458a5b18c7 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 30 Jun 2008 20:12:47 +0000 Subject: Refactored more C compiler setup into gluegen-cpptasks.xml to make it easier to build native sources via Ant. Provided new gluegen.cpptasks.setup.compiler target which sets up platform-independent compiler and linker IDs and other properties which can be used in other projects' build files. Refactored JOGL build to use some of these new properties and eliminate duplication; more code savings possible. Added new GLWindow class to Newt implementing GLAutoDrawable to increase code sharing, and supporting making OpenGL calls inside of EventListener callbacks. Moved repaint() method from GLAutoDrawable to AWTGLAutoDrawable. Added WindowEvent and WindowListener interfaces to Newt, currently implemented on Windows and AWT backends (X11 backend would need to support and watch for window resizes -- FIXME added). Refactored common functionality into Newt Event class. Renumbered event IDs to avoid collisions. Fixed potential problems with removing event listeners inside of EventListener callbacks. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1702 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/javax/media/opengl/GLAutoDrawable.java | 4 ---- src/classes/javax/media/opengl/GLDrawableFactory.java | 4 ++-- src/classes/javax/media/opengl/awt/AWTGLAutoDrawable.java | 3 +++ 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/classes/javax') diff --git a/src/classes/javax/media/opengl/GLAutoDrawable.java b/src/classes/javax/media/opengl/GLAutoDrawable.java index 688b78879..d4aff9107 100644 --- a/src/classes/javax/media/opengl/GLAutoDrawable.java +++ b/src/classes/javax/media/opengl/GLAutoDrawable.java @@ -81,10 +81,6 @@ public interface GLAutoDrawable extends GLDrawable { display} callback. */ public void display(); - /** Schedules a repaint of the component at some point in the - future. */ - public void repaint(); - /** Enables or disables automatic buffer swapping for this drawable. By default this property is set to true; when true, after all GLEventListeners have been called for a display() event, the diff --git a/src/classes/javax/media/opengl/GLDrawableFactory.java b/src/classes/javax/media/opengl/GLDrawableFactory.java index 50cf96a33..a6e382760 100644 --- a/src/classes/javax/media/opengl/GLDrawableFactory.java +++ b/src/classes/javax/media/opengl/GLDrawableFactory.java @@ -200,11 +200,11 @@ public abstract class GLDrawableFactory { throws GLException { if(null==GLProfile.getProfile()) { - throw new GLException("No choosen/preset profile"); + throw new GLException("No chosen/preset GLProfile"); } initializeNWFactory(); if(nwFactory == null) { - throw new GLException("Could not determine the NativeWindow-GLDrawableFactory"); + throw new GLException("Could not determine the NativeWindow GLDrawableFactory"); } return nwFactory; } diff --git a/src/classes/javax/media/opengl/awt/AWTGLAutoDrawable.java b/src/classes/javax/media/opengl/awt/AWTGLAutoDrawable.java index ef5a7f2d7..85163f0ff 100644 --- a/src/classes/javax/media/opengl/awt/AWTGLAutoDrawable.java +++ b/src/classes/javax/media/opengl/awt/AWTGLAutoDrawable.java @@ -43,4 +43,7 @@ import javax.media.opengl.*; import javax.media.opengl.glu.*; public interface AWTGLAutoDrawable extends GLAutoDrawable, ComponentEvents { + /** Schedules a repaint of the component at some point in the + future. */ + public void repaint(); } -- cgit v1.2.3