Package gaiasky.render.system
Class ModelBatchRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ModelBatchRenderSystem
- All Implemented Interfaces:
IRenderSystem
public class ModelBatchRenderSystem extends AbstractRenderSystem
Renders with a given model batch.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelBatchRenderSystem.ModelRenderType
Nested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
Field Summary
Fields Modifier and Type Field Description protected IntModelBatch
batch
protected ComponentTypes
ctAtm
protected ComponentTypes
ctClouds
protected ModelBatchRenderSystem.ModelRenderType
type
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux, auxd, comp, POINT_UPDATE_FLAG, postRunnables, preRunnables, programs, rc
-
Constructor Summary
Constructors Constructor Description ModelBatchRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, IntModelBatch batch, ModelBatchRenderSystem.ModelRenderType type)
Creates a new model batch render component. -
Method Summary
Modifier and Type Method Description protected boolean
mustRender()
void
renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)
Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ctAtm
-
ctClouds
-
batch
-
type
-
-
Constructor Details
-
ModelBatchRenderSystem
public ModelBatchRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, IntModelBatch batch, ModelBatchRenderSystem.ModelRenderType type)Creates a new model batch render component.- Parameters:
rg
- The render group.alphas
- The alphas list.batch
- The model batch.type
- The model render type
-
-
Method Details
-
renderStud
public void renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)- Specified by:
renderStud
in classAbstractRenderSystem
-
mustRender
protected boolean mustRender()
-