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

#include <background.h>

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

Public Member Functions

 CBackground (ERenderType MapType=ERenderType::RENDERTYPE_BACKGROUND_FORCE, bool OnlineOnly=true)
 
virtual ~CBackground ()
 
int Sizeof () const override
 
void OnInit () override
 
void OnMapLoad () override
 
void OnRender () override
 
void LoadBackground ()
 
const charMapName () const
 
- Public Member Functions inherited from CMapLayers
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
 

Protected Member Functions

virtual CBackgroundEngineMapCreateBGMap ()
 
- 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
 

Protected Attributes

IEngineMapm_pMap
 
bool m_Loaded
 
char m_aMapName [MAX_MAP_LENGTH]
 
CBackgroundEngineMapm_pBackgroundMap
 
CLayersm_pBackgroundLayers
 
CMapImagesm_pBackgroundImages
 

Additional Inherited Members

- Static Public Member Functions inherited from CMapLayers
static void EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, IMap *pMap, CMapBasedEnvelopePointAccess *pEnvelopePoints, IClient *pClient, CGameClient *pGameClient, bool OnlineOnly)
 

Constructor & Destructor Documentation

◆ CBackground()

CBackground::CBackground ( ERenderType  MapType = ERenderType::RENDERTYPE_BACKGROUND_FORCE,
bool  OnlineOnly = true 
)

◆ ~CBackground()

CBackground::~CBackground ( )
virtual

Member Function Documentation

◆ CreateBGMap()

CBackgroundEngineMap * CBackground::CreateBGMap ( )
protectedvirtual

Reimplemented in CMenuBackground.

◆ LoadBackground()

void CBackground::LoadBackground ( )

◆ MapName()

const char * CBackground::MapName ( ) const
inline

◆ OnInit()

void CBackground::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ OnMapLoad()

void CBackground::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ OnRender()

void CBackground::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 CBackground::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Reimplemented in CMenuBackground.

Member Data Documentation

◆ m_aMapName

char CBackground::m_aMapName[MAX_MAP_LENGTH]
protected

◆ m_Loaded

bool CBackground::m_Loaded
protected

◆ m_pBackgroundImages

CMapImages* CBackground::m_pBackgroundImages
protected

◆ m_pBackgroundLayers

CLayers* CBackground::m_pBackgroundLayers
protected

◆ m_pBackgroundMap

CBackgroundEngineMap* CBackground::m_pBackgroundMap
protected

◆ m_pMap

IEngineMap* CBackground::m_pMap
protected

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