]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.h
Move Batch members around
[libs/gl.git] / source / batch.h
index 696891ba3047ce1a557c9f36ddeee64b82c17882..dcc2168b312f7c6323442b7e2b52296639156ff7 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007, 2009-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_BATCH_H_
 #define MSP_GL_BATCH_H_
 
@@ -60,30 +53,22 @@ public:
        void set_data_type(DataType);
        DataType get_data_type() const { return data_type; }
        void use_index_buffer(Buffer *, Batch * = 0);
+private:
+       void unlink_from_ibuf();
+       void update_ibuf_offsets();
+
+public:
        Batch &append(unsigned);
        void append(const std::vector<unsigned> &);
        void append(const Batch &);
-       unsigned size() const { return data.size()/get_index_size(); }
-       unsigned get_index(unsigned) const;
-       void draw() const;
-
 private:
        unsigned get_index_size() const;
+public:
+       unsigned size() const { return data.size()/get_index_size(); }
 
-       template<typename T>
-       void append_index(T);
-
-       template<typename T, typename U>
-       void expand_data();
-
-       template<typename T, typename U>
-       void shrink_data();
-
-       template<typename T, typename U>
-       U convert(T) const;
+       unsigned get_index(unsigned) const;
 
-       void unlink_from_ibuf();
-       void update_ibuf_offsets();
+       void draw() const;
 };
 
 } // namespace GL