]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Refactor batch setup in Renderer to a helper function
[libs/gl.git] / source / render / renderer.h
index 39ac462fbb96d4901c8f9ec884ba141dce04ecb6..da2cf8bac866d8284a2fe4c6395a935f8eba5258 100644 (file)
@@ -231,6 +231,10 @@ public:
        /** 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);