Interface MetricsBatch
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
MeshBatch,MultiTextureMeshBatch,TextureArrayMeshBatch
SUPPORTED_EXPERT data-oriented Pixscape submission batch; this is not a LibGDX immediate-mode
Batch API.
When obtained from PixscapeEngine.getMetricsBatch(),
the object is borrowed and engine-owned. Default submission controls its per-frame
begin/end lifecycle, and the
engine closes it during disposal. Expert custom submitters may drive that lifecycle but
must leave the batch ended and must not close it.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(com.badlogic.gdx.math.Matrix4 combined, RenderStats stats) voidclose()voiddraw(int textureHandle, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float u, float v, float u2, float v2, RenderStats stats) voidend(RenderStats stats) voidflush(RenderStats stats) voidsetBlendMode(boolean enabled, int sfactor, int dfactor, RenderStats stats) voidsetColor(float r, float g, float b, float a) default voidsetPackedColor(float packed) voidsetShader(com.badlogic.gdx.graphics.glutils.ShaderProgram shader, RenderStats stats) default void
-
Method Details
-
begin
-
setShader
-
setBlendMode
-
setColor
void setColor(float r, float g, float b, float a) -
setPackedColor
default void setPackedColor(float packed) -
draw
void draw(int textureHandle, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float u, float v, float u2, float v2, RenderStats stats) -
flush
-
end
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
setTextureArrayBundle
-