Results 1 to 3 of 3

Thread: Will my opengl 2.1 code work on computers with openg l> 3?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2015
    Posts
    3

    Post Will my opengl 2.1 code work on computers with openg l> 3?

    Hi, i'm new to opengl and i decided that i will start with opengl 2.1(yes, i know it's deprecated) because of compatibility with old hardware(and because it's easier ). However, I don't know if my opengl 2.1 program will work with new video cards, I heard that for newer versions of opengl there's the compatibility profile but I don't know if it available in mesa's implementation of opengl(I'm a linux developer).
    So the question is: Will my opengl 2.1 code work on computers with opengl > 3.x? Will it also work on mesa's implementation(see quote below)?

    Quote from mesa3d's website: "Mesa 10.4.5 implements the OpenGL 3.3 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don't support all the features required in OpenGL 3.3. OpenGL 3.3 is only available if requested at context creation because compatibility contexts are not supported."

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2013
    Posts
    186
    Of course it will. Just think about it, old applications have to run on newer hardware as well. So if you write a new application using old techniques it will run on new hardware just as well as old application that use these same old techniques do.

  3. #3
    Member Contributor
    Join Date
    Oct 2014
    Posts
    55
    Quote Originally Posted by ochi12 View Post
    Hi, i'm new to opengl i decided that i will start with opengl 2.1(yes, i know it's deprecated) because of compatibility with old hardware(and because it's easier ).
    Hi!

    It's not easier. 2.1 was released 2006, so just don't waste your time with learning a decade old standard.
    Just my opinion, but learn the latest possible version your circumstances offers.

Similar Threads

  1. Adding OpenGl to a project (Via source code work)
    By Matt101 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-03-2017, 11:39 AM
  2. My code in OpenGL with texture just did not work
    By archy_yu in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 10-27-2009, 12:09 AM
  3. Is same OPENGL/GLSL code l work for different hardware
    By iris_raj in forum OpenGL: GLSL
    Replies: 9
    Last Post: 02-09-2007, 11:57 AM
  4. Need help - glyph code not working on some computers
    By meanfox in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 12-27-2004, 04:38 PM
  5. Correct OpenGL code in CodeWarrior doesnt work.
    By d98ped in forum OpenGL: macOS
    Replies: 5
    Last Post: 09-02-2001, 06:45 AM

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