Java com.badlogic.gdx.graphics.g3d ModelBatch fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.g3d ModelBatch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.g3d ModelBatch.

The text is from its open source code.

Constructor

ModelBatch()
Construct a ModelBatch with the default implementation
ModelBatch(final RenderContext context)
Construct a ModelBatch, using this constructor makes you responsible for calling context.begin() and context.end() yourself.
ModelBatch(final RenderableSorter sorter)
Construct a ModelBatch
ModelBatch(final ShaderProvider shaderProvider)
Construct a ModelBatch
ModelBatch(final RenderContext context, final ShaderProvider shaderProvider)
Construct a ModelBatch, using this constructor makes you responsible for calling context.begin() and context.end() yourself.
ModelBatch(final RenderContext context, final RenderableSorter sorter)
Construct a ModelBatch, using this constructor makes you responsible for calling context.begin() and context.end() yourself.
ModelBatch(final ShaderProvider shaderProvider, final RenderableSorter sorter)
Construct a ModelBatch
ModelBatch(final FileHandle vertexShader, final FileHandle fragmentShader)
Construct a ModelBatch with the default implementation and the specified ubershader.
ModelBatch(final String vertexShader, final String fragmentShader)
Construct a ModelBatch with the default implementation and the specified ubershader.
ModelBatch(final RenderContext context, final ShaderProvider shaderProvider, final RenderableSorter sorter)
Construct a ModelBatch, using this constructor makes you responsible for calling context.begin() and context.end() yourself.

Method

voidbegin(final Camera cam)
Start rendering one or more Renderable s.
voidend()
End rendering one or more Renderable s.
voidflush()
Flushes the batch, causing all Renderable s in the batch to be rendered.
CameragetCamera()
Provides access to the current camera in between #begin(Camera) and #end() .
voidrender(final RenderableProvider renderableProvider, final Environment environment)
Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered.
voidrender(final Iterable renderableProviders, final Environment environment)
Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered.
voidrender(final RenderableProvider renderableProvider, final Shader shader)
Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered.
voidrender(final Iterable renderableProviders, final Shader shader)
Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered.
voidrender(final Renderable renderable)
Add a single Renderable to the batch.
voidrender(final RenderableProvider renderableProvider)
Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered.
voidrender(final Iterable renderableProviders)
Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered.