libgdx API

com.badlogic.gdx.graphics.g3d.decals
Class DecalMaterial

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.decals.DecalMaterial

public class DecalMaterial
extends java.lang.Object

Material used by the Decal class


Field Summary
protected  int dstBlendFactor
           
static int NO_BLEND
           
protected  int srcBlendFactor
           
protected  TextureRegion textureRegion
           
 
Constructor Summary
DecalMaterial()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getDstBlendFactor()
           
 int getSrcBlendFactor()
           
 int hashCode()
           
 boolean isOpaque()
           
 void set()
          Binds the material's texture to the OpenGL context and changes the glBlendFunc to the values used by it.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_BLEND

public static final int NO_BLEND
See Also:
Constant Field Values

textureRegion

protected TextureRegion textureRegion

srcBlendFactor

protected int srcBlendFactor

dstBlendFactor

protected int dstBlendFactor
Constructor Detail

DecalMaterial

public DecalMaterial()
Method Detail

set

public void set()
Binds the material's texture to the OpenGL context and changes the glBlendFunc to the values used by it.


isOpaque

public boolean isOpaque()
Returns:
true if the material is completely opaque, false if it is not and therefor requires blending

getSrcBlendFactor

public int getSrcBlendFactor()

getDstBlendFactor

public int getDstBlendFactor()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

libgdx API

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