Package com.luciad.view.opengl.binding
Interface ILcdGLEventListener
- All Known Implementing Classes:
ALcdGLEventAdapter
public interface ILcdGLEventListener
Listener for events that applications can respond to by drawing into an
ILcdGLDrawable. The drawable's OpenGL context is active when any of the
methods in this interface are called, so the application can safely make
OpenGL calls.
- See Also:
-
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.default void
postDisplay
(ILcdGLDrawable aDrawable) default 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.
-
Method Details
-
init
Called by the ILcdGLDrawable after its OpenGL context has been initialized.- Parameters:
aDrawable
- the ILcdGLDrawable
-
display
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.- Parameters:
aDrawable
- the ILcdGLDrawable
-
reshape
Called by the ILcdGLDrawable when it has been resized.- 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
-
preDisplay
-
postDisplay
-