X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=e522491144f1a7f6a06a0329e5c8e1721b241e69;hb=76e338af116120d93d082ad247591ec9adad9233;hp=f2a57bcf2fa2ad4f1ea1f4f6c90a17ab85d8cf3f;hpb=dc1d1159a61f378bda11e5989ad694a86b9a3c77;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index f2a57bcf..e5224911 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -46,6 +46,11 @@ void Batch::draw() const draw_range_elements(type, min_index, max_index, indices.size(), &indices[0]); } +void Batch::draw_with_buffer(unsigned offset) const +{ + draw_range_elements(type, min_index, max_index, indices.size(), (unsigned *)0+offset); +} + Batch::Loader::Loader(Batch &b): batch(b)