X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fcommands_backend.h;h=e6a3161ad105f464e2d825baab1360d1ad0a7eb6;hb=cebf1330ef6773b7b4496dc279ec02a7ca4351bb;hp=f54b27a11c1947cd3fd2e2e357a43b488a677b3d;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/backends/opengl/commands_backend.h b/source/backends/opengl/commands_backend.h index f54b27a1..e6a3161a 100644 --- a/source/backends/opengl/commands_backend.h +++ b/source/backends/opengl/commands_backend.h @@ -13,14 +13,18 @@ class QueryPool; class OpenGLCommands { protected: - const PipelineState *pipeline_state; + const PipelineState *pipeline_state = 0; - OpenGLCommands(); + OpenGLCommands() = default; + + void begin_frame(unsigned) { } + void submit_frame(); void use_pipeline(const PipelineState *); void clear(const ClearValue *); void draw(const Batch &); void draw_instanced(const Batch &, unsigned); + void dispatch(unsigned, unsigned, unsigned); void resolve_multisample(Framebuffer &); void begin_query(const QueryPool &, unsigned);