Class OpenGLHelper
java.lang.Object
com.marginallyclever.convenience.helpers.OpenGLHelper
A collection of static methods to help with OpenGL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkGLError
(com.jogamp.opengl.GL3 gl3, org.slf4j.Logger logger) static void
disableTextureEnd
(com.jogamp.opengl.GL3 gl, boolean oldState) static boolean
disableTextureStart
(com.jogamp.opengl.GL3 gl) static void
drawAtopEverythingEnd
(com.jogamp.opengl.GL3 gl, int previousState) static int
drawAtopEverythingStart
(com.jogamp.opengl.GL3 gl) static float
setLineWidth
(com.jogamp.opengl.GL3 gl, float newWidth)
-
Constructor Details
-
OpenGLHelper
public OpenGLHelper()
-
-
Method Details
-
drawAtopEverythingStart
public static int drawAtopEverythingStart(com.jogamp.opengl.GL3 gl) -
checkGLError
public static void checkGLError(com.jogamp.opengl.GL3 gl3, org.slf4j.Logger logger) -
drawAtopEverythingEnd
public static void drawAtopEverythingEnd(com.jogamp.opengl.GL3 gl, int previousState) -
setLineWidth
public static float setLineWidth(com.jogamp.opengl.GL3 gl, float newWidth) -
disableTextureStart
public static boolean disableTextureStart(com.jogamp.opengl.GL3 gl) -
disableTextureEnd
public static void disableTextureEnd(com.jogamp.opengl.GL3 gl, boolean oldState)
-