|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of ShaderProgram in com.badlogic.gdx.graphics |
---|
Methods in com.badlogic.gdx.graphics with parameters of type ShaderProgram | |
---|---|
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. |
Uses of ShaderProgram in com.badlogic.gdx.graphics.g2d |
---|
Methods in com.badlogic.gdx.graphics.g2d that return ShaderProgram | |
---|---|
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. |
Methods in com.badlogic.gdx.graphics.g2d with parameters of type ShaderProgram | |
---|---|
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. |
Constructors in com.badlogic.gdx.graphics.g2d with parameters of type ShaderProgram | |
---|---|
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. |
Uses of ShaderProgram in com.badlogic.gdx.graphics.g2d.tiled |
---|
Constructors in com.badlogic.gdx.graphics.g2d.tiled with parameters of type ShaderProgram | |
---|---|
TileMapRenderer(int[][][] map,
TileAtlas atlas,
int tileWidth,
int tileHeight,
float unitsPerTileX,
float unitsPerTileY,
IntArray blendedTiles,
int tilesPerBlockX,
int tilesPerBlockY,
ShaderProgram shader)
A renderer for static tile maps backed with a Sprite Cache. |
|
TileMapRenderer(TiledMap map,
TileAtlas atlas,
int tilesPerBlockX,
int tilesPerBlockY,
float unitsPerTileX,
float unitsPerTileY,
ShaderProgram shader)
|
|
TileMapRenderer(TiledMap map,
TileAtlas atlas,
int tilesPerBlockX,
int tilesPerBlockY,
ShaderProgram shader)
A renderer for static tile maps backed with a Sprite Cache. |
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.decals |
---|
Methods in com.badlogic.gdx.graphics.g3d.decals that return ShaderProgram | |
---|---|
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)
|
Methods in com.badlogic.gdx.graphics.g3d.decals with parameters of type ShaderProgram | |
---|---|
protected void |
DecalBatch.flush(ShaderProgram shader,
int verticesPosition)
Flushes vertices[0,verticesPosition[ to GL verticesPosition % Decal.SIZE must equal 0 |
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.materials |
---|
Fields in com.badlogic.gdx.graphics.g3d.materials declared as ShaderProgram | |
---|---|
protected ShaderProgram |
Material.shader
|
Methods in com.badlogic.gdx.graphics.g3d.materials that return ShaderProgram | |
---|---|
ShaderProgram |
Material.getShader()
|
Methods in com.badlogic.gdx.graphics.g3d.materials with parameters of type ShaderProgram | |
---|---|
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)
|
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.model |
---|
Methods in com.badlogic.gdx.graphics.g3d.model with parameters of type ShaderProgram | |
---|---|
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. |
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.model.keyframe |
---|
Methods in com.badlogic.gdx.graphics.g3d.model.keyframe with parameters of type ShaderProgram | |
---|---|
void |
KeyframedModel.render(ShaderProgram program)
|
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.model.skeleton |
---|
Methods in com.badlogic.gdx.graphics.g3d.model.skeleton with parameters of type ShaderProgram | |
---|---|
void |
SkeletonModel.render(ShaderProgram program)
|
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.model.still |
---|
Methods in com.badlogic.gdx.graphics.g3d.model.still with parameters of type ShaderProgram | |
---|---|
void |
StillModel.render(ShaderProgram program)
|
Uses of ShaderProgram in com.badlogic.gdx.graphics.glutils |
---|
Methods in com.badlogic.gdx.graphics.glutils that return ShaderProgram | |
---|---|
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. |
Methods in com.badlogic.gdx.graphics.glutils with parameters of type ShaderProgram | |
---|---|
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. |
Constructors in com.badlogic.gdx.graphics.glutils with parameters of type ShaderProgram | |
---|---|
ImmediateModeRenderer20(int maxVertices,
boolean hasNormals,
boolean hasColors,
int numTexCoords,
ShaderProgram shader)
|
|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |