public class TextureAttribute extends Attribute
Modifier and Type | Field and Description |
---|---|
static long |
Ambient |
static String |
AmbientAlias |
static long |
Bump |
static String |
BumpAlias |
static long |
Diffuse |
static String |
DiffuseAlias |
static long |
Emissive |
static String |
EmissiveAlias |
static long |
Normal |
static String |
NormalAlias |
float |
offsetU |
float |
offsetV |
static long |
Reflection |
static String |
ReflectionAlias |
float |
scaleU |
float |
scaleV |
static long |
Specular |
static String |
SpecularAlias |
TextureDescriptor<Texture> |
textureDescription |
int |
uvIndex
The index of the texture coordinate vertex attribute to use for this TextureAttribute.
|
Constructor and Description |
---|
TextureAttribute(long type) |
TextureAttribute(long type,
Texture texture) |
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,
TextureRegion region) |
TextureAttribute(TextureAttribute copyFrom) |
equals, getAttributeAlias, getAttributeType, toString
public static final String DiffuseAlias
public static final long Diffuse
public static final String SpecularAlias
public static final long Specular
public static final String BumpAlias
public static final long Bump
public static final String NormalAlias
public static final long Normal
public static final String AmbientAlias
public static final long Ambient
public static final String EmissiveAlias
public static final long Emissive
public static final String ReflectionAlias
public static final long Reflection
public final TextureDescriptor<Texture> textureDescription
public float offsetU
public float offsetV
public float scaleU
public float scaleV
public int uvIndex
Attribute.type
value. For basic (model specific) types (e.g. Diffuse
, Normal
,
etc.), this value is usually ignored and the first texture coordinate vertex attribute is used.public TextureAttribute(long type)
public TextureAttribute(long type, TextureDescriptor<T> textureDescription)
public TextureAttribute(long type, TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV, int uvIndex)
public TextureAttribute(long type, TextureDescriptor<T> textureDescription, float offsetU, float offsetV, float scaleU, float scaleV)
public TextureAttribute(long type, Texture texture)
public TextureAttribute(long type, TextureRegion region)
public TextureAttribute(TextureAttribute copyFrom)
public static final boolean is(long mask)
public static TextureAttribute createDiffuse(Texture texture)
public static TextureAttribute createDiffuse(TextureRegion region)
public static TextureAttribute createSpecular(Texture texture)
public static TextureAttribute createSpecular(TextureRegion region)
public static TextureAttribute createNormal(Texture texture)
public static TextureAttribute createNormal(TextureRegion region)
public static TextureAttribute createBump(Texture texture)
public static TextureAttribute createBump(TextureRegion region)
public static TextureAttribute createAmbient(Texture texture)
public static TextureAttribute createAmbient(TextureRegion region)
public static TextureAttribute createEmissive(Texture texture)
public static TextureAttribute createEmissive(TextureRegion region)
public static TextureAttribute createReflection(Texture texture)
public static TextureAttribute createReflection(TextureRegion region)
public void set(TextureRegion region)
public Attribute copy()
public int compareTo(Attribute o)
Copyright © 2020. All rights reserved.