Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-30 13:36:45 +0000
committerStijn Buys <ingar@osirion.org>2011-07-30 13:36:45 +0000
commitb492615fb68e5c97fce87bcc946e92f115cfc3a2 (patch)
treeeb90e46894bd351332f64874babc5cef3959a2bd /src/ui/paint.h
parent3a28abfa64d02b8d530689c425f6ed476a14fe9c (diff)
Added support for tiled ui materials, changed default widget backgrounds to use ui materials.
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r--src/ui/paint.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h
index 2c48a35..d21aaa0 100644
--- a/src/ui/paint.h
+++ b/src/ui/paint.h
@@ -37,8 +37,17 @@ public:
/// draw a rectangle
static void draw_rectangle(const math::Vector2f &global_location, const math::Vector2f &size);
- /// draw a rectangular bitmap
+ /**
+ * @brief draw a rectangular bitmap
+ * @param texture the name of material to be used
+ **/
static void draw_bitmap(const math::Vector2f &global_location, const math::Vector2f &size, const std::string &texture);
+
+ /// draw a rectangular bitmap and overrride material color
+ static void draw_bitmap(const math::Vector2f &global_location, const math::Vector2f &size, const math::Color & color, const std::string &texture);
+
+ /// draw a tiled bitmap
+ static void draw_material(const math::Vector2f &global_location, const math::Vector2f &size, const std::string &texture);
/// draw unaligned text
static void draw_text(const math::Vector2f &global_location, const Font *font, const std::string &text);