Class TLspViewPaintUtil

java.lang.Object
com.luciad.view.lightspeed.util.TLspViewPaintUtil

public class TLspViewPaintUtil extends Object
Provides utility methods related to rendering to a view.
Since:
2012.0
  • Constructor Details

    • TLspViewPaintUtil

      public TLspViewPaintUtil()
  • Method Details

    • beginOrthoRendering

      public static void beginOrthoRendering(ILcdGLDrawable aGLDrawable)
      Sets up orthographic rendering such that OpenGL coordinates match pixel coordinates in the given ILcdGLDrawable. This method makes sure that the y coordinate in OpenGL is flipped, so that the OpenGL origin matches the Java origin.
      Parameters:
      aGLDrawable - the drawable used for rendering
    • endOrthoRendering

      public static void endOrthoRendering(ILcdGLDrawable aGLDrawable)
      Undoes a previously set orthographic projection.
      Parameters:
      aGLDrawable - the drawable used for rendering