| Modifier and Type | Method and Description |
|---|---|
void |
Mesh.bind(ShaderProgram shader)
Binds the underlying
VertexBufferObject and IndexBufferObject if indices where given. |
void |
Mesh.render(ShaderProgram shader,
int primitiveType)
Renders the mesh using the given primitive type.
|
void |
Mesh.render(ShaderProgram shader,
int primitiveType,
int offset,
int count)
Renders the mesh using the given primitive type.
|
void |
Mesh.unbind(ShaderProgram shader)
Unbinds the underlying
VertexBufferObject and IndexBufferObject is indices were given. |
| Modifier and Type | Method and Description |
|---|---|
static ShaderProgram |
PolygonSpriteBatch.createDefaultShader()
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.
|
static ShaderProgram |
SpriteBatch.createDefaultShader()
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PolygonSpriteBatch.setShader(ShaderProgram shader)
Sets the shader to be used in a GLES 2.0 environment.
|
void |
SpriteBatch.setShader(ShaderProgram shader)
Sets the shader to be used in a GLES 2.0 environment.
|
void |
SpriteCache.setShader(ShaderProgram shader)
Sets the shader to be used in a GLES 2.0 environment.
|
| Constructor and Description |
|---|
PolygonSpriteBatch(int size,
int buffers,
ShaderProgram defaultShader)
Constructs a new PolygonSpriteBatch.
|
PolygonSpriteBatch(int size,
ShaderProgram defaultShader)
Constructs a new PolygonSpriteBatch.
|
SpriteBatch(int size,
int buffers,
ShaderProgram defaultShader)
Constructs a new SpriteBatch.
|
SpriteBatch(int size,
ShaderProgram defaultShader)
Constructs a new SpriteBatch.
|
SpriteCache(int size,
ShaderProgram shader,
boolean useIndices)
Creates a cache with the specified size and OpenGL ES 2.0 shader.
|
| Modifier and Type | Method and Description |
|---|---|
ShaderProgram |
CameraGroupStrategy.getGroupShader(int group) |
ShaderProgram |
DefaultGroupStrategy.getGroupShader(int group) |
ShaderProgram |
GroupStrategy.getGroupShader(int group)
Returns the shader to be used for the group.
|
ShaderProgram |
SimpleOrthoGroupStrategy.getGroupShader(int group) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DecalBatch.flush(ShaderProgram shader,
int verticesPosition)
Flushes vertices[0,verticesPosition[ to GL verticesPosition % Decal.SIZE must equal 0
|
| Modifier and Type | Field and Description |
|---|---|
protected ShaderProgram |
Material.shader |
| Modifier and Type | Method and Description |
|---|---|
ShaderProgram |
Material.getShader() |
| Modifier and Type | Method and Description |
|---|---|
void |
BlendingAttribute.bind(ShaderProgram program) |
void |
ColorAttribute.bind(ShaderProgram program) |
void |
Material.bind(ShaderProgram program) |
abstract void |
MaterialAttribute.bind(ShaderProgram program) |
void |
TextureAttribute.bind(ShaderProgram program) |
void |
Material.setShader(ShaderProgram shader) |
| Modifier and Type | Method and Description |
|---|---|
void |
Model.render(ShaderProgram program)
Renders this model using the
GL20 shader pipeline.IMPORTANT: This model must have materials set before you can use this render function. |
| Modifier and Type | Method and Description |
|---|---|
void |
KeyframedModel.render(ShaderProgram program) |
| Modifier and Type | Method and Description |
|---|---|
void |
SkeletonModel.render(ShaderProgram program) |
| Modifier and Type | Method and Description |
|---|---|
void |
StillModel.render(ShaderProgram program) |
| Modifier and Type | Method and Description |
|---|---|
static ShaderProgram |
ImmediateModeRenderer20.createDefaultShader(boolean hasNormals,
boolean hasColors,
int numTexCoords)
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VertexArray.bind(ShaderProgram shader) |
void |
VertexBufferObject.bind(ShaderProgram shader)
Binds this VertexBufferObject for rendering via glDrawArrays or glDrawElements
|
void |
VertexBufferObjectSubData.bind(ShaderProgram shader)
Binds this VertexBufferObject for rendering via glDrawArrays or glDrawElements
|
void |
VertexData.bind(ShaderProgram shader)
Binds this VertexData for rendering via glDrawArrays or glDrawElements.
|
void |
ImmediateModeRenderer20.setShader(ShaderProgram shader) |
void |
VertexArray.unbind(ShaderProgram shader)
Unbinds this VertexBufferObject.
|
void |
VertexBufferObject.unbind(ShaderProgram shader)
Unbinds this VertexBufferObject.
|
void |
VertexBufferObjectSubData.unbind(ShaderProgram shader)
Unbinds this VertexBufferObject.
|
void |
VertexData.unbind(ShaderProgram shader)
Unbinds this VertexData.
|
| Constructor and Description |
|---|
ImmediateModeRenderer20(int maxVertices,
boolean hasNormals,
boolean hasColors,
int numTexCoords,
ShaderProgram shader) |