Class GLTFTypes
java.lang.Object
gaiasky.util.gdx.model.gltf.loaders.shared.GLTFTypes
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
accessorComponentTypeSize
(GLTFAccessor accessor) static int
accessorSize
(GLTFAccessor accessor) static int
accessorStrideSize
(GLTFAccessor accessor) static int
accessorTypeSize
(GLTFAccessor accessor) static boolean
isMipMapFilter
(GLTFSampler sampler) static com.badlogic.gdx.math.Quaternion
map
(com.badlogic.gdx.math.Quaternion q, float[] fv) static com.badlogic.gdx.math.Quaternion
map
(com.badlogic.gdx.math.Quaternion q, float[] fv, int offset) static com.badlogic.gdx.math.Vector3
map
(com.badlogic.gdx.math.Vector3 v, float[] fv) static com.badlogic.gdx.math.Vector3
map
(com.badlogic.gdx.math.Vector3 v, float[] fv, int offset) static com.badlogic.gdx.graphics.Camera
map
(GLTFCamera glCamera) static CubicQuaternion
map
(CubicQuaternion v, float[] fv, int offset) static CubicVector3
map
(CubicVector3 v, float[] fv, int offset) static CubicWeightVector
map
(CubicWeightVector w, float[] outputData, int offset) https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#animations end of chapter : When used with CUBICSPLINE interpolation, tangents (ak, bk) and values (vk) are grouped within keyframes: a1,a2,...an,v1,v2,...vn,b1,b2,...bnstatic WeightVector
map
(WeightVector w, float[] outputData, int offset) static com.badlogic.gdx.graphics.Color
mapColor
(float[] c, com.badlogic.gdx.graphics.Color defaultColor) static Interpolation
mapInterpolation
(String type) static int
mapPrimitiveMode
(Integer glMode) https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#primitivemodestatic com.badlogic.gdx.graphics.Texture.TextureFilter
mapTextureMagFilter
(Integer filter) static com.badlogic.gdx.graphics.Texture.TextureFilter
mapTextureMinFilter
(Integer filter) static void
mapTextureSampler
(com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParameter) static void
mapTextureSampler
(com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParameter, GLTFSampler glSampler) static void
mapTextureSampler
(com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture> textureDescriptor, GLTFSampler glSampler)
-
Field Details
-
TYPE_SCALAR
- See Also:
-
TYPE_VEC2
- See Also:
-
TYPE_VEC3
- See Also:
-
TYPE_VEC4
- See Also:
-
TYPE_MAT2
- See Also:
-
TYPE_MAT3
- See Also:
-
TYPE_MAT4
- See Also:
-
C_BYTE
public static final int C_BYTE- See Also:
-
C_UBYTE
public static final int C_UBYTE- See Also:
-
C_SHORT
public static final int C_SHORT- See Also:
-
C_USHORT
public static final int C_USHORT- See Also:
-
C_UINT
public static final int C_UINT- See Also:
-
C_FLOAT
public static final int C_FLOAT- See Also:
-
-
Constructor Details
-
GLTFTypes
public GLTFTypes()
-
-
Method Details
-
mapPrimitiveMode
https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#primitivemode -
mapColor
public static com.badlogic.gdx.graphics.Color mapColor(float[] c, com.badlogic.gdx.graphics.Color defaultColor) -
map
public static com.badlogic.gdx.math.Quaternion map(com.badlogic.gdx.math.Quaternion q, float[] fv) -
map
public static com.badlogic.gdx.math.Quaternion map(com.badlogic.gdx.math.Quaternion q, float[] fv, int offset) -
map
public static com.badlogic.gdx.math.Vector3 map(com.badlogic.gdx.math.Vector3 v, float[] fv) -
map
public static com.badlogic.gdx.math.Vector3 map(com.badlogic.gdx.math.Vector3 v, float[] fv, int offset) -
map
-
map
-
map
-
map
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#animations end of chapter : When used with CUBICSPLINE interpolation, tangents (ak, bk) and values (vk) are grouped within keyframes: a1,a2,...an,v1,v2,...vn,b1,b2,...bn -
accessorTypeSize
-
accessorComponentTypeSize
-
accessorStrideSize
-
accessorSize
-
map
-
mapTextureSampler
public static void mapTextureSampler(com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture> textureDescriptor, GLTFSampler glSampler) -
mapTextureSampler
public static void mapTextureSampler(com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParameter, GLTFSampler glSampler) -
mapTextureSampler
public static void mapTextureSampler(com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter textureParameter) -
mapTextureMagFilter
-
mapTextureMinFilter
-
isMipMapFilter
-
mapInterpolation
-