]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderer.cpp
Initial support for instanced rendering
[libs/gl.git] / source / renderer.cpp
index 53a3f45237463e5fffed3e084805326453e5fd3a..cc00ac8e3affda145ec8e2f8afcc5c1d7bb4af40 100644 (file)
@@ -272,6 +272,13 @@ void Renderer::draw(const Batch &batch)
        batch.draw();
 }
 
+void Renderer::draw_instanced(const Batch &batch, unsigned count)
+{
+       apply_state();
+
+       batch.draw_instanced(count);
+}
+
 void Renderer::apply_state()
 {
        /* We (mostly) let the objects themselves figure out if the binding has