Class BaseIntShaderProvider
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.gdx.shader.provider.BaseIntShaderProvider
-
- All Implemented Interfaces:
IntShaderProvider
- Direct Known Subclasses:
DefaultIntShaderProvider
,DepthIntShaderProvider
public abstract class BaseIntShaderProvider extends java.lang.Object implements IntShaderProvider
-
-
Constructor Summary
Constructors Constructor Description BaseIntShaderProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IntShader
createShader(IntRenderable renderable)
void
dispose()
Disposes all resources created by the providerIntShader
getShader(IntRenderable renderable)
Returns aIntShader
for the givenIntRenderable
.
-
-
-
Field Detail
-
shaders
protected com.badlogic.gdx.utils.Array<IntShader> shaders
-
-
Method Detail
-
getShader
public IntShader getShader(IntRenderable renderable)
Description copied from interface:IntShaderProvider
Returns aIntShader
for the givenIntRenderable
. The RenderInstance may already contain a IntShader, in which case the provider may decide to return that.- Specified by:
getShader
in interfaceIntShaderProvider
- Parameters:
renderable
- the Renderable- Returns:
- the IntShader to be used for the RenderInstance
-
createShader
protected abstract IntShader createShader(IntRenderable renderable)
-
dispose
public void dispose()
Description copied from interface:IntShaderProvider
Disposes all resources created by the provider- Specified by:
dispose
in interfaceIntShaderProvider
-
-