com.badlogic.gdx.graphics.g3d.materials
Class BlendingAttribute
java.lang.Object
com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
com.badlogic.gdx.graphics.g3d.materials.BlendingAttribute
public class BlendingAttribute
- extends MaterialAttribute
Field Summary |
int |
blendDstFunc
|
int |
blendSrcFunc
|
static java.lang.String |
translucent
if BlendingAttribute name is translucent then default tranparency mechanism is used in shader |
Constructor Summary |
protected |
BlendingAttribute()
|
|
BlendingAttribute(java.lang.String name)
Utility constuctor for basic transparency blendSrcFunc = GL10.GL_SRC_ALPHA blendDstFunc = GL10.GL_ONE_MINUS_SRC_ALPHA |
|
BlendingAttribute(java.lang.String name,
int srcFunc,
int dstFunc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
translucent
public static final java.lang.String translucent
- if BlendingAttribute name is translucent then default tranparency mechanism is used in shader
- See Also:
- Constant Field Values
blendSrcFunc
public int blendSrcFunc
blendDstFunc
public int blendDstFunc
BlendingAttribute
protected BlendingAttribute()
BlendingAttribute
public BlendingAttribute(java.lang.String name)
- Utility constuctor for basic transparency blendSrcFunc = GL10.GL_SRC_ALPHA blendDstFunc = GL10.GL_ONE_MINUS_SRC_ALPHA
- Parameters:
name
-
BlendingAttribute
public BlendingAttribute(java.lang.String name,
int srcFunc,
int dstFunc)
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
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)