View Full Version : GL 2.0 GLSL
07-12-2005, 03:29 PM
I was converting to the GL 2.0 functions. I though that it was suppose to be like the functions for textures, VBOs and FBOs.
There is no glGenPrograms, no glGenShaders, no glDeletePrograms, glDeleteShaders.
There is glDeleteProgram and glDeleteShader.
BTW, the GL 2.0 spec was explaining things very well but I must have missed this part.
07-13-2005, 12:46 AM
are the ones I suppose. I just converted my functions too, but I can't verify right now, although everything fits fine.
goto the nvidia devleoper website they had a pdf with the new driver support, one of the things they list is what shader functions have been renamed changed in the transition from ARB->2.0.
IMHO the 2.0 version is far better than the ARB version
07-13-2005, 06:39 PM
Yes, I converted my code and it works fine with the GL 2.0 functions, so I did make use of glCreateShader, glCreateProgram, glLinkProgram, etc.
Just wondering why some functions are missing. Why was it decided on this.
07-13-2005, 08:46 PM
Here\'s why (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=7;t=000508)
07-15-2005, 06:02 PM
I'm glad that it wasn't changed much.
I forgot to mention that the thing that is confusing is that they are using the words program and shader in this version. Instead of program, I would havew called it a shader set or shader group.
07-15-2005, 07:20 PM
I forgot to mention that the thing that is confusing is that they are using the words program and shader in this version.The ARB version did the same thing. glslang has always used the terms shader and program. Shaders are like compiled object files, while programs are like executables.
07-17-2005, 04:56 AM
Yea, you're right. I've been using my wrapper class too long. Anyways, it's good enough to work with.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.