Package gaiasky.util.gdx.shader.provider
Class ShaderProgramProvider
java.lang.Object
com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ExtShaderProgram,ShaderProgramProvider.ShaderProgramParameter>
gaiasky.util.gdx.shader.provider.ShaderProgramProvider
public class ShaderProgramProvider
extends com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ExtShaderProgram,ShaderProgramProvider.ShaderProgramParameter>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionShaderProgramProvider
(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver) ShaderProgramProvider
(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver, String vertexFileSuffix, String fragmentFileSuffix) ShaderProgramProvider
(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver, String vertexFileSuffix, String geometryFileSuffix, String fragmentFileSuffix) -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor>
getDependencies
(String fileName, com.badlogic.gdx.files.FileHandle file, ShaderProgramProvider.ShaderProgramParameter parameter) static String
getShaderCode
(String prefix, String code) void
loadAsync
(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, ShaderProgramProvider.ShaderProgramParameter parameter) loadSync
(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, ShaderProgramProvider.ShaderProgramParameter parameter) Methods inherited from class com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader
unloadAsync
Methods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader
resolve
-
Constructor Details
-
ShaderProgramProvider
public ShaderProgramProvider(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver) -
ShaderProgramProvider
-
ShaderProgramProvider
-
-
Method Details
-
getShaderCode
-
getDependencies
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies(String fileName, com.badlogic.gdx.files.FileHandle file, ShaderProgramProvider.ShaderProgramParameter parameter) - Specified by:
getDependencies
in classcom.badlogic.gdx.assets.loaders.AssetLoader<ExtShaderProgram,
ShaderProgramProvider.ShaderProgramParameter>
-
loadAsync
public void loadAsync(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, ShaderProgramProvider.ShaderProgramParameter parameter) - Specified by:
loadAsync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ExtShaderProgram,
ShaderProgramProvider.ShaderProgramParameter>
-
loadSync
public ExtShaderProgram loadSync(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, ShaderProgramProvider.ShaderProgramParameter parameter) - Specified by:
loadSync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ExtShaderProgram,
ShaderProgramProvider.ShaderProgramParameter>
-