X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fbatch.h;h=1fc225210f739a457278b7e5f6ba3ba87e62b4da;hp=dd07adb58b632941d0264350b783b386efd97fdc;hb=99ca354f18119f82f1adeca100cd665a8f640317;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309 diff --git a/source/core/batch.h b/source/core/batch.h index dd07adb5..1fc22521 100644 --- a/source/core/batch.h +++ b/source/core/batch.h @@ -69,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;