Pyrogenesis
trunk
|
Public Member Functions | |
virtual int | GetComponentTypeId () const |
virtual void | Init (const CParamNode ¶mNode) |
virtual void | Deinit () |
virtual void | Serialize (ISerializer &serialize) |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) |
virtual void | HandleMessage (const CMessage &msg, bool global) |
void | UpdateMessageSubscriptions () |
virtual void | Reset () |
Delete all sprites that have been previously added. More... | |
virtual void | AddSprite (const VfsPath &textureName, const CFixedVector2D &corner0, const CFixedVector2D &corner1, const CFixedVector3D &position, const std::string &color) |
Add a new textured billboard sprite to be rendered. More... | |
void | Interpolate (float frameTime, float frameOffset) |
void | RenderSubmit (SceneCollector &collector) |
Public Member Functions inherited from IComponent | |
virtual | ~IComponent () |
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 bool | NewJSObject (ScriptInterface &scriptInterface, JS::MutableHandleObject out) const |
Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More... | |
virtual JS::Value | GetJSInstance () const |
Static Public Member Functions | |
static void | ClassInit (CComponentManager &componentManager) |
static IComponent * | Allocate (ScriptInterface &, JS::HandleValue) |
static void | Deallocate (IComponent *cmp) |
static std::string | GetSchema () |
Static Public Member Functions inherited from ICmpOverlayRenderer | |
static void | SetOverrideVisibility (bool visible) |
Enables or disables rendering of all sprites. More... | |
Static Public Member Functions inherited from IComponent | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Public Attributes | |
std::vector< SOverlaySprite > | m_Sprites |
std::vector< CVector3D > | m_SpriteOffsets |
bool | m_Enabled |
Additional Inherited Members | |
Static Protected Attributes inherited from ICmpOverlayRenderer | |
static bool | m_OverrideVisible = true |
|
inlinevirtual |
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. |
color | multiply color of texture |
Implements ICmpOverlayRenderer.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Implements IComponent.
|
inlinevirtual |
Implements IComponent.
|
inlinestatic |
|
inlinevirtual |
Reimplemented from IComponent.
|
inlinevirtual |
Implements IComponent.
|
inline |
|
inline |
|
inlinevirtual |
Delete all sprites that have been previously added.
Implements ICmpOverlayRenderer.
|
inlinevirtual |
Implements IComponent.
|
inline |
bool CCmpOverlayRenderer::m_Enabled |
std::vector<CVector3D> CCmpOverlayRenderer::m_SpriteOffsets |
std::vector<SOverlaySprite> CCmpOverlayRenderer::m_Sprites |