#include <gauge3d/renderer/sprite.h>
Inherits GAUGE3D::GObject.
Public Methods | |
| virtual | ~GSprite () |
| virtual void | Show ()=0 |
| Tells the renderer to start drawing this object whenever it is visible. | |
| virtual void | Hide ()=0 |
| Tells the renderer not to draw this object at all. | |
| virtual void | Remove ()=0 |
| Permenantly removes the sprite from the scene. | |
| virtual void | Model (pGModel model)=0 |
| Sets the sprite's GModel. | |
| virtual void | AnimState (GModel::pAnimState anim)=0 |
| Sets the animation state for the sprite's model. | |
| virtual void | Texture (pGTexture texture)=0 |
| Sets the texture to apply to the model. | |
| virtual void | Position (const GVector &position)=0 |
| Sets the position of the sprite. | |
| virtual void | Angle (const GQuaternion &angle)=0 |
| Sets the direction that the sprite is facing. More... | |
| virtual void | Color (float red,float green,float blue)=0 |
| Set the color of the sprite. (alpha unchanged). More... | |
| virtual void | Color (float red,float green,float blue,float alpha)=0 |
| Set the color and alpha of the sprite. | |
| virtual void | Color3v (const float color[])=0 |
| Set the color of the sprite from a three-element array. (alpha unchanged). | |
| virtual void | Color4v (const float color[])=0 |
| Set the color and alpha of the sprite from a four-element array. | |
| virtual void | Alpha (float alpha)=0 |
| Set the alpha of the sprite. (color unchanged). | |
| virtual void | LightProps (float specular,float shininess,float emission)=0 |
| Set the reflectivity properties of the sprite. More... | |
| virtual void | FullBright (bool fullBright)=0 |
| Set true to ignore lighting and render the sprite at maximum brightness. | |
| virtual void | Scale (GCoordinate magnification)=0 |
| Sets a uniform scale factor for the sprite. | |
A sprite is any independently moving object in the scene. In GAUGE, a "sprite" is not necessarily a "billboard object", although it could be. A sprite can have any geometry which can be described by a GModel.
|
|
Sets the direction that the sprite is facing.
|
|
|
Set the color of the sprite. (alpha unchanged).
|
|
|
Set the reflectivity properties of the sprite.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000