Results 1 to 2 of 2

Thread: Where is GL_CLAMP_TO_EDGE?

  1. #1
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Where is GL_CLAMP_TO_EDGE?

    Hi friends!

    My QGLWidget derived class has this:
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
    But compiler says GL_CLAMP_TO_EDGE is an undeclared identifier.

    Which file should I include?
    BTW, evidently I include:
    #include <QGLWidget>

    Thanks a lot.

    EDIT: Another qustion, how can I know if an extension is supported or not?
    Last edited by ricardo; 24th July 2009 at 02:47.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Where is GL_CLAMP_TO_EDGE?

    I think this is out of scope of this forum You need to query your GL implementation for the extension (you need to know its id). GL_CLAMP_TO_EDGE is non-standard so it will not be part of your GL.h - basically you need to find its id and define it.

    http://www.gamedev.net/community/for...opic_id=191794
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    ricardo (24th July 2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.