1 #ifndef MSP_GL_QUERY_H_
2 #define MSP_GL_QUERY_H_
5 #include <msp/core/noncopyable.h>
17 class QueryPool: public Msp::NonCopyable
19 friend class Commands;
26 const QueryPool &pool;
30 Activate(Renderer &, const QueryPool &, unsigned);
37 std::vector<unsigned> queries;
40 QueryPool(QueryType type, unsigned);
43 void resize(unsigned);
44 unsigned get_size() const { return queries.size(); }
46 unsigned get_result(unsigned) const;
49 unsigned get_gl_query_type(QueryType);