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

public Class BoxShapeBuilder

extends BaseShapeBuilder
Class Inheritance
Imports
com.badlogic.gdx.graphics.GL20, .VertexAttributes.Usage, com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder, .MeshPartBuilder.VertexInfo, com.badlogic.gdx.math.Matrix4, .Vector3, com.badlogic.gdx.math.collision.BoundingBox

Helper class with static methods to build box shapes using MeshPartBuilder.
Author
realitix, xoppa

Field Summary

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
build(MeshPartBuilder builder, BoundingBox box)

Build a box with the shape of the specified BoundingBox.

public static void
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.

public static void
build(MeshPartBuilder builder, Matrix4 transform)

Add a box given the matrix.

public static void
build(MeshPartBuilder builder, float width, float height, float depth)

Add a box with the specified dimensions.

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

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

Constructor Detail

BoxShapeBuilderback to summary
public BoxShapeBuilder()

Method Detail

buildback to summary
public static void build(MeshPartBuilder builder, BoundingBox box)

Build a box with the shape of the specified BoundingBox.

buildback to summary
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.

buildback to summary
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.

buildback to summary
public static void build(MeshPartBuilder builder, Matrix4 transform)

Add a box given the matrix. Requires GL_POINTS, GL_LINES or GL_TRIANGLES primitive type.

buildback to summary
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.

buildback to summary
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