Posted Wednesday, 26 October, 2011 - 17:13 by mOfl
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.
Comments
Re: How to differientiate deprecated functions ?
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.
Re: How to differientiate deprecated functions ?
Great, thanks :-)
Re: How to differientiate deprecated functions ?
The upcoming version marks deprecated functions in the documentation popup. You can get the latest code directly from svn.
Re: How to differientiate deprecated functions ?
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 :-)