rename texture to pattern and implement initial pattern settings
This commit is contained in:
23
src/brush.h
23
src/brush.h
@@ -18,9 +18,9 @@ public:
|
||||
std::string m_dual_path;
|
||||
std::string m_dual_thumb_path;
|
||||
|
||||
std::shared_ptr<Texture2D> m_stencil_texture;
|
||||
std::string m_stencil_path;
|
||||
std::string m_stencil_thumb_path;
|
||||
std::shared_ptr<Texture2D> m_pattern_texture;
|
||||
std::string m_pattern_path;
|
||||
std::string m_texture_thumb_path;
|
||||
|
||||
glm::vec4 m_tip_color{0, 0, 0, 1};
|
||||
float m_tip_size = .25f;
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
float m_tip_angle = 0;
|
||||
float m_tip_angle_delay = 0;
|
||||
float m_tip_mix = 0;
|
||||
float m_tip_stencil = 0;
|
||||
float m_pattern_opacity = 1.f;
|
||||
float m_tip_wet = 0;
|
||||
float m_tip_noise = 0;
|
||||
float m_tip_hue = 0;
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
bool m_tip_invert = false;
|
||||
bool m_tip_flipx = false;
|
||||
bool m_tip_flipy = false;
|
||||
bool m_tex_enabled = false;
|
||||
bool m_pattern_enabled = false;
|
||||
bool m_dual_enabled = false;
|
||||
int m_dual_blend_mode = 0;
|
||||
bool m_dual_randflip = false;
|
||||
@@ -69,9 +69,18 @@ public:
|
||||
float m_dual_opacity = 1.f;
|
||||
float m_dual_rotate = .25f;
|
||||
|
||||
bool load_texture(const std::string& path, const std::string& thumb);
|
||||
int m_pattern_blend_mode = 0;
|
||||
bool m_pattern_eachsample = false;
|
||||
bool m_pattern_invert = false;
|
||||
bool m_pattern_flipx = false;
|
||||
bool m_pattern_flipy = false;
|
||||
float m_pattern_scale = .25f;
|
||||
float m_pattern_brightness = 0.5f;
|
||||
float m_pattern_contrast = 0.5f;
|
||||
|
||||
bool load_tip(const std::string& path, const std::string& thumb);
|
||||
bool load_dual(const std::string& path, const std::string& thumb);
|
||||
bool load_stencil(const std::string& path, const std::string& thumb);
|
||||
bool load_pattern(const std::string& path, const std::string& thumb);
|
||||
bool load();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user