aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-11-23 20:49:40 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-18 19:34:21 +0100
commit72eee6ca4f1a5271c0185b0d98df4b1ca5204f0c (patch)
tree55df1b3c1389478b3dbec945ef5f99a7576e4ddd
parentf12ecf7f9de6eb140e662f16483893689aa776b0 (diff)
downloadusdx-72eee6ca4f1a5271c0185b0d98df4b1ca5204f0c.tar.gz
usdx-72eee6ca4f1a5271c0185b0d98df4b1ca5204f0c.tar.xz
usdx-72eee6ca4f1a5271c0185b0d98df4b1ca5204f0c.zip
menu/static: add getter for vertices_count
-rw-r--r--src/menu/static.cpp5
-rw-r--r--src/menu/static.hpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/menu/static.cpp b/src/menu/static.cpp
index 452ce055..3ac74267 100644
--- a/src/menu/static.cpp
+++ b/src/menu/static.cpp
@@ -131,6 +131,11 @@ namespace usdx
}
}
+ size_t Static::get_vertices_count(void) const
+ {
+ return vertices_count;
+ }
+
void Static::set_stroke(const RgbColor& stroke)
{
this->stroke = stroke;
diff --git a/src/menu/static.hpp b/src/menu/static.hpp
index 596e3b57..6f5ce59a 100644
--- a/src/menu/static.hpp
+++ b/src/menu/static.hpp
@@ -50,6 +50,7 @@ namespace usdx
virtual void draw_stroke(void) = 0;
virtual void draw_fill(void) = 0;
void register_vertices(const float *vertices, const size_t count);
+ size_t get_vertices_count(void) const;
public:
Static(const RgbColor& stroke);