/[gzz]/gzz/gzz/gfx/gl/GL.java
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/GL.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by tjl, Wed Dec 4 10:54:22 2002 UTC revision 1.26 by tjl, Thu Dec 5 08:08:11 2002 UTC
# Line 300  public class GL { Line 300  public class GL {
300      }      }
301      static private native void deleteRenderable3(int id);      static private native void deleteRenderable3(int id);
302    
303  //--------- Window  //--------- Renderable surface
304      /** An on-screen GLX window into which graphics can be drawn.      static public class RenderingSurface extends NonRenderableJavaObject {
305       */          private RenderingSurface(int id) { super(id); }
     final static public class Window extends NonRenderableJavaObject {  
   
         private Window(int id) { super(id); }  
   
306          protected void deleteObj() { deleteWindow(getId()); }          protected void deleteObj() { deleteWindow(getId()); }
307    
         // XXX ???  
         public void repaint() { GL.repaintWindow(getId()); }  
   
         /** Call the EventHandler.timeout(id) with the given id,  
          * after at least ms milliseconds have passed.  
          */  
         public void addTimeout(int ms, int id) {  
             addTimeoutWindow(getId(), ms, id);  
         }  
   
308          /** Get the current bounds of the window on screen.          /** Get the current bounds of the window on screen.
309             * For off-screen surfaces, only width and height are
310             * significant.
311           */           */
312          public Rectangle getBounds() {          public Rectangle getBounds() {
313              Rectangle rect = new Rectangle();              Rectangle rect = new Rectangle();
# Line 333  public class GL { Line 321  public class GL {
321          /** Release this window from being the current OpenGL context.          /** Release this window from being the current OpenGL context.
322           */           */
323          public void release() { impl_Window_release(getId()); }          public void release() { impl_Window_release(getId()); }
324        }
325    //--------- Window
326        /** An on-screen GLX window into which graphics can be drawn.
327         */
328        final static public class Window extends RenderingSurface {
329    
330            private Window(int id) { super(id); }
331    
332            // XXX ???
333            public void repaint() { GL.repaintWindow(getId()); }
334    
335            /** Call the EventHandler.timeout(id) with the given id,
336             * after at least ms milliseconds have passed.
337             */
338            public void addTimeout(int ms, int id) {
339                addTimeoutWindow(getId(), ms, id);
340            }
341    
342          /** Move the upper left corner of the window to the given coordinates.          /** Move the upper left corner of the window to the given coordinates.
343           */           */

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26