Package zombie.core.opengl
Class PZGLUtil
java.lang.Object
zombie.core.opengl.PZGLUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkGLError
(boolean stackTrace) static void
checkGLErrorThrow
(String format, Object... args) static void
loadMatrix
(int mode, org.joml.Matrix4f matrix) static void
loadMatrix
(org.joml.Matrix4f matrix) static void
multMatrix
(int mode, org.joml.Matrix4f matrix) static void
multMatrix
(org.joml.Matrix4f matrix) static void
popMatrix
(int mode) static void
printGLState
(PrintStream out) static void
pushAndLoadMatrix
(int mode, org.joml.Matrix4f matrix) static void
pushAndMultMatrix
(int mode, org.joml.Matrix4f matrix)
-
Constructor Details
-
PZGLUtil
public PZGLUtil()
-
-
Method Details
-
checkGLErrorThrow
public static void checkGLErrorThrow(String format, Object... args) throws org.lwjglx.opengl.OpenGLException - Throws:
org.lwjglx.opengl.OpenGLException
-
checkGLError
public static boolean checkGLError(boolean stackTrace) -
printGLState
-
loadMatrix
public static void loadMatrix(org.joml.Matrix4f matrix) -
multMatrix
public static void multMatrix(org.joml.Matrix4f matrix) -
loadMatrix
public static void loadMatrix(int mode, org.joml.Matrix4f matrix) -
multMatrix
public static void multMatrix(int mode, org.joml.Matrix4f matrix) -
pushAndLoadMatrix
public static void pushAndLoadMatrix(int mode, org.joml.Matrix4f matrix) -
pushAndMultMatrix
public static void pushAndMultMatrix(int mode, org.joml.Matrix4f matrix) -
popMatrix
public static void popMatrix(int mode)
-