Class TextureAttribute
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.Attribute
-
- com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute
-
-
Field Summary
Fields Modifier and Type Field Description static longAmbientstatic java.lang.StringAmbientAliasstatic longBumpstatic java.lang.StringBumpAliasstatic longDiffusestatic java.lang.StringDiffuseAliasstatic longEmissivestatic java.lang.StringEmissiveAliasprotected static longMaskstatic longNormalstatic java.lang.StringNormalAliasfloatoffsetUfloatoffsetVstatic longReflectionstatic java.lang.StringReflectionAliasfloatscaleUfloatscaleVstatic longSpecularstatic java.lang.StringSpecularAliasTextureDescriptor<Texture>textureDescriptionintuvIndexThe index of the texture coordinate vertex attribute to use for this TextureAttribute.
-
Constructor Summary
Constructors Constructor Description TextureAttribute(long type)TextureAttribute(long type, TextureRegion region)TextureAttribute(long type, TextureDescriptor<T> textureDescription)TextureAttribute(long type, TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV)TextureAttribute(long type, TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV, int uvIndex)TextureAttribute(long type, Texture texture)TextureAttribute(TextureAttribute copyFrom)
-
Method Summary
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.Attribute
equals, equals, getAttributeAlias, getAttributeType, register, toString
-
-
-
-
Field Detail
-
DiffuseAlias
public static final java.lang.String DiffuseAlias
- See Also:
- Constant Field Values
-
Diffuse
public static final long Diffuse
-
SpecularAlias
public static final java.lang.String SpecularAlias
- See Also:
- Constant Field Values
-
Specular
public static final long Specular
-
BumpAlias
public static final java.lang.String BumpAlias
- See Also:
- Constant Field Values
-
Bump
public static final long Bump
-
NormalAlias
public static final java.lang.String NormalAlias
- See Also:
- Constant Field Values
-
Normal
public static final long Normal
-
AmbientAlias
public static final java.lang.String AmbientAlias
- See Also:
- Constant Field Values
-
Ambient
public static final long Ambient
-
EmissiveAlias
public static final java.lang.String EmissiveAlias
- See Also:
- Constant Field Values
-
Emissive
public static final long Emissive
-
ReflectionAlias
public static final java.lang.String ReflectionAlias
- See Also:
- Constant Field Values
-
Reflection
public static final long Reflection
-
Mask
protected static long Mask
-
textureDescription
public final TextureDescriptor<Texture> textureDescription
-
offsetU
public float offsetU
-
offsetV
public float offsetV
-
scaleU
public float scaleU
-
scaleV
public float scaleV
-
uvIndex
public int uvIndex
The index of the texture coordinate vertex attribute to use for this TextureAttribute. Whether this value is used, depends on the shader andAttribute.typevalue. For basic (model specific) types (e.g.Diffuse,Normal, etc.), this value is usually ignored and the first texture coordinate vertex attribute is used.
-
-
Constructor Detail
-
TextureAttribute
public TextureAttribute(long type)
-
TextureAttribute
public TextureAttribute(long type, TextureDescriptor<T> textureDescription)
-
TextureAttribute
public TextureAttribute(long type, TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV, int uvIndex)
-
TextureAttribute
public TextureAttribute(long type, TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV)
-
TextureAttribute
public TextureAttribute(long type, Texture texture)
-
TextureAttribute
public TextureAttribute(long type, TextureRegion region)
-
TextureAttribute
public TextureAttribute(TextureAttribute copyFrom)
-
-
Method Detail
-
is
public static final boolean is(long mask)
-
createDiffuse
public static TextureAttribute createDiffuse(Texture texture)
-
createDiffuse
public static TextureAttribute createDiffuse(TextureRegion region)
-
createSpecular
public static TextureAttribute createSpecular(Texture texture)
-
createSpecular
public static TextureAttribute createSpecular(TextureRegion region)
-
createNormal
public static TextureAttribute createNormal(Texture texture)
-
createNormal
public static TextureAttribute createNormal(TextureRegion region)
-
createBump
public static TextureAttribute createBump(Texture texture)
-
createBump
public static TextureAttribute createBump(TextureRegion region)
-
createAmbient
public static TextureAttribute createAmbient(Texture texture)
-
createAmbient
public static TextureAttribute createAmbient(TextureRegion region)
-
createEmissive
public static TextureAttribute createEmissive(Texture texture)
-
createEmissive
public static TextureAttribute createEmissive(TextureRegion region)
-
createReflection
public static TextureAttribute createReflection(Texture texture)
-
createReflection
public static TextureAttribute createReflection(TextureRegion region)
-
set
public void set(TextureRegion region)
-
copy
public Attribute copy()
-
compareTo
public int compareTo(Attribute o)
-
-