Package com.luciad.view.lightspeed.util
Class TLspViewPaintUtil
java.lang.Object
com.luciad.view.lightspeed.util.TLspViewPaintUtil
Provides utility methods related to rendering to a view.
- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
beginOrthoRendering
(ILcdGLDrawable aGLDrawable) Sets up orthographic rendering such that OpenGL coordinates match pixel coordinates in the givenILcdGLDrawable
.static void
endOrthoRendering
(ILcdGLDrawable aGLDrawable) Undoes a previously set orthographic projection.
-
Constructor Details
-
TLspViewPaintUtil
public TLspViewPaintUtil()
-
-
Method Details
-
beginOrthoRendering
Sets up orthographic rendering such that OpenGL coordinates match pixel coordinates in the givenILcdGLDrawable
. 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
Undoes a previously set orthographic projection.- Parameters:
aGLDrawable
- the drawable used for rendering
-