X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fcommands_backend.h;fp=source%2Fbackends%2Fopengl%2Fcommands_backend.h;h=f54b27a11c1947cd3fd2e2e357a43b488a677b3d;hb=160e9eea29bd10034733d59507fa1bcca36be401;hp=0000000000000000000000000000000000000000;hpb=93448d16e72e38afbaecbccf6fdedd46d6a82a73;p=libs%2Fgl.git diff --git a/source/backends/opengl/commands_backend.h b/source/backends/opengl/commands_backend.h new file mode 100644 index 00000000..f54b27a1 --- /dev/null +++ b/source/backends/opengl/commands_backend.h @@ -0,0 +1,36 @@ +#ifndef MSP_GL_COMMANDS_BACKEND_H_ +#define MSP_GL_COMMANDS_BACKEND_H_ + +namespace Msp { +namespace GL { + +class Batch; +union ClearValue; +class Framebuffer; +class PipelineState; +class QueryPool; + +class OpenGLCommands +{ +protected: + const PipelineState *pipeline_state; + + OpenGLCommands(); + + void use_pipeline(const PipelineState *); + void clear(const ClearValue *); + void draw(const Batch &); + void draw_instanced(const Batch &, unsigned); + void resolve_multisample(Framebuffer &); + + void begin_query(const QueryPool &, unsigned); + void end_query(const QueryPool &, unsigned); +}; + +using CommandsBackend = OpenGLCommands; + +} // namespace GL +} // namespace Msp + +#endif +