Created DungeonEditor and Canvas

This commit is contained in:
scawful
2022-07-09 22:46:20 -04:00
parent e5ce274508
commit 31f1850800
10 changed files with 259 additions and 85 deletions

30
src/gui/canvas.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef YAZE_GUI_CANVAS_H
#define YAZE_GUI_CANVAS_H
#include <imgui/imgui.h>
#include <cmath>
#include <string>
namespace yaze {
namespace gui {
class Canvas {
public:
Canvas() = default;
void Update();
private:
bool enable_grid_ = true;
bool enable_context_menu_ = true;
bool dragging_select_ = false;
std::string title_;
ImVector<ImVec2> points_;
ImVec2 scrolling_;
};
} // namespace gui
} // namespace yaze
#endif