aybe's picture

How to differientiate deprecated functions ?

How can I make the difference between functions that are marked as deprecated in the OpenGL 3+ specs, in OpenTK ?

Thank you :-)


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mOfl's picture

I don't know if there are any options present in OpenTK that allow you to block all deprecated calls or something like that, but the general approach is to use the API cheat sheet: http://www.khronos.org/files/opengl-quick-reference-card.pdf when I started programming for the core profile, this printed out cheat sheet became my best friend. If you are unsure if a function is deprecated, just look it up (you might as well open it in a pdf reader so you can search for the function's name) - blue functions and parameters are deprecated.

aybe's picture

Great, thanks :-)

the Fiddler's picture

The upcoming version marks deprecated functions in the documentation popup. You can get the latest code directly from svn.

aybe's picture

Hi,

I just found a few other ways as well,

The 'clean'versions PDFs don't have deprecated features :
http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.clean.pdf

According the documentation, in OpenTK there's another way as well, specifying a forward compatible profile for GameWindow, need to try that as well.

Thanks :-)