OSDN Git Service

Implement a Radiance prototype.
[android-x86/external-swiftshader.git] / src / Radiance / libRAD / Fence.h
1 // SwiftShader Software Renderer\r
2 //\r
3 // Copyright(c) 2005-2012 TransGaming Inc.\r
4 //\r
5 // All rights reserved. No part of this software may be copied, distributed, transmitted,\r
6 // transcribed, stored in a retrieval system, translated into any human or computer\r
7 // language by any means, or disclosed to third parties without the explicit written\r
8 // agreement of TransGaming Inc. Without such an agreement, no rights or licenses, express\r
9 // or implied, including but not limited to any patent rights, are granted to you.\r
10 //\r
11 \r
12 // Fence.h: Defines the Fence class, which supports the GL_NV_fence extension.\r
13 \r
14 #ifndef LIBGLESV2_FENCE_H_\r
15 #define LIBGLESV2_FENCE_H_\r
16 \r
17 #define GL_APICALL\r
18 #include <GLES2/gl2.h>\r
19 \r
20 namespace es2\r
21 {\r
22 \r
23 class Fence\r
24 {\r
25   public:\r
26     Fence();\r
27     virtual ~Fence();\r
28 \r
29     GLboolean isFence();\r
30     void setFence(GLenum condition);\r
31     GLboolean testFence();\r
32     void finishFence();\r
33     void getFenceiv(GLenum pname, GLint *params);\r
34 \r
35   private:\r
36     bool mQuery;\r
37     GLenum mCondition;\r
38     GLboolean mStatus;\r
39 };\r
40 \r
41 }\r
42 \r
43 #endif   // LIBGLESV2_FENCE_H_\r