Class BoxShapeBuilder
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
-
- com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BoxShapeBuilder
-
public class BoxShapeBuilder extends BaseShapeBuilder
Helper class with static methods to build box shapes usingMeshPartBuilder
.
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
matTmp1, tmpColor0, tmpColor1, tmpColor2, tmpColor3, tmpColor4, tmpV0, tmpV1, tmpV2, tmpV3, tmpV4, tmpV5, tmpV6, tmpV7, vertTmp0, vertTmp1, vertTmp2, vertTmp3, vertTmp4, vertTmp5, vertTmp6, vertTmp7, vertTmp8
-
-
Constructor Summary
Constructors Constructor Description BoxShapeBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
build(MeshPartBuilder builder, float width, float height, float depth)
Add a box with the specified dimensions.static void
build(MeshPartBuilder builder, float x, float y, float z, float width, float height, float depth)
Add a box at the specified location, with the specified dimensionsstatic void
build(MeshPartBuilder builder, MeshPartBuilder.VertexInfo corner000, MeshPartBuilder.VertexInfo corner010, MeshPartBuilder.VertexInfo corner100, MeshPartBuilder.VertexInfo corner110, MeshPartBuilder.VertexInfo corner001, MeshPartBuilder.VertexInfo corner011, MeshPartBuilder.VertexInfo corner101, MeshPartBuilder.VertexInfo corner111)
Add a box.static void
build(MeshPartBuilder builder, BoundingBox box)
Build a box with the shape of the specifiedBoundingBox
.static void
build(MeshPartBuilder builder, Matrix4 transform)
Add a box given the matrix.static void
build(MeshPartBuilder builder, Vector3 corner000, Vector3 corner010, Vector3 corner100, Vector3 corner110, Vector3 corner001, Vector3 corner011, Vector3 corner101, Vector3 corner111)
Add a box.-
Methods inherited from class com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
freeAll, obtainM4, obtainV3
-
-
-
-
Method Detail
-
build
public static void build(MeshPartBuilder builder, BoundingBox box)
Build a box with the shape of the specifiedBoundingBox
.- Parameters:
box
-
-
build
public static void build(MeshPartBuilder builder, MeshPartBuilder.VertexInfo corner000, MeshPartBuilder.VertexInfo corner010, MeshPartBuilder.VertexInfo corner100, MeshPartBuilder.VertexInfo corner110, MeshPartBuilder.VertexInfo corner001, MeshPartBuilder.VertexInfo corner011, MeshPartBuilder.VertexInfo corner101, MeshPartBuilder.VertexInfo corner111)
Add a box. Requires GL_POINTS, GL_LINES or GL_TRIANGLES primitive type.
-
build
public static void build(MeshPartBuilder builder, Vector3 corner000, Vector3 corner010, Vector3 corner100, Vector3 corner110, Vector3 corner001, Vector3 corner011, Vector3 corner101, Vector3 corner111)
Add a box. Requires GL_POINTS, GL_LINES or GL_TRIANGLES primitive type.
-
build
public static void build(MeshPartBuilder builder, Matrix4 transform)
Add a box given the matrix. Requires GL_POINTS, GL_LINES or GL_TRIANGLES primitive type.
-
build
public static void build(MeshPartBuilder builder, float width, float height, float depth)
Add a box with the specified dimensions. Requires GL_POINTS, GL_LINES or GL_TRIANGLES primitive type.
-
build
public static void build(MeshPartBuilder builder, float x, float y, float z, float width, float height, float depth)
Add a box at the specified location, with the specified dimensions
-
-