|
|||||||||||
| 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.E3DBlendedTexturedRenderable
espresso3d.engine.viewport.text.E3DMessage
| 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 | |
E3DMessage(E3DEngine engine,
E3DViewport viewport,
java.lang.String text,
espresso3d.engine.viewport.text.E3DFont font,
double fontSize,
E3DVector2I position,
double life,
E3DVector3F color)
Create a message to be printed by the viewport printer. |
|
E3DMessage(E3DEngine engine,
E3DViewport viewport,
java.lang.String text,
espresso3d.engine.viewport.text.E3DFont font,
double fontSize,
E3DVector2I position,
double life,
E3DVector3F color,
int blendMode)
Create a message to be printed by the viewport printer. |
|
| Method Summary | |
double |
getAge()
Return the age, or, how long the message has been rendered |
E3DVector3F |
getColor()
Return the color of the message |
E3DVector2I |
getCursorPositionAfterMessage()
This returns the X, Y coords of the cursor after the last character in the message. |
espresso3d.engine.viewport.text.E3DFont |
getFont()
Return the font object the message is bound to |
double |
getFontSize()
Return the size of the font for the message |
double |
getLife()
Get the life of the message, or, how many seconds it will be rendered in the engine. |
E3DVector2I |
getPosition()
Get the 2D (x,y) position the message starts at. |
java.util.ArrayList |
getPositionedQuadList()
This will return an arraylist of positioned, textured quads in 3D space for the message. |
java.lang.String |
getText()
Get the text of the message that will be rendered in the viewport. |
void |
renderAtPosition(E3DVector3F position)
|
protected void |
setAge(double age)
|
void |
setColor(E3DVector3F color)
Set the color of the message. |
void |
setFont(espresso3d.engine.viewport.text.E3DFont font)
Change the font object the message should use |
void |
setFontSize(double fontSize)
Change the size of the font the message is using. |
protected void |
setLife(double life)
Get the life of the message, or, how many seconds it will be rendered in the engine. |
void |
setPosition(E3DVector2I position)
Set the 2D (x,y) position the message starts at. |
void |
setText(java.lang.String text)
Change the messages text |
protected boolean |
update(double lastFrameTimeSeconds)
Called by the printer to update its life |
| Methods inherited from class espresso3d.engine.renderer.base.E3DBlendedTexturedRenderable |
getRenderableOptionsKey, getTexture, setTexture |
| 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 E3DMessage(E3DEngine engine,
E3DViewport viewport,
java.lang.String text,
espresso3d.engine.viewport.text.E3DFont font,
double fontSize,
E3DVector2I position,
double life,
E3DVector3F color)
engine - viewport - text - font - fontSize - position - life - color -
public E3DMessage(E3DEngine engine,
E3DViewport viewport,
java.lang.String text,
espresso3d.engine.viewport.text.E3DFont font,
double fontSize,
E3DVector2I position,
double life,
E3DVector3F color,
int blendMode)
engine - viewport - text - font - fontSize - life - color - blendMode - Type of blending to use when rendering| Method Detail |
public void renderAtPosition(E3DVector3F position)
renderAtPosition in class E3DBlendedTexturedRenderablepublic java.util.ArrayList getPositionedQuadList()
public E3DVector2I getCursorPositionAfterMessage()
public espresso3d.engine.viewport.text.E3DFont getFont()
public void setFont(espresso3d.engine.viewport.text.E3DFont font)
font - protected boolean update(double lastFrameTimeSeconds)
public double getLife()
protected void setLife(double life)
life - Number of seconds the message should be renderedpublic java.lang.String getText()
public void setText(java.lang.String text)
text - public double getAge()
protected void setAge(double age)
public E3DVector3F getColor()
public void setColor(E3DVector3F color)
color - public double getFontSize()
public void setFontSize(double fontSize)
fontSize - Size of the font (or scalar for the message)public E3DVector2I getPosition()
public void setPosition(E3DVector2I position)
position -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||