//------------------------------------------------------------------
void GLES2HardwareOcclusionQuery::beginOcclusionQuery() 
{ 
#ifdef GL_EXT_occlusion_query_boolean
    glBeginQueryEXT(GL_ANY_SAMPLES_PASSED_EXT, mQueryID);
    GL_CHECK_ERROR;
#endif
}
//------------------------------------------------------------------
void GLES2HardwareOcclusionQuery::beginOcclusionQuery() 
{
    if(getGLSupport()->checkExtension("GL_EXT_occlusion_query_boolean") || gleswIsSupported(3, 0))
    {
        OGRE_CHECK_GL_ERROR(glBeginQueryEXT(GL_ANY_SAMPLES_PASSED_EXT, mQueryID));
    }
}
//------------------------------------------------------------------
void GLES2HardwareOcclusionQuery::beginOcclusionQuery() 
{ 
#ifdef GL_EXT_occlusion_query_boolean
    OGRE_IF_IOS_VERSION_IS_GREATER_THAN(5.0)
        OGRE_CHECK_GL_ERROR(glBeginQueryEXT(GL_ANY_SAMPLES_PASSED_EXT, mQueryID));
#endif
}
예제 #4
0
void AbstractQuery::begin() {
#ifdef MAGNUM_BUILD_DEPRECATED
    CORRADE_INTERNAL_ASSERT(_target);
#endif

#ifndef MAGNUM_TARGET_GLES2
    glBeginQuery(_target, _id);
#else
    glBeginQueryEXT(_target, _id);
#endif
}