java.lang.Object
gaiasky.util.gdx.model.gltf.loaders.shared.GLTFTypes

public class GLTFTypes extends Object
  • Field Details

  • Constructor Details

    • GLTFTypes

      public GLTFTypes()
  • Method Details

    • mapPrimitiveMode

      public static int mapPrimitiveMode(Integer glMode)
      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

      public static CubicVector3 map(CubicVector3 v, float[] fv, int offset)
    • map

      public static CubicQuaternion map(CubicQuaternion v, float[] fv, int offset)
    • map

      public static WeightVector map(WeightVector w, float[] outputData, int offset)
    • map

      public 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,...bn
    • accessorTypeSize

      public static int accessorTypeSize(GLTFAccessor accessor)
    • accessorComponentTypeSize

      public static int accessorComponentTypeSize(GLTFAccessor accessor)
    • accessorStrideSize

      public static int accessorStrideSize(GLTFAccessor accessor)
    • accessorSize

      public static int accessorSize(GLTFAccessor accessor)
    • map

      public static com.badlogic.gdx.graphics.Camera map(GLTFCamera glCamera)
    • 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

      public static com.badlogic.gdx.graphics.Texture.TextureFilter mapTextureMagFilter(Integer filter)
    • mapTextureMinFilter

      public static com.badlogic.gdx.graphics.Texture.TextureFilter mapTextureMinFilter(Integer filter)
    • isMipMapFilter

      public static boolean isMipMapFilter(GLTFSampler sampler)
    • mapInterpolation

      public static Interpolation mapInterpolation(String type)