Results 1 to 3 of 3

Thread: How to check or set GLSL version?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Location
    Poland. Jelenia Góra.
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default How to check or set GLSL version?

    You can check and set in QGLFormat a version of OpenGL, but how to do the same for GLSL?
    There is glGetString, but for GL_SHADING_LANGUAGE_VERSION you get undeclared identifier

    Qt Code:
    1. const GLubyte* pVersion = glGetString(GL_VERSION);
    2. //const GLubyte* pShaderVersion = glGetString(GL_SHADING_LANGUAGE_VERSION); //undeclared identifier
    To copy to clipboard, switch view to plain text mode 
    Last edited by bartosz.kwasniewski; 19th December 2010 at 17:26.

Similar Threads

  1. QMake Check for Qt version in QMake
    By PaladinOfKaos in forum Qt Tools
    Replies: 1
    Last Post: 24th October 2010, 15:41
  2. renderPixmap() fails to load glsl shaders
    By jscurlee in forum Qt Programming
    Replies: 0
    Last Post: 17th September 2010, 23:12
  3. GLSL shaders, multitexturing and Qt
    By jcox23 in forum Qt Programming
    Replies: 0
    Last Post: 20th January 2010, 20:37
  4. Replies: 5
    Last Post: 5th June 2009, 11:07
  5. GLSL GLWidget and textures
    By themolecule in forum Qt Programming
    Replies: 0
    Last Post: 25th April 2008, 08:16

Tags for this Thread

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.