DDraceNetwork Documentation
Loading...
Searching...
No Matches
maplayers.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_COMPONENTS_MAPLAYERS_H
4#define GAME_CLIENT_COMPONENTS_MAPLAYERS_H
5
8
9#include <cstdint>
10#include <memory>
11
12class CCamera;
13class CLayers;
14class CMapImages;
15class ColorRGBA;
16
17class CMapLayers : public CComponent, public IEnvelopeEval
18{
19 friend class CBackground;
20 friend class CMenuBackground;
21
24 std::shared_ptr<CMapBasedEnvelopePointAccess> m_pEnvelopePoints;
25
28
29public:
31 void EnvelopeEval(int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels) override;
32
33 CMapLayers(ERenderType Type, bool OnlineOnly = true);
34 int Sizeof() const override { return sizeof(*this); }
35 void OnInit() override;
36 void OnRender() override;
37 void OnMapLoad() override;
38 void Unload();
39
40 virtual CCamera *GetCurCamera();
41
42private:
45};
46
47#endif
Definition background.h:22
Definition camera.h:14
Definition component.h:165
Definition gameclient.h:132
Definition layers.h:13
Definition render_map.h:32
Definition mapimages.h:37
Definition maplayers.h:18
CLayers * m_pLayers
Definition maplayers.h:22
static void EnvelopeEval(int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, IMap *pMap, CMapBasedEnvelopePointAccess *pEnvelopePoints, IClient *pClient, CGameClient *pGameClient, bool OnlineOnly)
Definition maplayers.cpp:12
CMapImages * m_pImages
Definition maplayers.h:23
void OnInit() override
Definition maplayers.cpp:72
CRenderLayerParams m_Params
Definition maplayers.h:43
std::shared_ptr< CMapBasedEnvelopePointAccess > m_pEnvelopePoints
Definition maplayers.h:24
void Unload()
bool m_OnlineOnly
Definition maplayers.h:27
int Sizeof() const override
Definition maplayers.h:34
void OnRender() override
Definition maplayers.cpp:100
ERenderType m_Type
Definition maplayers.h:26
CMapRenderer m_MapRenderer
Definition maplayers.h:44
void OnMapLoad() override
Definition maplayers.cpp:84
virtual CCamera * GetCurCamera()
Definition maplayers.cpp:79
Definition map_renderer.h:10
Definition menu_background.h:32
Definition render_layer.h:34
Definition color.h:198
Definition client.h:39
Definition render_interfaces.h:24
Definition map.h:16
Definition vmath.h:15
ERenderType
Definition render_interfaces.h:15