Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????

  1. #1
    Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    289

    (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????

    What is wrong with this??

    if(strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL)
    {
    do stuff
    }

    why do i keep getting the error, parameter one cannot be converted from, const usigned char * to const char * ???? any one got a clue?? damn i am really starting to get annoyed with this extensions thing.

    [This message has been edited by dabeav (edited 05-23-2002).]

  2. #2
    Member Regular Contributor nickels's Avatar
    Join Date
    Feb 2000
    Location
    Colorado
    Posts
    298

    Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????

    Your problem is C++. It is an annoying, officious language. Try:

    if(strstr((const char*)glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL)

    ........

    i.e. force the type conversion.

    I hate C++, it insults my intelligence.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    London, England
    Posts
    163

    Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????

    There is no EXT_multitexture extension ( as far as I know). Use ARB_multitexture instead. You need to search for GL_ARB_MULTITEXTURE, not just ARB_MULTITEXTURE.

  4. #4
    Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    289

    Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????

    Thank you polygon gods. That worked like a dream. Cant believe i missed that REPEATEDLY. oh im sooooo over worked. Oh, and once again, sorry about the miss type, i knew that it was ARB, instead of EXT, my bad. Thank you once again.

  5. #5
    Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    486

    Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????

    Extension = (char *) glGetString(GL_EXTENSIONS);

    if (!(strstr(Extension, "GL_ARB_multitexture")) == 1)
    {//not supported}
    else
    {//supported}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •