unload brush texture from main memory, preload brush on preview to free render thread

This commit is contained in:
2019-03-01 23:28:30 +01:00
parent 0be47c7fb6
commit 1edbc27ae6
5 changed files with 84 additions and 13 deletions

View File

@@ -5,6 +5,9 @@
class Brush
{
std::shared_ptr<Image> m_tip_img;
std::shared_ptr<Image> m_pattern_img;
std::shared_ptr<Image> m_dual_img;
public:
//Brush() = default;
//Brush(const Brush& brush) = default;
@@ -94,6 +97,9 @@ public:
bool load_dual(const std::string& path, const std::string& thumb);
bool load_pattern(const std::string& path, const std::string& thumb);
bool load();
bool preload();
void unload();
bool valid();
};
struct StrokeSample