DDraceNetwork Documentation
Loading...
Searching...
No Matches
CMapLayers Class Reference

#include <maplayers.h>

Inheritance diagram for CMapLayers:
[legend]
Collaboration diagram for CMapLayers:
[legend]

Public Member Functions

void EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels) override
 
 CMapLayers (ERenderType Type, bool OnlineOnly=true)
 
int Sizeof () const override
 
void OnInit () override
 
void OnRender () override
 
void OnMapLoad () override
 
void Unload ()
 
virtual CCameraGetCurCamera ()
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()=default
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnUpdate ()
 
virtual void OnNewSnapshot ()
 
virtual void OnRelease ()
 
virtual void OnMessage (int Msg, void *pRawMsg)
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
 
virtual bool OnInput (const IInput::CEvent &Event)
 
virtual bool OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates)
 
- Public Member Functions inherited from CComponentInterfaces
virtual void OnInterfacesInit (CGameClient *pClient)
 
virtual ~CComponentInterfaces ()=default
 
- Public Member Functions inherited from IEnvelopeEval
virtual ~IEnvelopeEval ()=default
 

Static Public Member Functions

static void EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, IMap *pMap, CMapBasedEnvelopePointAccess *pEnvelopePoints, IClient *pClient, CGameClient *pGameClient, bool OnlineOnly)
 

Private Attributes

CLayersm_pLayers
 
CMapImagesm_pImages
 
std::shared_ptr< CMapBasedEnvelopePointAccessm_pEnvelopePoints
 
ERenderType m_Type
 
bool m_OnlineOnly
 
CRenderLayerParams m_Params
 
CMapRenderer m_MapRenderer
 

Friends

class CBackground
 
class CMenuBackground
 

Additional Inherited Members

- Protected Member Functions inherited from CComponentInterfaces
class CGameClientGameClient () const
 
class IClientClient () const
 
class IKernelKernel () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ITextRenderTextRender () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class CUiUi () const
 
class ISoundSound () const
 
class CRenderToolsRenderTools () const
 
class CRenderMapRenderMap () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CLayersLayers () const
 
class CCollisionCollision () const
 
int64_t time () const
 
float LocalTime () const
 
class IHttpHttp () const
 

Constructor & Destructor Documentation

◆ CMapLayers()

CMapLayers::CMapLayers ( ERenderType  Type,
bool  OnlineOnly = true 
)

Member Function Documentation

◆ EnvelopeEval() [1/2]

void CMapLayers::EnvelopeEval ( int  TimeOffsetMillis,
int  Env,
ColorRGBA Result,
size_t  Channels 
)
overridevirtual

Implements IEnvelopeEval.

◆ EnvelopeEval() [2/2]

void CMapLayers::EnvelopeEval ( int  TimeOffsetMillis,
int  Env,
ColorRGBA Result,
size_t  Channels,
IMap pMap,
CMapBasedEnvelopePointAccess pEnvelopePoints,
IClient pClient,
CGameClient pGameClient,
bool  OnlineOnly 
)
static

◆ GetCurCamera()

CCamera * CMapLayers::GetCurCamera ( )
virtual

Reimplemented in CMenuBackground.

◆ OnInit()

void CMapLayers::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ OnMapLoad()

void CMapLayers::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ OnRender()

void CMapLayers::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ Sizeof()

int CMapLayers::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Reimplemented in CMenuBackground.

◆ Unload()

void CMapLayers::Unload ( )

Friends And Related Symbol Documentation

◆ CBackground

◆ CMenuBackground

Member Data Documentation

◆ m_MapRenderer

CMapRenderer CMapLayers::m_MapRenderer
private

◆ m_OnlineOnly

bool CMapLayers::m_OnlineOnly
private

◆ m_Params

CRenderLayerParams CMapLayers::m_Params
private

◆ m_pEnvelopePoints

std::shared_ptr<CMapBasedEnvelopePointAccess> CMapLayers::m_pEnvelopePoints
private

◆ m_pImages

CMapImages* CMapLayers::m_pImages
private

◆ m_pLayers

CLayers* CMapLayers::m_pLayers
private

◆ m_Type

ERenderType CMapLayers::m_Type
private

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