michael@0: // michael@0: // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: // Query.h: Defines the gl::Query class michael@0: michael@0: #ifndef LIBGLESV2_QUERY_H_ michael@0: #define LIBGLESV2_QUERY_H_ michael@0: michael@0: #define GL_APICALL michael@0: #include michael@0: michael@0: #include "common/angleutils.h" michael@0: #include "common/RefCountObject.h" michael@0: michael@0: namespace rx michael@0: { michael@0: class Renderer; michael@0: class QueryImpl; michael@0: } michael@0: michael@0: namespace gl michael@0: { michael@0: michael@0: class Query : public RefCountObject michael@0: { michael@0: public: michael@0: Query(rx::Renderer *renderer, GLenum type, GLuint id); michael@0: virtual ~Query(); michael@0: michael@0: void begin(); michael@0: void end(); michael@0: michael@0: GLuint getResult(); michael@0: GLboolean isResultAvailable(); michael@0: michael@0: GLenum getType() const; michael@0: michael@0: private: michael@0: DISALLOW_COPY_AND_ASSIGN(Query); michael@0: michael@0: rx::QueryImpl *mQuery; michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // LIBGLESV2_QUERY_H_