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

public Class SphereShapeBuilder

extends BaseShapeBuilder
Class Inheritance
Imports
com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder, .MeshPartBuilder.VertexInfo, com.badlogic.gdx.math.MathUtils, .Matrix3, .Matrix4, com.badlogic.gdx.utils.ShortArray

Helper class with static methods to build sphere shapes using MeshPartBuilder.
Author
xoppa

Field Summary

Modifier and TypeField and Description
private static final Matrix3
private static final ShortArray
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, float width, float height, float depth, int divisionsU, int divisionsV)

public static void
build(MeshPartBuilder builder, final Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV)
Deprecated use MeshPartBuilder#setVertexTransform(Matrix4) instead of using the method signature taking a matrix.

public static void
build(MeshPartBuilder builder, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)

public static void
build(MeshPartBuilder builder, final Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)
Deprecated use MeshPartBuilder#setVertexTransform(Matrix4) instead of using the method signature taking a matrix.

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

Field Detail

normalTransformback to summary
private static final Matrix3 normalTransform
tmpIndicesback to summary
private static final ShortArray tmpIndices

Constructor Detail

SphereShapeBuilderback to summary
public SphereShapeBuilder()

Method Detail

buildback to summary
public static void build(MeshPartBuilder builder, float width, float height, float depth, int divisionsU, int divisionsV)
buildback to summary
public static void build(MeshPartBuilder builder, final Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV)

Deprecated

use MeshPartBuilder#setVertexTransform(Matrix4) instead of using the method signature taking a matrix.

Annotations
@Deprecated
buildback to summary
public static void build(MeshPartBuilder builder, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)
buildback to summary
public static void build(MeshPartBuilder builder, final Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)

Deprecated

use MeshPartBuilder#setVertexTransform(Matrix4) instead of using the method signature taking a matrix.

Annotations
@Deprecated