add support for high res brush textures, implement mipmaps on brush

This commit is contained in:
2017-09-30 16:35:12 +01:00
parent 763e446cc5
commit 964795b44d
17 changed files with 61 additions and 20 deletions

View File

@@ -8,6 +8,8 @@ class NodeButtonBrush : public NodeButtonCustom
public:
int m_brushID;
bool m_selected = false;
std::string high_path;
uint16_t high_id;
NodeImage* img;
virtual Node* clone_instantiate() const override;
virtual void init() override;
@@ -27,5 +29,6 @@ public:
void handle_click(Node* target);
std::vector<std::string> FindAllBrushes(const std::string& folder);
uint16_t get_texture_id(int index) const;
void set_texture_id(int texid);
int get_brush_id(int index) const;
void select_brush(int brush_id);
};