PDA

View Full Version : glGetShaderiv



cooky451
09-16-2011, 02:17 PM
Hi,

I just began to learn OpenGL with this (http://duriansoftware.com/joe/An-intro-to-modern-OpenGL.-Chapter-2.2:-Shaders.html) Tutorial. I came across glGetShaderiv, which I cannot find in the current OpenGL 4.2 Reference (http://www.opengl.org/sdk/docs/man4/). It seems deprecated to me. What would be an alternative?

Alfonse Reinheart
09-16-2011, 02:26 PM
Many OpenGL functions have special suffixes that specify the types of arguments that they take. Things like "3f", "iv", etc. This is here because C (and other languages) doesn't have function overloading.

The reference manual doesn't include those variations in its function list (which is why the function list isn't enormous). So glGetShaderiv is filed under its base name: "glGetShader (http://www.opengl.org/sdk/docs/man4/xhtml/glGetShader.xml)"

cooky451
09-16-2011, 02:30 PM
Oh, that's a simple answer. :o
Thank you!

Edit:
Wow, your Tutorial is huge! I'm sure I will enjoy it. :)