Package com.badlogic.gdx.assets.loaders
Class ShaderProgramLoader.ShaderProgramParameter
- java.lang.Object
-
- com.badlogic.gdx.assets.AssetLoaderParameters<ShaderProgram>
-
- com.badlogic.gdx.assets.loaders.ShaderProgramLoader.ShaderProgramParameter
-
- Enclosing class:
- ShaderProgramLoader
public static class ShaderProgramLoader.ShaderProgramParameter extends AssetLoaderParameters<ShaderProgram>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.assets.AssetLoaderParameters
AssetLoaderParameters.LoadedCallback
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringfragmentFileFile name to be used for the fragment program instead of the default determined by the file name used to submit this asset to AssetManager.booleanlogOnCompileFailureWhether to log (at the error level) the shader's log if it fails to compile.java.lang.StringprependFragmentCodeCode that is always added to the fragment shader code.java.lang.StringprependVertexCodeCode that is always added to the vertex shader code.java.lang.StringvertexFileFile name to be used for the vertex program instead of the default determined by the file name used to submit this asset to AssetManager.-
Fields inherited from class com.badlogic.gdx.assets.AssetLoaderParameters
loadedCallback
-
-
Constructor Summary
Constructors Constructor Description ShaderProgramParameter()
-
-
-
Field Detail
-
vertexFile
public java.lang.String vertexFile
File name to be used for the vertex program instead of the default determined by the file name used to submit this asset to AssetManager.
-
fragmentFile
public java.lang.String fragmentFile
File name to be used for the fragment program instead of the default determined by the file name used to submit this asset to AssetManager.
-
logOnCompileFailure
public boolean logOnCompileFailure
Whether to log (at the error level) the shader's log if it fails to compile. Default true.
-
prependVertexCode
public java.lang.String prependVertexCode
Code that is always added to the vertex shader code. This is added as-is, and you should include a newline (`\n`) if needed. ShaderProgram.prependVertexCode is placed before this code.
-
prependFragmentCode
public java.lang.String prependFragmentCode
Code that is always added to the fragment shader code. This is added as-is, and you should include a newline (`\n`) if needed. ShaderProgram.prependFragmentCode is placed before this code.
-
-