Example usage for Java com.badlogic.gdx.graphics.g3d ModelBatch fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | begin(final Camera cam) Start rendering one or more Renderable s. |
void | end() End rendering one or more Renderable s. |
void | flush() Flushes the batch, causing all Renderable s in the batch to be rendered. |
Camera | getCamera() Provides access to the current camera in between #begin(Camera) and #end() . |
void | render(final RenderableProvider renderableProvider, final Environment environment) Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered. |
void | render(final Iterable Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered. |
void | render(final RenderableProvider renderableProvider, final Shader shader) Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered. |
void | render(final Iterable Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered. |
void | render(final Renderable renderable) Add a single Renderable to the batch. |
void | render(final RenderableProvider renderableProvider) Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered. |
void | render(final Iterable Calls RenderableProvider#getRenderables(Array,Pool) and adds all returned Renderable instances to the current batch to be rendered. |