X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fquery_backend.h;h=ccda73b0b9e57cebf7ab31540aa898b501d2badb;hb=8a8cce8ef4ee28b3572a72958b8b407759f9f826;hp=9365b24bc5ce4f5071d51061fb0425e7b84096b8;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/backends/opengl/query_backend.h b/source/backends/opengl/query_backend.h index 9365b24b..ccda73b0 100644 --- a/source/backends/opengl/query_backend.h +++ b/source/backends/opengl/query_backend.h @@ -1,12 +1,13 @@ #ifndef MSP_GL_QUERY_BACKEND_H_ #define MSP_GL_QUERY_BACKEND_H_ +#include #include namespace Msp { namespace GL { -class OpenGLQueryPool +class OpenGLQueryPool: public NonCopyable { friend class OpenGLCommands; @@ -15,10 +16,10 @@ protected: std::vector queries; OpenGLQueryPool(unsigned); + OpenGLQueryPool(OpenGLQueryPool &&); ~OpenGLQueryPool(); - void resize(unsigned); - unsigned get_size() const { return queries.size(); } + void resize(); unsigned get_result(unsigned) const; };