public class TLspViewPaintUtil extends Object
Constructor and Description |
---|
TLspViewPaintUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
beginOrthoRendering(ILcdGLDrawable aGLDrawable)
Sets up orthographic rendering such that OpenGL coordinates match pixel coordinates in
the given
ILcdGLDrawable . |
static void |
endOrthoRendering(ILcdGLDrawable aGLDrawable)
Undoes a previously set orthographic projection.
|
public static void beginOrthoRendering(ILcdGLDrawable aGLDrawable)
ILcdGLDrawable
. This method makes sure that the y coordinate in
OpenGL is flipped, so that the OpenGL origin matches the Java origin.aGLDrawable
- the drawable used for renderingpublic static void endOrthoRendering(ILcdGLDrawable aGLDrawable)
aGLDrawable
- the drawable used for rendering