Modifier and Type | Interface and Description |
---|---|
static interface |
OpenGLCanvas.GestureHandler
Defines an object that is called to handle gestures.
|
static interface |
OpenGLCanvas.RenderCallback
Defines the OpenGL callbacks.
|
Modifier and Type | Method and Description |
---|---|
GLU |
getGLU()
gets the GLU object.
|
int |
getHeight()
returns the width of this height.
|
int |
getSurfaceHeight()
returns the height of the surface.
|
int |
getSurfaceWidth()
returns the width of the surface.
|
int |
getWidth()
returns the width of this widget.
|
void |
repaint()
causes repainting of the widget and OpenGL surface as a consequence.
|
void |
setGestureHandler(OpenGLCanvas.GestureHandler handler)
sets the gesture handler callback.
|
void |
setRendererCallback(OpenGLCanvas.RenderCallback renderer)
sets the renderer callback.
|
setEnabled, setVisible
void repaint()
void setRendererCallback(OpenGLCanvas.RenderCallback renderer)
renderer
- the callback to set, replaces previous if anyvoid setGestureHandler(OpenGLCanvas.GestureHandler handler)
handler
- the handler callback to set, replaces previous if anyGLU getGLU()
int getWidth()
int getHeight()
int getSurfaceWidth()
int getSurfaceHeight()