]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.cpp
Get rid of the typedefs for fundamental types
[libs/gl.git] / source / batch.cpp
index 33481a1cdfc8c613692f36de60e667e8413ed698..9ed20a1f524dc5d334c2825a8867f77cc8ea31f5 100644 (file)
@@ -20,7 +20,7 @@ Batch::Batch(PrimitiveType t):
        max_index(0)
 { }
 
-Batch &Batch::append(uint i)
+Batch &Batch::append(unsigned i)
 {
        if(indices.empty())
                min_index=max_index=i;
@@ -34,10 +34,10 @@ Batch &Batch::append(uint i)
        return *this;
 }
 
-void Batch::append(const vector<uint> &ind)
+void Batch::append(const vector<unsigned> &ind)
 {
        indices.reserve(indices.size()+ind.size());
-       for(vector<uint>::const_iterator i=ind.begin(); i!=ind.end(); ++i)
+       for(vector<unsigned>::const_iterator i=ind.begin(); i!=ind.end(); ++i)
                append(*i);
 }
 
@@ -58,7 +58,7 @@ Batch::Loader::Loader(Batch &b):
        add("indices", &Loader::indices);
 }
 
-void Batch::Loader::indices(const vector<uint> &ind)
+void Batch::Loader::indices(const vector<unsigned> &ind)
 {
        obj.append(ind);
 }