Package gaiasky.util.gdx.shader
Class TessellationShaderProgram
java.lang.Object
gaiasky.util.gdx.shader.ExtShaderProgram
gaiasky.util.gdx.shader.TessellationShaderProgram
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringCode that is always added to the tessellation shaders, typically used to inject a #version line.static StringFields inherited from class gaiasky.util.gdx.shader.ExtShaderProgram
attributeNames, attributes, attributeSizes, attributeTypes, COLOR_ATTRIBUTE, fragmentShaderFile, fragmentShaderHandle, fragmentShaderSource, geometryShaderFile, geometryShaderSource, invalidated, isCompiled, isDisposed, isLazy, log, name, NORMAL_ATTRIBUTE, params, pedantic, POSITION_ATTRIBUTE, prependFragmentCode, prependGeometryCode, prependVertexCode, program, TEXCOORD_ATTRIBUTE, type, uniformNames, uniforms, uniformSizes, uniformTypes, vertexShaderFile, vertexShaderHandle, vertexShaderSource -
Constructor Summary
ConstructorsConstructorDescriptionTessellationShaderProgram(String vertexShader, String tessellationControlShader, String tessellationEvaluationShader, String fragmentShader) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearAllShaderPrograms(com.badlogic.gdx.Application app) voiddispose()Disposes all resources associated with this shader.static Stringstatic intstatic voidinvalidateAllShaderPrograms(com.badlogic.gdx.Application app) Invalidates all shaders so the next time they are used new handles are generatedMethods inherited from class gaiasky.util.gdx.shader.ExtShaderProgram
begin, compile, createProgram, disableVertexAttribute, disableVertexAttribute, enableVertexAttribute, enableVertexAttribute, end, fetchAttributeLocation, fetchAttributes, fetchUniformLocation, fetchUniformLocation, fetchUniforms, getAttributeLocation, getAttributes, getAttributeSize, getAttributeType, getFragmentShaderSource, getLog, getUniformLocation, getUniforms, getUniformSize, getUniformType, getVertexShaderSource, hasAttribute, hasUniform, initializeLocalAssets, isCompiled, isLazy, setAttributef, setUniform1fv, setUniform1fv, setUniform2fv, setUniform2fv, setUniform3fv, setUniform3fv, setUniform4fv, setUniform4fv, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformf, setUniformi, setUniformi, setUniformi, setUniformi, setUniformi, setUniformi, setUniformi, setUniformi, setUniformMatrix, setUniformMatrix, setUniformMatrix, setUniformMatrix, setUniformMatrix, setUniformMatrix, setUniformMatrix, setUniformMatrix, setUniformMatrix3fv, setUniformMatrix4fv, setUniformMatrix4fv, setUniformMatrix4fv, setVertexAttribute, setVertexAttribute, setVertexAttribute, setVertexAttribute
-
Field Details
-
prependTessControlCode
Code that is always added to the tessellation shaders, typically used to inject a #version line. Note that this is added as-is, you should include a newline (`\n`) if needed. -
prependTessEvaluationCode
-
-
Constructor Details
-
TessellationShaderProgram
-
-
Method Details
-
invalidateAllShaderPrograms
public static void invalidateAllShaderPrograms(com.badlogic.gdx.Application app) Invalidates all shaders so the next time they are used new handles are generated -
clearAllShaderPrograms
public static void clearAllShaderPrograms(com.badlogic.gdx.Application app) -
getManagedStatus
-
getNumManagedShaderPrograms
public static int getNumManagedShaderPrograms()- Returns:
- the number of managed shader programs currently loaded
-
dispose
public void dispose()Description copied from class:ExtShaderProgramDisposes all resources associated with this shader. Must be called when the shader is no longer used.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classExtShaderProgram
-