APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.utils

public abstract Class BaseShaderProvider

extends Object
implements ShaderProvider
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.graphics.g3d.utils.ShaderProvider, com.badlogic.gdx.utils.Disposable
Known Direct Subclasses
com.badlogic.gdx.graphics.g3d.utils.DefaultShaderProvider, com.badlogic.gdx.graphics.g3d.utils.DepthShaderProvider
Imports
com.badlogic.gdx.graphics.g3d.Renderable, .Shader, com.badlogic.gdx.utils.Array, .GdxRuntimeException

Field Summary

Modifier and TypeField and Description
protected Array<Shader>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract Shader
createShader(final Renderable renderable)

public void
dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

public Shader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

shadersback to summary
protected Array<Shader> shaders

Constructor Detail

BaseShaderProviderback to summary
public BaseShaderProvider()

Method Detail

createShaderback to summary
protected abstract Shader createShader(final Renderable renderable)
disposeback to summary
public void dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Doc from com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

Annotations
@Override
getShaderback to summary
public Shader getShader(Renderable renderable)

Implements com.badlogic.gdx.graphics.g3d.utils.ShaderProvider.getShader.

Doc from com.badlogic.gdx.graphics.g3d.utils.ShaderProvider.getShader.

Returns a Shader for the given Renderable. The RenderInstance may already contain a Shader, in which case the provider may decide to return that.

Annotations
@Override