shannon.woods@transgaming.com | 8b7606a | 2013-02-28 23:03:47 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // Query11.h: Defines the rx::Query11 class which implements rx::QueryImpl. |
| 8 | |
| 9 | #ifndef LIBGLESV2_RENDERER_QUERY11_H_ |
| 10 | #define LIBGLESV2_RENDERER_QUERY11_H_ |
| 11 | |
| 12 | #include "libGLESv2/renderer/QueryImpl.h" |
shannon.woods@transgaming.com | 8b7606a | 2013-02-28 23:03:47 +0000 | [diff] [blame] | 13 | |
| 14 | namespace rx |
| 15 | { |
shannon.woods@transgaming.com | 486d9e9 | 2013-02-28 23:15:41 +0000 | [diff] [blame] | 16 | class Renderer11; |
shannon.woods@transgaming.com | 8b7606a | 2013-02-28 23:03:47 +0000 | [diff] [blame] | 17 | |
| 18 | class Query11 : public QueryImpl |
| 19 | { |
| 20 | public: |
| 21 | Query11(rx::Renderer11 *renderer, GLenum type); |
| 22 | virtual ~Query11(); |
| 23 | |
Jamie Madill | 45c785d | 2014-05-13 14:09:34 -0400 | [diff] [blame] | 24 | virtual void begin(); |
| 25 | virtual void end(); |
| 26 | virtual GLuint getResult(); |
| 27 | virtual GLboolean isResultAvailable(); |
| 28 | virtual bool isStarted() const; |
shannon.woods@transgaming.com | 8b7606a | 2013-02-28 23:03:47 +0000 | [diff] [blame] | 29 | |
| 30 | private: |
| 31 | DISALLOW_COPY_AND_ASSIGN(Query11); |
| 32 | |
| 33 | GLboolean testQuery(); |
| 34 | |
| 35 | rx::Renderer11 *mRenderer; |
| 36 | ID3D11Query *mQuery; |
| 37 | }; |
| 38 | |
| 39 | } |
| 40 | |
| 41 | #endif // LIBGLESV2_RENDERER_QUERY11_H_ |