espresso3d.engine.renderer.base
Class E3DBlendedRenderable

java.lang.Object
  extended byespresso3d.engine.base.E3DEngineItem
      extended byespresso3d.engine.renderer.base.E3DRenderable
          extended byespresso3d.engine.renderer.base.E3DBlendedRenderable
Direct Known Subclasses:
E3DBlendedAnimatedTextureRenderable, E3DBlendedTexturedRenderable

public abstract class E3DBlendedRenderable
extends E3DRenderable

Author:
cmoxley TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
static int BLENDMODE_BLEND
          If an object supports blending and its blendmode is blend, the object will blend with the scene.
static int BLENDMODE_SOLID
          If an object supports blending and its blendmode is solid, no blending will occur.
 
Fields inherited from class espresso3d.engine.renderer.base.E3DRenderable
RENDERMODE_SOLID, RENDERMODE_TEXTURED, RENDERMODE_WIREFRAME
 
Constructor Summary
E3DBlendedRenderable(E3DEngine engine, int blendMode)
           
 
Method Summary
 int getBlendMode()
           
 java.lang.String getRenderableOptionsKey()
           
 void initCorrectGeometryRenderer()
          Based on the blend mode & rendermode, this will determine which geometry renderer to use and will set it up so after this is called, you can simply make a call to render the geometry and you will have the correct blend mode
abstract  void renderAtPosition(E3DVector3F position)
           
 void setBlendMode(int blendMode)
           
 
Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable
getRenderMode, render, setRenderMode
 
Methods inherited from class espresso3d.engine.base.E3DEngineItem
getEngine, setEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLENDMODE_SOLID

public static final int BLENDMODE_SOLID
If an object supports blending and its blendmode is solid, no blending will occur. The object will be opaque.

See Also:
Constant Field Values

BLENDMODE_BLEND

public static final int BLENDMODE_BLEND
If an object supports blending and its blendmode is blend, the object will blend with the scene. Any alpha information in the texture on the object (if it has a texture) will also be used and make those sections of the texture transparent/translucent.

See Also:
Constant Field Values
Constructor Detail

E3DBlendedRenderable

public E3DBlendedRenderable(E3DEngine engine,
                            int blendMode)
Method Detail

renderAtPosition

public abstract void renderAtPosition(E3DVector3F position)
Specified by:
renderAtPosition in class E3DRenderable

getBlendMode

public int getBlendMode()

setBlendMode

public void setBlendMode(int blendMode)

initCorrectGeometryRenderer

public void initCorrectGeometryRenderer()
Based on the blend mode & rendermode, this will determine which geometry renderer to use and will set it up so after this is called, you can simply make a call to render the geometry and you will have the correct blend mode

Overrides:
initCorrectGeometryRenderer in class E3DRenderable

getRenderableOptionsKey

public java.lang.String getRenderableOptionsKey()
Overrides:
getRenderableOptionsKey in class E3DRenderable