Exemplo n.º 1
0
bool IsExtensionSupported (const std::string &name)
{
    int num, i;
    GetIntegerv (GL_NUM_EXTENSIONS, &num);
    for (i = 0; i < num; i++) {
        const GLubyte *ext = GetStringi (GL_EXTENSIONS, i);
        if (!name.compare (reinterpret_cast<const char *> (ext)))
            return true;
    }
    return false;
}
Exemplo n.º 2
0
void Gl::GreOpenGl3ExtensionInit()
{
    GLint extnum = 0;
    GetIntegerv(GL_NUM_EXTENSIONS, &extnum);
    
    for(GLuint cext = 0; cext < extnum; ++cext)
    {
        Extensions.push_back(std::string((char*) GetStringi(GL_EXTENSIONS, cext)));
    }
    
#ifdef GreIsDebugMode
    GreDebugPretty() << "Extensions Found : " << Extensions.size() << std::endl;
#endif
}