Class OGLProgramShader
java.lang.Object
com.blackrook.gloop.opengl.OGLObject
com.blackrook.gloop.opengl.gl2.OGLProgramShader
A single GLSL shader in a program pipeline.
- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringCompile log.protected ShaderTypeShader type.protected static int[]List of OpenGL object ids that were not deleted properly.protected static intAmount of OpenGL object ids that were not deleted properly. -
Method Summary
Methods inherited from class OGLObject
equals, equals, expand, expand, getLongName, getName, hashCode, isAllocated, setLongName, setName, toString
-
Field Details
-
UNDELETED_IDS
protected static int[] UNDELETED_IDSList of OpenGL object ids that were not deleted properly. -
UNDELETED_LENGTH
protected static int UNDELETED_LENGTHAmount of OpenGL object ids that were not deleted properly. -
type
Shader type. -
log
Compile log.
-
-
Method Details
-
free
-
getType
- Returns:
- the shader program type.
-
getLog
- Returns:
- the log from this program's compiling.
-
destroyUndeleted
public static int destroyUndeleted()Destroys undeleted programs abandoned from destroyed Java objects.This is automatically called by OGLSystem after every frame and should NEVER be called manually!
- Returns:
- the amount of objects deleted.
-
finalize
-