| 105 | |
| 106 | |
| 107 | OcclusionQuery* getOcclusionQuery(bool exactNumberNeeded) { |
| 108 | |
| 109 | if (!exactNumberNeeded && OPENCSG_HAS_EXT(ARB_occlusion_query2)) { |
| 110 | OcclusionQueryARB* occlusionQuery = new OcclusionQueryARB; |
| 111 | occlusionQuery->mQueryType = GL_ANY_SAMPLES_PASSED; |
| 112 | return occlusionQuery; |
| 113 | } |
| 114 | |
| 115 | if (OPENCSG_HAS_EXT(ARB_occlusion_query)) { |
| 116 | OcclusionQueryARB* occlusionQuery = new OcclusionQueryARB; |
| 117 | occlusionQuery->mQueryType = GL_SAMPLES_PASSED_ARB; |
| 118 | return occlusionQuery; |
| 119 | } |
| 120 | |
| 121 | if (OPENCSG_HAS_EXT(NV_occlusion_query)) { |
| 122 | return new OcclusionQueryNV; |
| 123 | } |
| 124 | |
| 125 | return 0; |
| 126 | } |
| 127 | |
| 128 | } // namespace OpenGL |
| 129 |
no outgoing calls
no test coverage detected