getting versions

hi

i can get OpenGL version name by

glGetString(GL_VERSION);

and i can get OpenGL major and minor version by:

glGetIntegerv(GL_MAJOR_VERSION, &major); 
glGetIntegerv(GL_MINOR_VERSION, &minor); 

but how can i get GLSL version? (with out using glGetString)
and how can i get shader model??

but how can i get GLSL version? (with out using glGetString)

You can’t.

and how can i get shader model??

Wiki Page

[quote]but how can i get GLSL version? (with out using glGetString)

You can’t.[/QUOTE]
Though integer major/minor queries would be nice to have, since the GLSL version string format is standard, just sscanf it. Not ideal but should be guaranteed to work:

However glGetString is deprecated. I guest the GLSL version depend on the OpenGL version. That’s actually what I assume but am I right to do that?

glGetString is not deprecated.
Only GL_EXTENSIONS enum value for its argument is deprecated.

I feel it is going to take a while until I figure out all details about what is deprecated or not …

I know that feeling.

I feel it is going to take a while until I figure out all details about what is deprecated or not …

It’s as simple as reading the quick reference. glGetString is black, hence not deprecated. Indeed, it specifically says under it that using GL_EXTENSIONS in it is deprecated.