Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CCmpOverlayRenderer Class Reference
Inheritance diagram for CCmpOverlayRenderer:
ICmpOverlayRenderer IComponent

Public Member Functions

virtual void Init (const CParamNode &paramNode)
 
virtual void Deinit ()
 
virtual void Serialize (ISerializer &serialize)
 
virtual void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize)
 
virtual void HandleMessage (const CMessage &msg, bool global)
 
virtual void Reset ()
 Delete all sprites that have been previously added. More...
 
virtual void AddSprite (VfsPath textureName, CFixedVector2D corner0, CFixedVector2D corner1, CFixedVector3D position)
 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 CSimContextGetSimContext () const
 
void SetSimContext (const CSimContext &context)
 
virtual JSClass * GetJSClass () const
 
virtual jsval GetJSInstance () const
 

Static Public Member Functions

static void ClassInit (CComponentManager &componentManager)
 
static IComponentAllocate (ScriptInterface &, jsval)
 
static void Deallocate (IComponent *cmp)
 
static std::string GetSchema ()
 
- Static Public Member Functions inherited from IComponent
static std::string GetSchema ()
 
static u8 GetSerializationVersion ()
 

Public Attributes

std::vector< SOverlaySpritem_Sprites
 
std::vector< CVector3Dm_SpriteOffsets
 
bool m_Enabled
 

Detailed Description

Definition at line 30 of file CCmpOverlayRenderer.cpp.

Member Function Documentation

virtual void CCmpOverlayRenderer::AddSprite ( VfsPath  textureName,
CFixedVector2D  corner0,
CFixedVector2D  corner1,
CFixedVector3D  offset 
)
inlinevirtual

Add a new textured billboard sprite to be rendered.

Parameters
textureNamefilename of texture to render.
corner0,corner1coordinates of sprite's corners, in world-space units oriented with the camera plane, relative to the sprite position.
offsetworld-space offset of sprite position from the entity's base position.

Implements ICmpOverlayRenderer.

Definition at line 101 of file CCmpOverlayRenderer.cpp.

static IComponent* CCmpOverlayRenderer::Allocate ( ScriptInterface ,
jsval   
)
inlinestatic

Definition at line 39 of file CCmpOverlayRenderer.cpp.

static void CCmpOverlayRenderer::ClassInit ( CComponentManager componentManager)
inlinestatic

Definition at line 33 of file CCmpOverlayRenderer.cpp.

static void CCmpOverlayRenderer::Deallocate ( IComponent cmp)
inlinestatic

Definition at line 39 of file CCmpOverlayRenderer.cpp.

virtual void CCmpOverlayRenderer::Deinit ( )
inlinevirtual

Implements IComponent.

Definition at line 60 of file CCmpOverlayRenderer.cpp.

virtual void CCmpOverlayRenderer::Deserialize ( const CParamNode paramNode,
IDeserializer deserialize 
)
inlinevirtual

Implements IComponent.

Definition at line 71 of file CCmpOverlayRenderer.cpp.

static std::string CCmpOverlayRenderer::GetSchema ( )
inlinestatic

Definition at line 51 of file CCmpOverlayRenderer.cpp.

virtual void CCmpOverlayRenderer::HandleMessage ( const CMessage msg,
bool  global 
)
inlinevirtual

Reimplemented from IComponent.

Definition at line 76 of file CCmpOverlayRenderer.cpp.

virtual void CCmpOverlayRenderer::Init ( const CParamNode paramNode)
inlinevirtual

Implements IComponent.

Definition at line 56 of file CCmpOverlayRenderer.cpp.

void CCmpOverlayRenderer::Interpolate ( float  frameTime,
float  frameOffset 
)
inline

Definition at line 116 of file CCmpOverlayRenderer.cpp.

void CCmpOverlayRenderer::RenderSubmit ( SceneCollector collector)
inline

Definition at line 144 of file CCmpOverlayRenderer.cpp.

virtual void CCmpOverlayRenderer::Reset ( )
inlinevirtual

Delete all sprites that have been previously added.

Implements ICmpOverlayRenderer.

Definition at line 95 of file CCmpOverlayRenderer.cpp.

virtual void CCmpOverlayRenderer::Serialize ( ISerializer serialize)
inlinevirtual

Implements IComponent.

Definition at line 64 of file CCmpOverlayRenderer.cpp.

Member Data Documentation

bool CCmpOverlayRenderer::m_Enabled

Definition at line 49 of file CCmpOverlayRenderer.cpp.

std::vector<CVector3D> CCmpOverlayRenderer::m_SpriteOffsets

Definition at line 46 of file CCmpOverlayRenderer.cpp.

std::vector<SOverlaySprite> CCmpOverlayRenderer::m_Sprites

Definition at line 42 of file CCmpOverlayRenderer.cpp.


The documentation for this class was generated from the following file: