Results 1 to 4 of 4

Thread: Deprecated OpenGL 2.0 functions

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2012

    Deprecated OpenGL 2.0 functions

    I am moving to a programmable pipeline and I would know what are all the functions (or things) deprecated in OpenGL 2.0; I saw many sites mentioning what is deprecated in OpenGL 2.0, but no one says all the deprecated functions.

    I use GLSL 1.20, and before discovering that some functions were deprecated I was using things like glLoadIdentity and glLightfv. Some questions:

    1) In the shaders I always get gl_LightSource[0] which contain information about GL_LIGHT0. If glLightfv is deprecated, then how should I passed the values that are held in this structure?
    2) There is also gl_ModelViewMatrix, but since glLoadIdentity, glMatrixMode and such things are deprecated, how do I pass info about the modelview matrix to the shader?

    What else functions are deprecated?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2012
    Oldenburg, Germany
    Basically you have to define uniform variables that contain the informations you need.
    Google has numerous tutorials about that. Basically declare a uniform variable in the shader, in the application query it's Location when the program is bound and set it using glUniform.

    The list of deprecated functions is fairly exhaustive. Best when migrating is to use a header-file that only contains functionality still present and find substitutes for the rest.

  3. #3
    Senior Member Regular Contributor Nowhere-01's Avatar
    Join Date
    Feb 2011

    search by the word "deprecated". you can use it as a reference, to make sure. but i advice to begin with tutorials which use only modern functionality, like this one.

  4. #4
    Nothing is deprecated in GL 2.0. Deprecation started with GL 3.0.

    If you mean you want to use GL 2.0 and avoid deprecated functions, then go to the main page and on the right side, there is something that is called the GL 4.3 reference card that has all the functions.

Similar Threads

  1. Moving away from deprecated functions
    By Jacob16682 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-12-2014, 08:58 AM
  2. Deprecated functions
    By paulbanks in forum OpenGL: Drivers
    Replies: 5
    Last Post: 02-09-2012, 08:26 AM
  3. OpenGL 3: How to find deprecated functions ?
    By greg2 in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 05-06-2010, 06:36 AM
  4. GLSL and deprecated fixed functionality functions
    By Lefteris in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 01-26-2010, 03:46 PM
  5. deprecated functions?
    By pablob in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-22-2006, 04:19 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