summaryrefslogtreecommitdiff
path: root/scene/resources/style_box.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-18 00:03:28 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-18 00:03:28 -0300
commit33bf180067eb0beb1a514adcdfb6a59cc5f4ac55 (patch)
tree3296df4806a238a93521beec240de6829f6a6e73 /scene/resources/style_box.h
parent5c6cac4e53058c987ca3c065ae49670e9cd9edbc (diff)
Added normalmap support to stylebox and animated sprite.
Diffstat (limited to 'scene/resources/style_box.h')
-rw-r--r--scene/resources/style_box.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/style_box.h b/scene/resources/style_box.h
index 97edc68bff..7547c2ea81 100644
--- a/scene/resources/style_box.h
+++ b/scene/resources/style_box.h
@@ -81,6 +81,7 @@ class StyleBoxTexture : public StyleBox {
float margin[4];
Rect2 region_rect;
Ref<Texture> texture;
+ Ref<Texture> normal_map;
bool draw_center;
Color modulate;
@@ -101,6 +102,9 @@ public:
void set_texture(RES p_texture);
RES get_texture() const;
+ void set_normal_map(RES p_normal_map);
+ RES get_normal_map() const;
+
void set_draw_center(bool p_draw);
bool get_draw_center() const;
virtual Size2 get_center_size() const;