Package com.luciad.view.opengl.binding
Class ALcdGLEventAdapter
java.lang.Object
com.luciad.view.opengl.binding.ALcdGLEventAdapter
- All Implemented Interfaces:
ILcdGLEventListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(ILcdGLDrawable aDrawable) Called by the ILcdGLDrawable when it requires repainting.void
dispose
(ILcdGLDrawable aDrawable) void
init
(ILcdGLDrawable aDrawable) Called by the ILcdGLDrawable after its OpenGL context has been initialized.void
postDisplay
(ILcdGLDrawable aDrawable) void
preDisplay
(ILcdGLDrawable aDrawable) void
reshape
(ILcdGLDrawable aDrawable, int aX, int aY, int aWidth, int aHeight) Called by the ILcdGLDrawable when it has been resized.
-
Constructor Details
-
ALcdGLEventAdapter
public ALcdGLEventAdapter()
-
-
Method Details
-
init
Description copied from interface:ILcdGLEventListener
Called by the ILcdGLDrawable after its OpenGL context has been initialized.- Specified by:
init
in interfaceILcdGLEventListener
- Parameters:
aDrawable
- the ILcdGLDrawable
-
display
Description copied from interface:ILcdGLEventListener
Called by the ILcdGLDrawable when it requires repainting. The drawable will swap its front and back buffers after the display() methods of all registered ILcdGLEventListeners have been called.- Specified by:
display
in interfaceILcdGLEventListener
- Parameters:
aDrawable
- the ILcdGLDrawable
-
reshape
Description copied from interface:ILcdGLEventListener
Called by the ILcdGLDrawable when it has been resized.- Specified by:
reshape
in interfaceILcdGLEventListener
- Parameters:
aDrawable
- the ILcdGLDrawableaX
- the new X coordinate of the viewport's lower left corneraY
- the new Y coordinate of the viewport's lower left corneraWidth
- the new width of the viewportaHeight
- the new height of the viewport
-
dispose
- Specified by:
dispose
in interfaceILcdGLEventListener
-
preDisplay
- Specified by:
preDisplay
in interfaceILcdGLEventListener
-
postDisplay
- Specified by:
postDisplay
in interfaceILcdGLEventListener
-