X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbatch.h;h=2b907d4846bc0032e51f1160678b48d779a6350f;hp=bca541392832c3285b78ce97c8ea44cd75342e90;hb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;hpb=8f2430208cfa7bb9dc5bd655dde88acc21db54d2 diff --git a/source/batch.h b/source/batch.h index bca54139..2b907d48 100644 --- a/source/batch.h +++ b/source/batch.h @@ -11,7 +11,6 @@ Distributed under the LGPL #include #include #include "primitivetype.h" -#include "types.h" namespace Msp { namespace GL { @@ -24,22 +23,23 @@ public: public: Loader(Batch &); private: - void indices(const std::vector &); + void indices(const std::vector &); }; private: PrimitiveType type; - std::vector indices; - uint min_index; - uint max_index; + std::vector indices; + unsigned min_index; + unsigned max_index; public: Batch(PrimitiveType t); - Batch &append(uint); - void append(const std::vector &); + + Batch &append(unsigned); + void append(const std::vector &); PrimitiveType get_type() const { return type; } unsigned size() const { return indices.size(); } - const std::vector &get_indices() const { return indices; } + const std::vector &get_indices() const { return indices; } void draw() const; void draw_with_buffer(unsigned) const; };