123f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com// 223f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com// Copyright (c) 2013 The ANGLE Project Authors. All rights reserved. 323f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com// Use of this source code is governed by a BSD-style license that can be 423f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com// found in the LICENSE file. 523f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com// 623f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 723f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com// Query9.h: Defines the rx::Query9 class which implements rx::QueryImpl. 823f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 923f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com#ifndef LIBGLESV2_RENDERER_QUERY9_H_ 1023f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com#define LIBGLESV2_RENDERER_QUERY9_H_ 1123f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 1223f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com#include "libGLESv2/renderer/QueryImpl.h" 13486d9e9b6b4ed31f66d2624b8e822020fe40a1f7shannon.woods@transgaming.com 1423f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.comnamespace rx 1523f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com{ 16486d9e9b6b4ed31f66d2624b8e822020fe40a1f7shannon.woods@transgaming.comclass Renderer9; 1723f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 1823f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.comclass Query9 : public QueryImpl 1923f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com{ 2023f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com public: 2123f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com Query9(rx::Renderer9 *renderer, GLenum type); 2223f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com virtual ~Query9(); 2323f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 2423f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com void begin(); 2523f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com void end(); 2623f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com GLuint getResult(); 2723f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com GLboolean isResultAvailable(); 2823f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 2923f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com private: 3023f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com DISALLOW_COPY_AND_ASSIGN(Query9); 3123f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 3223f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com GLboolean testQuery(); 3323f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 3423f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com rx::Renderer9 *mRenderer; 3523f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com IDirect3DQuery9 *mQuery; 3623f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com}; 3723f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 3823f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com} 3923f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com 4023f3332a9704969704e5d7990e8b5fc2801ddabfshannon.woods@transgaming.com#endif // LIBGLESV2_RENDERER_QUERY9_H_ 41