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

public Class BaseShapeBuilder

extends Object
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BoxShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.CapsuleShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.ConeShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.CylinderShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.EllipseShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.FrustumShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.PatchShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.RenderableShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.SphereShapeBuilder, com.badlogic.gdx.graphics.g3d.utils.shapebuilders.ArrowShapeBuilder
Imports
com.badlogic.gdx.graphics.Color, com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder.VertexInfo, com.badlogic.gdx.math.Matrix4, .Vector3, com.badlogic.gdx.utils.FlushablePool

This class allows to reduce the static allocation needed for shape builders. It contains all the objects used internally by shape builders.
Author
realitix, xoppa

Field Summary

Modifier and TypeField and Description
private static final FlushablePool<Matrix4>
protected static final Matrix4
protected static final Color
protected static final Color
protected static final Color
protected static final Color
protected static final Color
protected static final Vector3
protected static final Vector3
protected static final Vector3
protected static final Vector3
protected static final Vector3
protected static final Vector3
protected static final Vector3
protected static final Vector3
private static final FlushablePool<Vector3>
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo
protected static final MeshPartBuilder.VertexInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected static void
freeAll()

Free all objects obtained using one of the `obtainXX` methods.

protected static Matrix4
obtainM4()

Obtain a temporary Matrix4 object, must be free'd using freeAll().

protected static Vector3
obtainV3()

Obtain a temporary Vector3 object, must be free'd using freeAll().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

matrices4Poolback to summary
private static final FlushablePool<Matrix4> matrices4Pool
matTmp1back to summary
protected static final Matrix4 matTmp1
tmpColor0back to summary
protected static final Color tmpColor0
tmpColor1back to summary
protected static final Color tmpColor1
tmpColor2back to summary
protected static final Color tmpColor2
tmpColor3back to summary
protected static final Color tmpColor3
tmpColor4back to summary
protected static final Color tmpColor4
tmpV0back to summary
protected static final Vector3 tmpV0
tmpV1back to summary
protected static final Vector3 tmpV1
tmpV2back to summary
protected static final Vector3 tmpV2
tmpV3back to summary
protected static final Vector3 tmpV3
tmpV4back to summary
protected static final Vector3 tmpV4
tmpV5back to summary
protected static final Vector3 tmpV5
tmpV6back to summary
protected static final Vector3 tmpV6
tmpV7back to summary
protected static final Vector3 tmpV7
vectorPoolback to summary
private static final FlushablePool<Vector3> vectorPool
vertTmp0back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp0
vertTmp1back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp1
vertTmp2back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp2
vertTmp3back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp3
vertTmp4back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp4
vertTmp5back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp5
vertTmp6back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp6
vertTmp7back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp7
vertTmp8back to summary
protected static final MeshPartBuilder.VertexInfo vertTmp8

Constructor Detail

BaseShapeBuilderback to summary
public BaseShapeBuilder()

Method Detail

freeAllback to summary
protected static void freeAll()

Free all objects obtained using one of the `obtainXX` methods.

obtainM4back to summary
protected static Matrix4 obtainM4()

Obtain a temporary Matrix4 object, must be free'd using freeAll().

obtainV3back to summary
protected static Vector3 obtainV3()

Obtain a temporary Vector3 object, must be free'd using freeAll().