]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/batch.h
Use size_t to store sizes of buffers and such
[libs/gl.git] / source / core / batch.h
index 9577a542cf2e1c069bca6187a6129d1c0c5a6559..1e0b4c4703e74b09602575b6f3fa206bfc746bdf 100644 (file)
@@ -52,14 +52,14 @@ public:
        Batch &append(const Batch &);
 private:
        void append_index(unsigned);
-       virtual unsigned get_data_size() const { return data.size(); }
+       virtual std::size_t get_data_size() const { return data.size(); }
        virtual const void *get_data_pointer() const { return &data[0]; }
-       virtual unsigned get_alignment() const { return get_index_size(); }
-       unsigned get_index_size() const;
+       virtual std::size_t get_alignment() const { return get_index_size(); }
+       std::size_t get_index_size() const;
 public:
-       unsigned size() const { return data.size()/get_index_size(); }
+       std::size_t size() const { return data.size()/get_index_size(); }
 
-       unsigned get_index(unsigned) const;
+       unsigned get_index(std::size_t) const;
 };
 
 } // namespace GL