]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/query_backend.h
Clean up some more unused things
[libs/gl.git] / source / backends / opengl / query_backend.h
1 #ifndef MSP_GL_QUERY_BACKEND_H_
2 #define MSP_GL_QUERY_BACKEND_H_
3
4 #include <vector>
5
6 namespace Msp {
7 namespace GL {
8
9 class OpenGLQueryPool
10 {
11         friend class OpenGLCommands;
12
13 protected:
14         unsigned gl_type;
15         std::vector<unsigned> queries;
16
17         OpenGLQueryPool(unsigned);
18         ~OpenGLQueryPool();
19
20         void resize();
21
22         unsigned get_result(unsigned) const;
23 };
24
25 using QueryPoolBackend = OpenGLQueryPool;
26
27 unsigned get_gl_query_type(unsigned);
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif