2025-03-30 00:15:17 +04:00
|
|
|
#ifndef GAME_UI_CGWORLDFRAME_HPP
|
|
|
|
|
#define GAME_UI_CGWORLDFRAME_HPP
|
|
|
|
|
|
|
|
|
|
#include "ui/CSimpleFrame.hpp"
|
|
|
|
|
#include "ui/CSimpleTop.hpp"
|
|
|
|
|
|
2025-07-27 19:09:15 +04:00
|
|
|
class CGCamera;
|
|
|
|
|
|
2025-03-30 00:15:17 +04:00
|
|
|
class CGWorldFrame : public CSimpleFrame {
|
|
|
|
|
public:
|
|
|
|
|
CGWorldFrame(CSimpleFrame* parent);
|
|
|
|
|
|
|
|
|
|
virtual void OnFrameRender(CRenderBatch* batch, uint32_t layer);
|
2025-07-27 19:09:15 +04:00
|
|
|
virtual int32_t OnLayerKeyDown(const CKeyEvent& evt);
|
2025-03-30 00:15:17 +04:00
|
|
|
|
|
|
|
|
static CSimpleFrame* Create(CSimpleFrame* parent);
|
|
|
|
|
static void RenderWorld(void* param);
|
|
|
|
|
static void OnWorldUpdate();
|
|
|
|
|
static void OnWorldRender();
|
2025-07-27 19:09:15 +04:00
|
|
|
static CGCamera* GetActiveCamera();
|
|
|
|
|
|
|
|
|
|
CGCamera* m_camera = nullptr;
|
2025-03-30 00:15:17 +04:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static CGWorldFrame* s_currentWorldFrame;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // GAME_UI_CGWORLDFRAME_HPP
|