public class

SpriteBatchVertexBuffer

extends VertexBuffer
java.lang.Object
   ↳ org.anddev.andengine.opengl.buffer.BufferObject
     ↳ org.anddev.andengine.opengl.vertex.VertexBuffer
       ↳ org.anddev.andengine.opengl.vertex.SpriteBatchVertexBuffer

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Constants
int VERTICES_PER_RECTANGLE
Fields
protected int mIndex
[Expand]
Inherited Fields
From class org.anddev.andengine.opengl.buffer.BufferObject
Public Constructors
SpriteBatchVertexBuffer(int pCapacity, int pDrawType, boolean pManaged)
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()
[Expand]
Inherited Methods
From class org.anddev.andengine.opengl.buffer.BufferObject
From class java.lang.Object

Constants

public static final int VERTICES_PER_RECTANGLE

Constant Value: 6 (0x00000006)

Fields

protected int mIndex

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)

1-+ |X| +-2

public void addInner (float pX1, float pY1, float pX2, float pY2, float pX3, float pY3, float pX4, float pY4)

1-3 |X| 2-4

public int getIndex ()

public void setIndex (int pIndex)

public void submit ()