Results 1 to 5 of 5

Thread: Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared

    Mingw gl.h has not some values defined for several GL constants
    for example GL_MULTISAMPLE, GL_MAX_ELEMENTS_VERTICES....
    Where (people that develops mingw ??) have I to go to say this little fault ?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared

    I checked my MInGW installation. (MinGW 4.4 & 4.5)

    these values are present

    Line 747
    Qt Code:
    1. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
    To copy to clipboard, switch view to plain text mode 

    Line 929
    Qt Code:
    1. #define GL_MULTISAMPLE 0x809D
    To copy to clipboard, switch view to plain text mode 

    The values are the same of Mesa in my Linux machine
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Re: Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared

    But, I have get the last version. I have win xp.
    The value is at glext.h not gl.h .
    I'm now a little confused.
    Have I to include glext.h ? QGLwidget use it ?
    Thanks

  4. #4
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared

    QGLWidget uses only <gl.h> and <glu.h>
    A camel can go 14 days without drink,
    I can't!!!

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared

    In the dark ages the MingW gl.h used to include glext.h but this caused problems (as comments in the gl.h file indicate). If you want the definitions for GL version 1.2 or 1.3 then include glext.h directly.

Similar Threads

  1. ui not declared in scope
    By steve.bush in forum Newbie
    Replies: 5
    Last Post: 19th March 2011, 09:58
  2. QDomDocument was not declared in this scope
    By grantbj74 in forum Newbie
    Replies: 5
    Last Post: 25th August 2009, 10:43
  3. beginInsertRows was not declared ???
    By travlr in forum Qt Programming
    Replies: 2
    Last Post: 6th June 2009, 22:22
  4. 'XEvent' has not been declared
    By dacla in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 31st March 2008, 13:44
  5. Replies: 2
    Last Post: 28th December 2007, 19:30

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
  •  
Qt is a trademark of The Qt Company.