Well I think I'm pretty solid with SDL, but now I want to move on to 3d games or advanced 2d games. Can someone point me in the right direction on where I can find a tutorial on OpenGL with SDL? I'm looking for an entire series of tutorials. Thanks in advance.
Umm opengl is a whole other animal...it's still programming but it's programming with a whole lot of 3d topics and os programming(unless you use like glut or sfml or something as such) I would recommend instead learning another language instead of trying opengl....But you can do what you want i have wasted a lot of time trying to figure out opengl Not saying it's bad just very complicated
Umm opengl is a whole other animal...it's still programming but it's programming with a whole lot of 3d topics and os programming(unless you use like glut or sfml or something as such)
Topic: OpenGL and SDL
Anyways you can follow NeHeGL's tutorials (Who are a bit outdated let's say).
He uses GLUT for windowing and whatnot, but his OpenGL examples are swiggity sweet. They come in text and video form, and he provides the source code for each one.
He uses GLUT for windowing and whatnot, but his OpenGL examples are swiggity sweet.
Just checking out the first "tutorial" source code he's using the (deprecated) fixed pipeline functions. If that's representative, it doesn't look like a good source for up-to-date OpenGL.
Lol supperpiccle, why'd you tell me to learn another language? I don't want to learn another, I want to learn OpenGL, which is an API. NGen, I'm looking through the tutorials currently.
Just checking out the first "tutorial" source code he's using the (deprecated) fixed pipeline functions. If that's representative, it doesn't look like a good source for up-to-date OpenGL.
All OGL tutorials start like that. A tutorial that immediately throws you into VBOs and shaders would be rather bad.
I've found and used one who used VBO til the beginning and for me who knew already, was good enough.
4 full minutes to write this because of water in keybd and onscreen keyboard in use... :c
While we're on the subject of OpenGL, has anyone found a way to get meaningful error information from OpenGL? GL_INVALID_OPERATION and GL_INVALID_VALUE tend to get old very quickly.
These are much more modern tutorials: http://www.arcsynthesis.org/gltut - More complete, but uses an older version of OpenGL (3.3) http://openglbook.com/the-book/ - Uses a more recent version of OpenGL (4.0) but isn't complete (and it looks like it hasn't been updated in a long while, so it probably won't ever be completed). Some of the code can be modified to support OpenGL 3.x.
@helios
Both of these tutorials go straight into VAOs, VBOs and shaders. Call it a baptism by fire. There's no point going through the fixed-function pipeline because no-one uses it any more. I'm pretty sure recent iterations of OpenGL don't even have any of the FFP functions any more anyway. If you're using the FFP, you're wasting time, IMO.
Is there a recommended way to learn OpenGL? I'm trying to follow these tutorials but I'm losing interest and I feel like rushing through. I want to learn it quickly, but I want to also understand it.
ok I have the opengl supperbibble 5th edition...It is very well written explains itself and you use opengl 3.3(pretty new) The very first part takes a lil while to understand everything but once you do you feel like a 3d god:P