X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frenderer.h;h=0fa19346042ea1f5980c478e5dabd305bf66ab6a;hb=857e0a3f684fba4810260697a78a769dff514f1f;hp=39ac462fbb96d4901c8f9ec884ba141dce04ecb6;hpb=94cadd1618f93239b1cb0acbd4f958257c035c98;p=libs%2Fgl.git diff --git a/source/render/renderer.h b/source/render/renderer.h index 39ac462f..0fa19346 100644 --- a/source/render/renderer.h +++ b/source/render/renderer.h @@ -152,7 +152,7 @@ public: void push_state(); /** Restores a previously saved state. Must be matched with an earlier - push_state call. */ + push_state() call. */ void pop_state(); private: @@ -228,9 +228,14 @@ public: /** Draws a batch of primitives. A shader must be active. */ void draw(const Batch &); - /** Draws multiple instances of a batch of primitives. A shader must be active. */ + /** Draws multiple instances of a batch of primitives. A shader must be + active. */ void draw_instanced(const Batch &, unsigned); +private: + void apply_batch(const Batch &); + +public: /** Dispatches a compute operation. */ void dispatch(unsigned, unsigned = 1, unsigned = 1);