X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbatch.cpp;h=df4e2fb828e0102989abd2ddacb069f59a33d3a9;hb=cea3c333797cadd9629aefaa5b82243173a02d16;hp=d650fda8b6c3576cf3605d0f632f4d0faf17200f;hpb=5318aa4fd553be4ce0bc428e73592b787842cdea;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index d650fda8..df4e2fb8 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -19,7 +19,7 @@ Batch::Batch(PrimitiveType t): max_index(0) { } -void Batch::append(uint i) +Batch &Batch::append(uint i) { if(indices.empty()) min_index=max_index=i; @@ -29,6 +29,8 @@ void Batch::append(uint i) max_index=max(max_index, i); } indices.push_back(i); + + return *this; } void Batch::append(const vector &ind)