APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.utils.shapebuilders

public Class RenderableShapeBuilder

extends BaseShapeBuilder
Class Inheritance
Imports
com.badlogic.gdx.graphics.Color, .Mesh, .VertexAttributes.Usage, com.badlogic.gdx.graphics.g3d.Renderable, .RenderableProvider, com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder, com.badlogic.gdx.utils.Array, .FlushablePool

RenderableShapeBuilder builds various properties of a renderable.
Author
realitix

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final int
private static short[]
private static final Array<Renderable>
private static final RenderableShapeBuilder.RenderablePool
private static float[]
Inherited from com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder:
matTmp1tmpColor0tmpColor1tmpColor2tmpColor3tmpColor4tmpV0tmpV1tmpV2tmpV3tmpV4tmpV5tmpV6tmpV7vertTmp0vertTmp1vertTmp2vertTmp3vertTmp4vertTmp5vertTmp6vertTmp7vertTmp8

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
buildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float
Size of the normal vector
vectorSize
)

Builds normal, tangent and binormal of a RenderableProvider with default colors (normal blue, tangent red, binormal green).

public static void
buildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float
Size of the normal vector
vectorSize
,
Color
Normal vector's color
normalColor
,
Color
Tangent vector's color
tangentColor
,
Color
Binormal vector's color
binormalColor
)

Builds normal, tangent and binormal of a RenderableProvider.

public static void
buildNormals(MeshPartBuilder builder, Renderable renderable, float
Size of the normal vector
vectorSize
,
Color
Normal vector's color
normalColor
,
Color
Tangent vector's color
tangentColor
,
Color
Binormal vector's color
binormalColor
)

Builds normal, tangent and binormal of a Renderable.

private static void
ensureIndicesCapacity(int capacity)

private static void
ensureVerticesCapacity(int capacity)

private static short
private static short
Inherited from com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder:
freeAllobtainM4obtainV3

Field Detail

FLOAT_BYTESback to summary
private static final int FLOAT_BYTES
indicesback to summary
private static short[] indices
renderablesback to summary
private static final Array<Renderable> renderables
renderablesPoolback to summary
private static final RenderableShapeBuilder.RenderablePool renderablesPool
verticesback to summary
private static float[] vertices

Constructor Detail

RenderableShapeBuilderback to summary
public RenderableShapeBuilder()

Method Detail

buildNormalsback to summary
public static void buildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float vectorSize)

Builds normal, tangent and binormal of a RenderableProvider with default colors (normal blue, tangent red, binormal green).

Parameters
vectorSize:float

Size of the normal vector

buildNormalsback to summary
public static void buildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)

Builds normal, tangent and binormal of a RenderableProvider.

Parameters
vectorSize:float

Size of the normal vector

normalColor:Color

Normal vector's color

tangentColor:Color

Tangent vector's color

binormalColor:Color

Binormal vector's color

buildNormalsback to summary
public static void buildNormals(MeshPartBuilder builder, Renderable renderable, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)

Builds normal, tangent and binormal of a Renderable.

Parameters
vectorSize:float

Size of the normal vector

normalColor:Color

Normal vector's color

tangentColor:Color

Tangent vector's color

binormalColor:Color

Binormal vector's color

ensureIndicesCapacityback to summary
private static void ensureIndicesCapacity(int capacity)
ensureVerticesCapacityback to summary
private static void ensureVerticesCapacity(int capacity)
maxVerticeInIndicesback to summary
private static short maxVerticeInIndices()
minVerticeInIndicesback to summary
private static short minVerticeInIndices()
com.badlogic.gdx.graphics.g3d.utils.shapebuilders back to summary

private Class RenderableShapeBuilder.RenderablePool

extends FlushablePool<Renderable>
Class Inheritance

Field Summary

Inherited from com.badlogic.gdx.utils.FlushablePool:
obtained

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Renderable
public Renderable
obtain()

Overrides com.badlogic.gdx.utils.FlushablePool.obtain.

Returns an object from this pool.

Inherited from com.badlogic.gdx.utils.FlushablePool:
flushfreefreeAll

Constructor Detail

RenderablePoolback to summary
public RenderablePool()

Method Detail

newObjectback to summary
protected Renderable newObject()

Implements abstract com.badlogic.gdx.utils.Pool.newObject.

Annotations
@Override
obtainback to summary
public Renderable obtain()

Overrides com.badlogic.gdx.utils.FlushablePool.obtain.

Doc from com.badlogic.gdx.utils.Pool.obtain.

Returns an object from this pool. The object may be new (from newObject()) or reused (previously freed).

Annotations
@Override