Results 1 to 4 of 4

Thread: Version of OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    May 2011
    Posts
    4

    Version of OpenGL

    Hi guys,

    I am new in OpenGL - can anyone tell me, How can I write simple code (In Java) to know what version, vendor, renderer and extension of OpengGL I am using?

    I would like to define these four string variables to hold all the results querying GL_VENDOR,GL_RENDERER, GL_VERSION and GL_EXTENSIONS and add some code in the init() method to query these results. Then create a new JFrame and write the results into it.

    Anyone can help me please?
    Thank you.

  2. #2
    Junior Member Newbie
    Join Date
    May 2011
    Posts
    4

    Re: Version of OpenGL

    I tried to do as following in the init() method:

    glGetString(GL_VERSION);

    but it does not like the glGetString - so should I put it as gl.glGetString(GL_VERSION);?

    Anyone please?

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    20

    Re: Version of OpenGL

    glGetString(GL_VERSION);

    Is a good way to check gl version but AFTER creating opengl context. Extensions are queried by similar method. Look at Java bindings docs.

  4. #4
    Junior Member Newbie
    Join Date
    May 2011
    Posts
    4

    Re: Version of OpenGL

    Thanks...got it there at the end..!

Similar Threads

  1. GLSL version doesn't match OpenGL version
    By Susano2018 in forum OpenGL: Drivers
    Replies: 0
    Last Post: 11-13-2018, 06:35 PM
  2. Converting from OpenGL version 2.1 to version 3.0 and above
    By peterkl in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-02-2015, 01:35 PM
  3. OpenGL version
    By _arts_ in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 11-02-2010, 05:08 AM
  4. Replies: 2
    Last Post: 12-03-2005, 01:23 PM
  5. OpenGL new version
    By NewROmancer in forum OpenGL: Advanced Coding
    Replies: 24
    Last Post: 09-18-2000, 11:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean