Package gaiasky.util.gdx.shader.provider
Class BaseIntShaderProvider
java.lang.Object
gaiasky.util.gdx.shader.provider.BaseIntShaderProvider
- All Implemented Interfaces:
IObserver
,IntShaderProvider
- Direct Known Subclasses:
DefaultIntShaderProvider
,DepthIntShaderProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IntShader
createShader
(IntRenderable renderable) void
dispose()
Disposes all resources created by the providergetShader
(IntRenderable renderable) Returns aIntShader
for the givenIntRenderable
.void
Event notification call.
-
Field Details
-
shaders
-
-
Constructor Details
-
BaseIntShaderProvider
public BaseIntShaderProvider()
-
-
Method Details
-
getShader
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
-
dispose
public void dispose()Description copied from interface:IntShaderProvider
Disposes all resources created by the provider- Specified by:
dispose
in interfaceIntShaderProvider
-
notify
Description copied from interface:IObserver
Event notification call.
-