mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gameui): add CGCamera and workaround to control it
This commit is contained in:
parent
5be5ba35b9
commit
45ceb6354b
8 changed files with 84 additions and 20 deletions
|
|
@ -4,16 +4,22 @@
|
|||
#include "ui/CSimpleFrame.hpp"
|
||||
#include "ui/CSimpleTop.hpp"
|
||||
|
||||
class CGCamera;
|
||||
|
||||
class CGWorldFrame : public CSimpleFrame {
|
||||
public:
|
||||
CGWorldFrame(CSimpleFrame* parent);
|
||||
|
||||
virtual void OnFrameRender(CRenderBatch* batch, uint32_t layer);
|
||||
virtual int32_t OnLayerKeyDown(const CKeyEvent& evt);
|
||||
|
||||
static CSimpleFrame* Create(CSimpleFrame* parent);
|
||||
static void RenderWorld(void* param);
|
||||
static void OnWorldUpdate();
|
||||
static void OnWorldRender();
|
||||
static CGCamera* GetActiveCamera();
|
||||
|
||||
CGCamera* m_camera = nullptr;
|
||||
|
||||
public:
|
||||
static CGWorldFrame* s_currentWorldFrame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue