Pyrogenesis
13997
|
Interface for rendering 'overlay' objects (typically sprites), automatically positioned relative to the entity. More...
#include <ICmpOverlayRenderer.h>
Public Member Functions | |
virtual void | Reset ()=0 |
Delete all sprites that have been previously added. More... | |
virtual void | AddSprite (VfsPath textureName, CFixedVector2D corner0, CFixedVector2D corner1, CFixedVector3D offset)=0 |
Add a new textured billboard sprite to be rendered. More... | |
![]() | |
virtual | ~IComponent () |
virtual void | Init (const CParamNode ¶mNode)=0 |
virtual void | Deinit ()=0 |
virtual void | HandleMessage (const CMessage &msg, bool global) |
CEntityHandle | GetEntityHandle () const |
void | SetEntityHandle (CEntityHandle ent) |
entity_id_t | GetEntityId () const |
CEntityHandle | GetSystemEntity () const |
const CSimContext & | GetSimContext () const |
void | SetSimContext (const CSimContext &context) |
virtual void | Serialize (ISerializer &serialize)=0 |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize)=0 |
virtual JSClass * | GetJSClass () const |
virtual jsval | GetJSInstance () const |
Additional Inherited Members | |
![]() | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Interface for rendering 'overlay' objects (typically sprites), automatically positioned relative to the entity.
Usually driven by the StatusBars component.
(TODO: maybe we should add a "category" argument to Reset/AddSprite/etc, so different components can each maintain independent sets of overlays here?)
Definition at line 37 of file ICmpOverlayRenderer.h.
|
pure virtual |
Add a new textured billboard sprite to be rendered.
textureName | filename of texture to render. |
corner0,corner1 | coordinates of sprite's corners, in world-space units oriented with the camera plane, relative to the sprite position. |
offset | world-space offset of sprite position from the entity's base position. |
Implemented in CCmpOverlayRenderer.
|
pure virtual |
Delete all sprites that have been previously added.
Implemented in CCmpOverlayRenderer.