mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 21:49:19 +02:00
map work
This commit is contained in:
@@ -4,9 +4,21 @@
|
||||
#include "renderer.h"
|
||||
#include "Texture.h"
|
||||
#include "uilayer.h"
|
||||
#include "widgets/map_objects.h"
|
||||
|
||||
namespace ui {
|
||||
|
||||
class disambiguation_popup {
|
||||
std::string m_id;
|
||||
std::vector<map::semaphore> m_list;
|
||||
|
||||
public:
|
||||
disambiguation_popup(std::string &&id, std::vector<map::semaphore> &&list)
|
||||
: m_id(id), m_list(list) {}
|
||||
|
||||
void render();
|
||||
};
|
||||
|
||||
class map_panel : public ui_panel {
|
||||
std::unique_ptr<gl::program> m_shader;
|
||||
std::unique_ptr<gl::framebuffer> m_msaa_fb;
|
||||
@@ -31,6 +43,8 @@ class map_panel : public ui_panel {
|
||||
|
||||
bool init_done = false;
|
||||
|
||||
std::optional<map::semaphore> active;
|
||||
|
||||
public:
|
||||
map_panel();
|
||||
void render_contents() override;
|
||||
|
||||
Reference in New Issue
Block a user