| 1 | #ifndef GAME_CLIENT_COMPONENTS_NAMEPLATES_H |
| 2 | #define GAME_CLIENT_COMPONENTS_NAMEPLATES_H |
| 3 | |
| 4 | #include <base/color.h> |
| 5 | #include <base/vmath.h> |
| 6 | |
| 7 | #include <game/client/component.h> |
| 8 | |
| 9 | struct CNetObj_PlayerInfo; |
| 10 | |
| 11 | class CNamePlates : public CComponent |
| 12 | { |
| 13 | private: |
| 14 | class CNamePlatesData; |
| 15 | CNamePlatesData *m_pData; |
| 16 | |
| 17 | public: |
| 18 | void RenderNamePlateGame(vec2 Position, const CNetObj_PlayerInfo *pPlayerInfo, float Alpha); |
| 19 | void RenderNamePlatePreview(vec2 Position, int Dummy); |
| 20 | void ResetNamePlates(); |
| 21 | int Sizeof() const override { return sizeof(*this); } |
| 22 | void OnWindowResize() override; |
| 23 | void OnRender() override; |
| 24 | CNamePlates(); |
| 25 | ~CNamePlates() override; |
| 26 | }; |
| 27 | |
| 28 | #endif |
| 29 | |