Enum Class VarType

java.lang.Object
java.lang.Enum<VarType>
com.jme3.shader.VarType
All Implemented Interfaces:
Serializable, Comparable<VarType>, Constable

public enum VarType extends Enum<VarType>
  • Enum Constant Details

    • Float

      public static final VarType Float
    • Vector2

      public static final VarType Vector2
    • Vector3

      public static final VarType Vector3
    • Vector4

      public static final VarType Vector4
    • IntArray

      public static final VarType IntArray
    • FloatArray

      public static final VarType FloatArray
    • Vector2Array

      public static final VarType Vector2Array
    • Vector3Array

      public static final VarType Vector3Array
    • Vector4Array

      public static final VarType Vector4Array
    • Boolean

      public static final VarType Boolean
    • Matrix3

      public static final VarType Matrix3
    • Matrix4

      public static final VarType Matrix4
    • Matrix3Array

      public static final VarType Matrix3Array
    • Matrix4Array

      public static final VarType Matrix4Array
    • TextureBuffer

      public static final VarType TextureBuffer
    • Texture2D

      public static final VarType Texture2D
    • Texture3D

      public static final VarType Texture3D
    • TextureArray

      public static final VarType TextureArray
    • TextureCubeMap

      public static final VarType TextureCubeMap
    • Int

      public static final VarType Int
    • BufferObject

      public static final VarType BufferObject
  • Method Details

    • values

      public static VarType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VarType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isOfType

      public boolean isOfType(Object o)
      Check if the passed object is of a type mapped to this VarType
      Parameters:
      o - Object to check
      Returns:
      true if the object type is mapped to this VarType
    • getJavaType

      public Class<?>[] getJavaType()
      Get the java types mapped to this VarType
      Returns:
      an array of classes mapped to this VarType
    • isTextureType

      public boolean isTextureType()
    • usesMultiData

      public boolean usesMultiData()
    • getGlslType

      public String getGlslType()