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 Details

    • init

      void init(ILcdGLDrawable aDrawable)
      Called by the ILcdGLDrawable after its OpenGL context has been initialized.
      Parameters:
      aDrawable - the ILcdGLDrawable
    • display

      void display(ILcdGLDrawable aDrawable)
      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

      void reshape(ILcdGLDrawable aDrawable, int aX, int aY, int aWidth, int aHeight)
      Called by the ILcdGLDrawable when it has been resized.
      Parameters:
      aDrawable - the ILcdGLDrawable
      aX - the new X coordinate of the viewport's lower left corner
      aY - the new Y coordinate of the viewport's lower left corner
      aWidth - the new width of the viewport
      aHeight - the new height of the viewport
    • dispose

      void dispose(ILcdGLDrawable aDrawable)
    • preDisplay

      default void preDisplay(ILcdGLDrawable aDrawable)
    • postDisplay

      default void postDisplay(ILcdGLDrawable aDrawable)