|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.implementation.jogl.sprite.JoGLSpriteManager
public class JoGLSpriteManager
| Constructor Summary | |
|---|---|
JoGLSpriteManager(JoGLCanvas canvas)
Default constructor. |
|
| Method Summary | |
|---|---|
Sprite |
createRotatableSprite(int width,
int height)
Create a rotatable sprite of given size. |
Sprite |
createSprite(java.awt.Dimension dimension)
Create a sprite of given size. |
Sprite |
createSprite(int width,
int height)
Create a sprite of given size. |
void |
dispose(java.util.Collection<Sprite> sprites)
Release all resources used by the given sprites. |
void |
dispose(Sprite sprite)
Release all resources used by the given sprite. |
void |
draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
ElementsBuffer positions)
Perform the sprite drawing. |
void |
draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
ElementsBuffer positions,
double rotationAngle)
Perform the sprite drawing. |
void |
draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
Vector3d position)
Perform the sprite drawing. |
void |
draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
Vector3d position,
double rotationAngle)
Perform the sprite drawing. |
java.awt.Dimension |
getSize(TextEntity textEntity)
Return the dimension in pixel of the given text entity. |
void |
glReload(JoGLDrawingTools drawingTools)
Ask all JoGLSprite to reload. |
void |
glSynchronize(JoGLDrawingTools drawingTools)
Synchronize to OpenGl context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoGLSpriteManager(JoGLCanvas canvas)
canvas - current canvas.| Method Detail |
|---|
public Sprite createSprite(int width,
int height)
SpriteManager
createSprite in interface SpriteManagerwidth - the sprite width.height - the sprite height.
public Sprite createSprite(java.awt.Dimension dimension)
SpriteManager
createSprite in interface SpriteManagerdimension - the given dimension.
public Sprite createRotatableSprite(int width,
int height)
SpriteManager
createRotatableSprite in interface SpriteManagerwidth - the sprite width.height - the sprite height.
public void dispose(Sprite sprite)
SpriteManager
dispose in interface SpriteManagersprite - the given sprite.public void dispose(java.util.Collection<Sprite> sprites)
SpriteManager
dispose in interface SpriteManagersprites - the given sprites.public java.awt.Dimension getSize(TextEntity textEntity)
SpriteManager
getSize in interface SpriteManagertextEntity - the given text entity.
public void draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
ElementsBuffer positions)
drawingTools - the drawing tools.sprite - sprite to draw.anchor - anchor position.positions - position where draw the sprite.
public void draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
ElementsBuffer positions,
double rotationAngle)
drawingTools - the drawing tools.sprite - sprite to draw.anchor - anchor position.positions - position where draw the sprite.rotationAngle - rotation angle.
public void draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
Vector3d position)
drawingTools - drawing tools.sprite - sprite to draw.anchor - anchor position.position - position where draw the sprite.
public void draw(JoGLDrawingTools drawingTools,
Sprite sprite,
SpriteAnchorPosition anchor,
Vector3d position,
double rotationAngle)
drawingTools - drawing tools.sprite - sprite to draw.anchor - anchor position.position - position where draw the sprite.rotationAngle - rotation angle.public void glSynchronize(JoGLDrawingTools drawingTools)
drawingTools - the current drawing tools.public void glReload(JoGLDrawingTools drawingTools)
JoGLSprite to reload.
This is needed when the OpenGl context has been lost.
drawingTools - the current drawing tools.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||