]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/batch.h
Use friend declaration to access hidden data in Batch
[libs/gl.git] / source / core / batch.h
index 41dac24a1a57b8bef3abb4a657ee9e88572c9001..e03435550aa48857632aff62d4624eb69f871866 100644 (file)
@@ -22,6 +22,8 @@ class.
 */
 class Batch: public Bufferable
 {
+       friend class Commands;
+
 public:
        class Loader: public DataFile::ObjectLoader<Batch>
        {
@@ -44,10 +46,8 @@ public:
        ~Batch();
 
        PrimitiveType get_type() const { return prim_type; }
-       unsigned get_gl_primitive_type() const { return gl_prim_type; }
        void set_index_type(DataType);
        DataType get_index_type() const { return index_type; }
-       unsigned get_gl_index_type() const { return gl_index_type; }
 
        Batch &append(unsigned);
        Batch &append(const std::vector<unsigned> &);