|
|||||||||||
| 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.viewport.text.E3DViewportPrinter
| Field Summary |
| Fields inherited from class espresso3d.engine.renderer.base.E3DRenderable |
RENDERMODE_SOLID, RENDERMODE_TEXTURED, RENDERMODE_WIREFRAME |
| Constructor Summary | |
E3DViewportPrinter(E3DEngine engine,
E3DViewport viewport)
Construct a viewport printer. |
|
| Method Summary | |
void |
addFont(espresso3d.engine.viewport.text.E3DFont font)
Add (register) a font to the viewport printer. |
espresso3d.engine.viewport.text.E3DFont |
getFont(java.lang.String fontID)
Get a registered font object from the viewportprinter named fontID |
E3DViewport |
getViewport()
Get the viewport the viewportPrinter is within |
E3DMessage |
printToViewport(java.lang.String text,
java.lang.String fontName,
int fontSize,
E3DVector2I position,
double life)
|
E3DMessage |
printToViewport(java.lang.String text,
java.lang.String fontName,
int fontSize,
E3DVector3F color,
E3DVector2I position,
double life)
|
E3DMessage |
printToViewport(java.lang.String text,
java.lang.String fontName,
int fontSize,
E3DVector3F color,
E3DVector2I position,
double life,
int blendMode)
|
void |
removeFont(java.lang.String fontID)
Remove a font from the viewportprinter |
void |
removeMessage(E3DMessage message)
Remove a message from the viewport even if its life hasn't expired yet. |
void |
renderAtPosition(E3DVector3F position)
Rendering all messages |
void |
setViewport(E3DViewport viewport)
Set the viewport the viewportPrinter belongs to. |
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getRenderableOptionsKey, getRenderMode, initCorrectGeometryRenderer, 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 E3DViewportPrinter(E3DEngine engine,
E3DViewport viewport)
| Method Detail |
public void addFont(espresso3d.engine.viewport.text.E3DFont font)
font - public espresso3d.engine.viewport.text.E3DFont getFont(java.lang.String fontID)
fontID - ID of the font registered in the viewportPrinter
public void removeFont(java.lang.String fontID)
fontID - Unique ID of the font to remove
public E3DMessage printToViewport(java.lang.String text,
java.lang.String fontName,
int fontSize,
E3DVector2I position,
double life)
text - The text to print to the viewportfontName - Name of a font that has been loaded alreadyfontSize - The size the font should be displayed as. The font size scales as the main window scales, NOT the viewportposition - Position starting from x=0,y=0 at the bottom left corner of the viewport (NOT window). The font grows up and right from herelife - How long (Seconds) the text should be printed. -1 is infinity
public E3DMessage printToViewport(java.lang.String text,
java.lang.String fontName,
int fontSize,
E3DVector3F color,
E3DVector2I position,
double life)
text - The text to print to the viewportfontName - Name of a font that has been loaded alreadyfontSize - The size the font should be displayed as. The font size scales as the main window scales, NOT the viewportposition - Position starting from x=0,y=0 at the bottom left corner of the viewport (NOT window). The font grows up and right from herelife - How long (Seconds) the text should be printed. -1 is infinitycolor - A color overlay for the font. X=R, Y=G, Z=B. If the font is white, this will change the font to whatever color you specify Valid range is [0.0, 1.0]
public E3DMessage printToViewport(java.lang.String text,
java.lang.String fontName,
int fontSize,
E3DVector3F color,
E3DVector2I position,
double life,
int blendMode)
text - The text to print to the viewportfontName - Name of a font that has been loaded alreadyfontSize - The size the font should be displayed as. The font size scales as the main window scales, NOT the viewportposition - Position starting from x=0,y=0 at the bottom left corner of the viewport (NOT window). The font grows up and right from herelife - How long (Seconds) the text should be printed. -1 is infinitycolor - A color overlay for the font. X=R, Y=G, Z=B. If the font is white, this will change the font to whatever color you specify Valid range is [0.0, 1.0]blendMode - The type of blending to use for the font if other than default BLENDMODE_BLEND. The blendmodes are enumerated in E3DBlendedRenderable
public void removeMessage(E3DMessage message)
message - public void renderAtPosition(E3DVector3F position)
renderAtPosition in class E3DRenderablepublic E3DViewport getViewport()
public void setViewport(E3DViewport viewport)
viewport -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||