libgdx API

com.badlogic.gdx.graphics.g3d.materials
Class TextureAttribute

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
      extended by com.badlogic.gdx.graphics.g3d.materials.TextureAttribute

public class TextureAttribute
extends MaterialAttribute


Field Summary
static java.lang.String diffuseTexture
           
static java.lang.String lightmapTexture
           
 int magFilter
           
static int MAX_TEXTURE_UNITS
           
 int minFilter
           
static java.lang.String specularTexture
           
 Texture texture
           
 int unit
           
 int uWrap
           
 int vWrap
           
 
Fields inherited from class com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
isPooled, name
 
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)
           
 
Method Summary
 void bind()
           
 void bind(ShaderProgram program)
           
 MaterialAttribute copy()
           
 void free()
           
 MaterialAttribute pooledCopy()
           
 void set(MaterialAttribute attr)
           
 boolean texturePortionEquals(TextureAttribute other)
          this method check if the texture portion of texture attribute is equal, name isn't used
 
Methods inherited from class com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
getShaderFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)