public class LitQuad3D extends Quad3D
Quad3D with support for lighting through the use of normal, tangent, and binormal vertex attributes.Quad3D.BlendingBatchable.FixedSizeBatchabledstBlendFactor, opaque, rotation, srcBlendFactor, z| Constructor and Description |
|---|
LitQuad3D()
A LitQuad3D that starts opaque.
|
LitQuad3D(int srcBlendFactor,
int dstBlendFactor)
A LitQuad3D that starts with blending enabled, with the specified blend factors.
|
LitQuad3D(Quad3D.Blending blending)
A LitQuad3D that starts with blending enabled, and a common set of blend factors.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes)
A Batchable implementation calls this to populate a list of vertex attributes that will be used by the FlexBatch.
|
protected int |
apply(float[] vertices,
int vertexStartingIndex,
AttributeOffsets offsets,
int vertexSize)
Called by FlexBatch.
|
billboard, billboard, blend, blend, blend, calculateDistanceSquared, color, color, color, flip, hasEquivalentTextures, isOpaque, isPosition3D, isTextureCoordinate3D, lookAt, opaque, origin, position, position, prepareContext, prepareSharedContext, refresh, region, rotate, rotateCoordinates90, rotateX, rotateY, rotateZ, rotation, rotation, rotation, rotation, rotation, rotation, scale, size, texture, textureRegion, translate, translateflipAll, getNumberOfTextures, getTrianglesPerBatchable, getVerticesPerBatchable, populateTriangleIndices, regionTexels, reset, textureapply, prepareIndicespublic LitQuad3D()
public LitQuad3D(int srcBlendFactor,
int dstBlendFactor)
public LitQuad3D(Quad3D.Blending blending)
protected void addVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes)
BatchableaddVertexAttributes in class Quadattributes - An array to which attributes can be added.protected int apply(float[] vertices,
int vertexStartingIndex,
AttributeOffsets offsets,
int vertexSize)
Batchableapply in class Quad3Doffsets - The offsets of the vertex attributes.vertexSize - The size of a vertex in floats.Batchable.FixedSizeBatchable, as it is
assumed to match Batchable.FixedSizeBatchable.getVerticesPerBatchable().