|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.renderer.base.E3DBlendedRenderable
espresso3d.engine.renderer.base.E3DBlendedAnimatedTextureRenderable
espresso3d.engine.viewport.image.E3DImage
| Field Summary |
| Fields inherited from class espresso3d.engine.renderer.base.E3DBlendedRenderable |
BLENDMODE_BLEND, BLENDMODE_SOLID |
| Fields inherited from class espresso3d.engine.renderer.base.E3DRenderable |
RENDERMODE_SOLID, RENDERMODE_TEXTURED, RENDERMODE_WIREFRAME |
| Constructor Summary | |
E3DImage(E3DEngine engine,
java.lang.String imageID,
E3DAnimatedTextureFrame[] animatedTextureFrames,
int animationLoops,
E3DVector2I position,
int life)
Construct an image with an animated texture |
|
E3DImage(E3DEngine engine,
java.lang.String imageID,
E3DAnimatedTextureFrame[] animatedTextureFrames,
int animationLoops,
E3DVector2I position,
int life,
int blendMode)
Construct an image with an animated texture |
|
E3DImage(E3DEngine engine,
java.lang.String imageID,
java.lang.String textureName,
E3DVector2I position,
int life)
Create a new viewport image. |
|
E3DImage(E3DEngine engine,
java.lang.String imageID,
java.lang.String textureName,
E3DVector2I position,
int life,
int blendMode)
Create a new viewport image. |
|
E3DImage(E3DImage toCopyImage,
java.lang.String imageID)
Make a copy of an image |
|
| Method Summary | |
double |
getAge()
Returns the age of the image, or, how many seconds it has already been rendered. |
java.lang.String |
getImageID()
Return the ID of the image |
double |
getLife()
Get the life of the image or length of time in secodns it will be renderered in the engine. |
E3DVector2I |
getPosition()
Get the 2D position of the image (Viewport coords with (0,0) in the bottom left) |
abstract E3DQuad |
getPositionedQuad()
Return a copy of this quad and position and size the copy as necessary |
E3DQuad |
getQuad()
Return the quad that makes up the image. |
E3DViewport |
getViewport()
The viewport this image is in. |
void |
renderAtPosition(E3DVector3F position)
|
abstract void |
scale(double scaleAmt)
Implementing class must specify a way to scale itself |
void |
setImageID(java.lang.String imageID)
Set the ID of the image |
void |
setLife(double life)
Set the life of the image or length of time in secodns it will be renderered in the engine. |
void |
setPosition(E3DVector2I position)
Set the 2D position of the image (Viewport coords with (0,0) in the bottom left) |
void |
setQuad(E3DQuad quad)
Set a quad for hte image to use. |
void |
setVertexColor(E3DVector3F vertexColorA,
E3DVector3F vertexColorB,
E3DVector3F vertexColorC,
E3DVector3F vertexColorD)
Set the color of the 4 vertices that make up the corners of the image |
void |
setViewport(E3DViewport viewport)
This is handled automatically by the viewport when added |
void |
translate(E3DVector2I translationAmt)
Translate the image |
boolean |
update(double lastFrameTimeSeconds)
Called by the printer to update its life |
| Methods inherited from class espresso3d.engine.renderer.base.E3DBlendedAnimatedTextureRenderable |
getAnimatedTexture, getRenderableOptionsKey, setAnimatedTexture |
| Methods inherited from class espresso3d.engine.renderer.base.E3DBlendedRenderable |
getBlendMode, initCorrectGeometryRenderer, setBlendMode |
| 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 |
| Constructor Detail |
public E3DImage(E3DEngine engine,
java.lang.String imageID,
java.lang.String textureName,
E3DVector2I position,
int life)
engine - imageID - The ID this image will be. This can be any string that uniquely identifies this image once added to the viewport.textureName - The name of the texture that will make up the graphicposition - The position (X,Y) on the screen that the bottom left corner of the image is at. (0,0) is at the bottom left corner of the viewport.
public E3DImage(E3DEngine engine,
java.lang.String imageID,
java.lang.String textureName,
E3DVector2I position,
int life,
int blendMode)
engine - imageID - The ID this image will be. This can be any string that uniquely identifies this image once added to the viewport.textureName - The name of the texture that will make up the graphicposition - The position (X,Y) on the screen that the bottom left corner of the image is at. (0,0) is at the bottom left corner of the viewport.life - How long the image should be rendered (in seconds). -1 will render forever (or until removed programmatically from the viewport)blendMode - The blending mode used for the image during render time. Default is BLENDMODE_SOLID
public E3DImage(E3DEngine engine,
java.lang.String imageID,
E3DAnimatedTextureFrame[] animatedTextureFrames,
int animationLoops,
E3DVector2I position,
int life,
int blendMode)
engine - imageID - animatedTextureFrames - animationLoops - position - life - blendMode -
public E3DImage(E3DEngine engine,
java.lang.String imageID,
E3DAnimatedTextureFrame[] animatedTextureFrames,
int animationLoops,
E3DVector2I position,
int life)
engine - imageID - animatedTextureFrames - animationLoops - position - life -
public E3DImage(E3DImage toCopyImage,
java.lang.String imageID)
toCopyImage - | Method Detail |
public void renderAtPosition(E3DVector3F position)
renderAtPosition in class E3DBlendedAnimatedTextureRenderablepublic abstract void scale(double scaleAmt)
scaleAmt - public abstract E3DQuad getPositionedQuad()
public E3DViewport getViewport()
public java.lang.String getImageID()
public void setImageID(java.lang.String imageID)
imageID - public E3DQuad getQuad()
public void setQuad(E3DQuad quad)
quad - public void translate(E3DVector2I translationAmt)
translationAmt -
public void setVertexColor(E3DVector3F vertexColorA,
E3DVector3F vertexColorB,
E3DVector3F vertexColorC,
E3DVector3F vertexColorD)
vertexColorA - vertexColorB - vertexColorC - vertexColorD - public E3DVector2I getPosition()
public void setPosition(E3DVector2I position)
position - public void setViewport(E3DViewport viewport)
viewport - public boolean update(double lastFrameTimeSeconds)
public double getLife()
public void setLife(double life)
life - public double getAge()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||