X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;fp=source%2Fbatch.h;h=6fb013af68e8de626757392a2e4644d9c734d2d8;hb=a2a00bdc96a7d2aa4c95c5a125c0c438147d7495;hp=d42a8629d1a47df3be7ba8a5ea0eeefa68fad52b;hpb=61c8b6e824977ce025c979005b141ff4bb02b0e9;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index d42a8629..6fb013af 100644 --- a/source/batch.h +++ b/source/batch.h @@ -33,7 +33,7 @@ public: private: PrimitiveType prim_type; - DataType data_type; + DataType index_type; std::vector data; unsigned min_index; unsigned max_index; @@ -46,8 +46,11 @@ public: ~Batch(); PrimitiveType get_type() const { return prim_type; } - void set_data_type(DataType); - DataType get_data_type() const { return data_type; } + void set_index_type(DataType); + DataType get_index_type() const { return index_type; } + + DEPRECATED void set_data_type(DataType t) { set_index_type(t); } + DEPRECATED DataType get_data_type() const { return index_type; } Batch &append(unsigned); Batch &append(const std::vector &);