Class Overview
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.
Summary
Public Methods |
void
|
add(float pX, float pY, float pWidth, float pHeight, float pScaleX, float pScaleY)
|
void
|
add(float pX, float pY, float pWidth, float pHeight, float pRotation, float pScaleX, float pScaleY)
|
void
|
add(float pWidth, float pHeight, Transformation pTransformation)
|
void
|
add(float pX, float pY, float pWidth, float pHeight)
|
void
|
add(float pX, float pY, float pWidth, float pHeight, float pRotation)
|
void
|
addInner(float pX1, float pY1, float pX2, float pY2)
1-+
|X|
+-2
|
void
|
addInner(float pX1, float pY1, float pX2, float pY2, float pX3, float pY3, float pX4, float pY4)
1-3
|X|
2-4
|
int
|
getIndex()
|
void
|
setIndex(int pIndex)
|
void
|
submit()
|
Constants
public
static
final
int
VERTICES_PER_RECTANGLE
Constant Value:
6
(0x00000006)
Fields
Public Constructors
public
SpriteBatchVertexBuffer
(int pCapacity, int pDrawType, boolean pManaged)
Public Methods
public
void
add
(float pX, float pY, float pWidth, float pHeight, float pScaleX, float pScaleY)
Parameters
pScaleX
| around the center (pWidth * 0.5f, pHeight * 0.5f) |
pScaleY
| around the center (pWidth * 0.5f, pHeight * 0.5f)
|
public
void
add
(float pX, float pY, float pWidth, float pHeight, float pRotation, float pScaleX, float pScaleY)
Parameters
pRotation
| around the center (pWidth * 0.5f, pHeight * 0.5f) |
pScaleX
| around the center (pWidth * 0.5f, pHeight * 0.5f) |
pScaleY
| around the center (pWidth * 0.5f, pHeight * 0.5f)
|
public
void
add
(float pWidth, float pHeight, Transformation pTransformation)
public
void
add
(float pX, float pY, float pWidth, float pHeight)
public
void
add
(float pX, float pY, float pWidth, float pHeight, float pRotation)
Parameters
pRotation
| around the center (pWidth * 0.5f, pHeight * 0.5f)
|
public
void
addInner
(float pX1, float pY1, float pX2, float pY2)
public
void
addInner
(float pX1, float pY1, float pX2, float pY2, float pX3, float pY3, float pX4, float pY4)
public
void
setIndex
(int pIndex)