com.badlogic.gdx.graphics.g3d.materials
Class TextureAttribute
java.lang.Object
com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
com.badlogic.gdx.graphics.g3d.materials.TextureAttribute
public class TextureAttribute
- extends MaterialAttribute
Constructor Summary |
protected |
TextureAttribute()
|
|
TextureAttribute(Texture texture,
int unit,
java.lang.String name)
|
|
TextureAttribute(Texture texture,
int unit,
java.lang.String name,
int minFilter,
int magFilter,
int uWrap,
int vWrap)
|
|
TextureAttribute(Texture texture,
int unit,
java.lang.String name,
Texture.TextureFilter minFilter,
Texture.TextureFilter magFilter,
Texture.TextureWrap uWrap,
Texture.TextureWrap vWrap)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_TEXTURE_UNITS
public static final int MAX_TEXTURE_UNITS
- See Also:
- Constant Field Values
diffuseTexture
public static final java.lang.String diffuseTexture
- See Also:
- Constant Field Values
lightmapTexture
public static final java.lang.String lightmapTexture
- See Also:
- Constant Field Values
specularTexture
public static final java.lang.String specularTexture
- See Also:
- Constant Field Values
texture
public Texture texture
unit
public int unit
minFilter
public int minFilter
magFilter
public int magFilter
uWrap
public int uWrap
vWrap
public int vWrap
TextureAttribute
protected TextureAttribute()
TextureAttribute
public TextureAttribute(Texture texture,
int unit,
java.lang.String name,
Texture.TextureFilter minFilter,
Texture.TextureFilter magFilter,
Texture.TextureWrap uWrap,
Texture.TextureWrap vWrap)
TextureAttribute
public TextureAttribute(Texture texture,
int unit,
java.lang.String name,
int minFilter,
int magFilter,
int uWrap,
int vWrap)
TextureAttribute
public TextureAttribute(Texture texture,
int unit,
java.lang.String name)
bind
public void bind()
- Specified by:
bind
in class MaterialAttribute
bind
public void bind(ShaderProgram program)
- Specified by:
bind
in class MaterialAttribute
copy
public MaterialAttribute copy()
- Specified by:
copy
in class MaterialAttribute
set
public void set(MaterialAttribute attr)
- Specified by:
set
in class MaterialAttribute
texturePortionEquals
public boolean texturePortionEquals(TextureAttribute other)
- this method check if the texture portion of texture attribute is equal, name isn't used
pooledCopy
public MaterialAttribute pooledCopy()
- Specified by:
pooledCopy
in class MaterialAttribute
free
public void free()
- Specified by:
free
in class MaterialAttribute
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)