X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbatch.h;h=1fc225210f739a457278b7e5f6ba3ba87e62b4da;hb=3efe3bab1c8290bd49a957ebec0ad97e58a35fcf;hp=45101d4356672950dc9439a5401ed1a3311bc307;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c;p=libs%2Fgl.git diff --git a/source/core/batch.h b/source/core/batch.h index 45101d43..1fc22521 100644 --- a/source/core/batch.h +++ b/source/core/batch.h @@ -40,7 +40,6 @@ private: public: Batch(PrimitiveType); - ~Batch(); PrimitiveType get_type() const { return prim_type; } @@ -70,8 +69,8 @@ private: virtual std::size_t get_data_size() const { return data.size(); } virtual const void *get_data_pointer() const { return &data[0]; } virtual std::size_t get_alignment() const { return get_index_size(); } - std::size_t get_index_size() const; public: + std::size_t get_index_size() const { return get_type_size(index_type); } std::size_t size() const { return data.size()/get_index_size(); } unsigned get_index(std::size_t) const;