SDL 2.0 Mesa 9 (openGL 3.0) c tutorial

Does anyone know of a tutorial that use SDL 2.0 with OpenGL 3.0 (the new format as opposed to the old 2.1 format) and using C not C++? I have just loaded Mesa 9.0 the newest on Linux I know it is way behind the current equivalent OpenGL, but that is the best with Mesa at the moment. I program in C and most tutorials seem to use C++. The Red book OpenGL 3.0 version seems to use the older format. Any help much appreciated.

From what I was told about a year ago, you’ll want to use
Glewhttp://glew.sourceforge.net/or
Glee http://elf-stone.com/glee.php. These will automatically setup a
pile of function pointers for the newer OpenGL functions. I’ve used glew a
few times with no issues, and if I recall correctly, when I used glee, I
had to jump through a few hoops, but that may have been because either I
didn’t understand a part of it, or I grabbed a development version that had
a bug (I don’t recall which at this point). These should work with Mesa,
as far as I’m aware, unless someone else knows more than myself (Which is
likely).

-AlexOn Mon, Nov 5, 2012 at 7:09 AM, dosh wrote:

**
Does anyone know of a tutorial that use SDL 2.0 with OpenGL 3.0 (the new
format as opposed to the old 2.1 format) and using C not C++? I have just
loaded Mesa 9.0 the newest on Linux I know it is way behind the current
equivalent OpenGL, but that is the best with Mesa at the moment. I program
in C and most tutorials seem to use C++. The Red book OpenGL 3.0 version
seems to use the older format. Any help much appreciated.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org