Package arc.graphics.g2d
Class CacheBatch
java.lang.Object
arc.graphics.g2d.Batch
arc.graphics.g2d.CacheBatch
- All Implemented Interfaces:
Disposable
-
Field Summary
Fields inherited from class arc.graphics.g2d.Batch
apply, blending, color, colorPacked, combinedMatrix, customShader, idx, lastTexture, mesh, mixColor, mixColorPacked, ownsShader, projectionMatrix, shader, sortAscending, transformMatrix, z
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
dispose()
Releases all resources of this object.protected void
draw
(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) protected void
void
drawCache
(int id) int
endCache()
void
endDraw()
void
flush()
getColor()
float
void
setColor
(float r, float g, float b, float a) void
void
setPackedColor
(float color) void
setProjection
(Mat projection) void
void
Methods inherited from class arc.graphics.g2d.Batch
draw, getBlending, getMixColor, getPackedMixColor, getProjection, getShader, getTransform, setBlending, setMixColor, setMixColor, setPackedMixColor, setSort, setSortAscending, setTransform, setupMatrices, switchTexture, z
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.util.Disposable
isDisposed
-
Constructor Details
-
CacheBatch
public CacheBatch(int size) -
CacheBatch
-
-
Method Details
-
flush
public void flush() -
setColor
-
setColor
public void setColor(float r, float g, float b, float a) -
setPackedColor
public void setPackedColor(float color) - Overrides:
setPackedColor
in classBatch
-
getColor
-
getPackedColor
public float getPackedColor()- Overrides:
getPackedColor
in classBatch
-
setProjection
- Overrides:
setProjection
in classBatch
-
beginCache
public void beginCache() -
endCache
public int endCache() -
draw
-
draw
protected void draw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) -
setShader
-
setShader
-
dispose
public void dispose()Description copied from interface:Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classBatch
-
beginDraw
public void beginDraw() -
endDraw
public void endDraw() -
drawCache
public void drawCache(int id)
-