lazy stroke preview rendering

This commit is contained in:
2019-04-23 12:17:46 +02:00
parent 042ad503d2
commit b4a9061cc4
7 changed files with 71 additions and 34 deletions

View File

@@ -37,20 +37,6 @@ class NodePanelBrush : public Node
NodeButtonCustom* m_btn_down;
NodeButtonCustom* m_btn_remove;
bool m_interacted = false;
struct header_t {
char magic[5]{ 'P', 'P', 'B', 'R', 0 };
uint16_t version = 0;
uint16_t build = g_version_build;
uint16_t brushes = 0;
uint16_t deleted = 0;
};
struct item_t {
int m_name_len = 0;
int m_high_len = 0;
int m_thumb_len = 0;
bool m_deleted = false;
bool m_user_brush = false;
};
public:
NodeScroll* m_container;
std::string m_dir_name;
@@ -94,12 +80,6 @@ class NodePanelBrushPreset : public Node
NodeButtonCustom* m_btn_down;
NodeButtonCustom* m_btn_delete;
NodeButtonCustom* m_btn_save;
struct header_t {
char magic[5]{ 'P', 'P', 'P', 'R', 0 };
uint16_t version = 0;
uint16_t count = 0;
};
public:
Node* m_container;
std::function<void(Node* target, std::shared_ptr<Brush>& brush)> on_brush_changed;