DDraceNetwork Docs
|
#include <particles.h>
Classes | |
class | CRenderGroup |
Public Types | |
enum | { GROUP_PROJECTILE_TRAIL = 0 , GROUP_TRAIL_EXTRA , GROUP_EXPLOSIONS , GROUP_EXTRA , GROUP_GENERAL , NUM_GROUPS } |
Public Member Functions | |
CParticles () | |
virtual int | Sizeof () const override |
void | Add (int Group, CParticle *pPart, float TimePassed=0.f) |
virtual void | OnReset () override |
virtual void | OnRender () override |
virtual void | OnInit () override |
Public Member Functions inherited from CComponent | |
virtual | ~CComponent () |
virtual int | Sizeof () const =0 |
class CGameClient * | GameClient () const |
class IClient * | Client () const |
virtual void | OnStateChange (int NewState, int OldState) |
virtual void | OnConsoleInit () |
virtual void | OnInit () |
virtual void | OnShutdown () |
virtual void | OnReset () |
virtual void | OnWindowResize () |
virtual void | OnRefreshSkins () |
virtual void | OnRender () |
virtual void | OnNewSnapshot () |
virtual void | OnRelease () |
virtual void | OnMapLoad () |
virtual void | OnMessage (int Msg, void *pRawMsg) |
virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
virtual bool | OnInput (const IInput::CEvent &Event) |
Private Types | |
enum | { MAX_PARTICLES = 1024 * 8 } |
Private Member Functions | |
void | RenderGroup (int Group) |
void | Update (float TimePassed) |
bool | ParticleIsVisibleOnScreen (const vec2 &CurPos, float CurSize) |
Private Attributes | |
int | m_ParticleQuadContainerIndex |
int | m_ExtraParticleQuadContainerIndex |
CParticle | m_aParticles [MAX_PARTICLES] |
int | m_FirstFree |
int | m_aFirstPart [NUM_GROUPS] |
float | m_FrictionFraction = 0.0f |
int64_t | m_LastRenderTime = 0 |
CRenderGroup< GROUP_PROJECTILE_TRAIL > | m_RenderTrail |
CRenderGroup< GROUP_TRAIL_EXTRA > | m_RenderTrailExtra |
CRenderGroup< GROUP_EXPLOSIONS > | m_RenderExplosions |
CRenderGroup< GROUP_EXTRA > | m_RenderExtra |
CRenderGroup< GROUP_GENERAL > | m_RenderGeneral |
Friends | |
class | CGameClient |
Additional Inherited Members | |
Protected Member Functions inherited from CComponent | |
class IKernel * | Kernel () const |
class IEngine * | Engine () const |
class IGraphics * | Graphics () const |
class ITextRender * | TextRender () const |
class IInput * | Input () const |
class IStorage * | Storage () const |
class CUi * | Ui () const |
class ISound * | Sound () const |
class CRenderTools * | RenderTools () const |
class IConfigManager * | ConfigManager () const |
class CConfig * | Config () const |
class IConsole * | Console () const |
class IDemoPlayer * | DemoPlayer () const |
class IDemoRecorder * | DemoRecorder (int Recorder) const |
class IFavorites * | Favorites () const |
class IServerBrowser * | ServerBrowser () const |
class CLayers * | Layers () const |
class CCollision * | Collision () const |
int64_t | time () const |
float | LocalTime () const |
class IHttp * | Http () const |
Protected Attributes inherited from CComponent | |
CGameClient * | m_pClient |
anonymous enum |
CParticles::CParticles | ( | ) |
void CParticles::Add | ( | int | Group, |
CParticle * | pPart, | ||
float | TimePassed = 0.f |
||
) |
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CComponent.
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
Reimplemented from CComponent.
|
private |
|
private |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
|
private |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |