libgdx API

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

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
      extended by 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
 
Fields inherited from class com.badlogic.gdx.graphics.g3d.materials.MaterialAttribute
isPooled, name
 
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)
           
 
Method Summary
 void bind()
           
 void bind(ShaderProgram program)
           
 MaterialAttribute copy()
           
 void free()
           
 MaterialAttribute pooledCopy()
           
 void set(MaterialAttribute attr)
           
 
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

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

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

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)