Class DecalMaterial
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.decals.DecalMaterial
-
public class DecalMaterial extends java.lang.ObjectMaterial used by theDecalclass
-
-
Field Summary
Fields Modifier and Type Field Description protected intdstBlendFactorstatic intNO_BLENDprotected intsrcBlendFactorprotected TextureRegiontextureRegion
-
Constructor Summary
Constructors Constructor Description DecalMaterial()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetDstBlendFactor()intgetSrcBlendFactor()inthashCode()booleanisOpaque()voidset()Binds the material's texture to the OpenGL context and changes the glBlendFunc to the values used by it.
-
-
-
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
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-