public class GLDrawableHelper
extends java.lang.Object
Constructor and Description |
---|
GLDrawableHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addGLEventListener(GLEventListener listener) |
void |
display(GLAutoDrawable drawable) |
boolean |
getAutoSwapBufferMode() |
void |
init(GLAutoDrawable drawable) |
void |
invokeGL(GLDrawable drawable,
GLContext context,
java.lang.Runnable runnable,
java.lang.Runnable initAction)
Principal helper method which runs a Runnable with the context
made current.
|
void |
removeGLEventListener(GLEventListener listener) |
void |
reshape(GLAutoDrawable drawable,
int x,
int y,
int width,
int height) |
void |
setAutoSwapBufferMode(boolean onOrOff) |
public void addGLEventListener(GLEventListener listener)
public void removeGLEventListener(GLEventListener listener)
public void init(GLAutoDrawable drawable)
public void display(GLAutoDrawable drawable)
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
public void setAutoSwapBufferMode(boolean onOrOff)
public boolean getAutoSwapBufferMode()
public void invokeGL(GLDrawable drawable, GLContext context, java.lang.Runnable runnable, java.lang.Runnable initAction)
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.