espresso3d.engine.renderer.base
Class E3DBlendedRenderable
java.lang.Object
espresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
E3DBlendedRenderable
public E3DBlendedRenderable(E3DEngine engine,
int blendMode)
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