drag canvas, render layers and tmp, add/select layer, opacity for layer, color bucket filler

This commit is contained in:
2017-04-07 21:21:43 +01:00
parent 2b4915154e
commit bb7e94d06b
9 changed files with 99 additions and 49 deletions

View File

@@ -11,18 +11,18 @@ class Canvas
{
Plane m_plane;
BrushMesh m_mesh;
int m_current_layer_idx = 0;
bool m_dirty = false;
public:
int m_width;
int m_height;
bool m_use_instanced = false;
int m_current_layer_idx = 0;
Stroke* m_current_stroke = nullptr;
bool m_show_tmp = false;
std::vector<Layer> m_layers;
std::vector<Stroke> m_strokes;
RTT m_tmp;
RTT m_fb;
//RTT m_fb;
Texture2D m_tex;
Texture2D m_tex2;
Sampler m_sampler;
@@ -36,7 +36,7 @@ public:
void stroke_draw();
void stroke_end();
void stroke_commit();
void clear();
void clear(const glm::vec4& color = { 0, 0, 0, 1 });
};
NS_END