pen state and buttons color when active

This commit is contained in:
2017-05-04 21:46:35 +01:00
parent 45275c2947
commit 773ff61f92
5 changed files with 36 additions and 16 deletions

View File

@@ -40,7 +40,6 @@ class Canvas
bool m_dirty = false;
public:
static Canvas* I;
bool m_erase = false;
bool m_alpha_lock = false;
glm::mat4 m_mv;
glm::mat4 m_proj;
@@ -67,6 +66,8 @@ public:
Sampler m_sampler_mask;
glm::vec2 m_cam_rot;
float m_cam_fov = 85;
enum class kPenState { Draw, Erase, Line, Camera };
kPenState m_state{ kPenState::Draw };
GLuint cube_id;
RTT m_latlong;