Wouldn't OpenGL actually be used inside an SDL app, just drawing whatever is in the main loop? As far as I know, SDL is for most basic tasks, and OpenGL is for drawing any kind of object.
But that's just me, I don't really have any experience in game programming, so I'm probably wrong.
Actually, it's even simpler than that. SDL and OpenGL are just used together. One isn't "inside" the other, the only thing the coder needs to do is tell SDL to use OpenGL:
So when I get around to it, I can basically use them independently, without worrying about stuff not working?
I was messing around with some DirectX code and, because DX was initialized, I couldn't use ofstream anymore. >_> Since I couldn't get data (cout wouldn't work, either), I decided to NOT compare OpenGL to DirectX for an essay.
Devious Comments
But that's just me, I don't really have any experience in game programming, so I'm probably wrong.
--
My signature is down here
--
No seriously, here it is:
--
Pfuh. Never mind.
also,
It looks like your molesting the controller.
SDL_SetVideoMode( width, height, bpp, SDL_OPENGL );
--
You would be amazed just how much you yourself will learn in the process of trying to teach others.
--
I've moved! My new account is ~Moosader
Never mind, I should be able to find it in the SDL docs.
--
My signature is down here
--
No seriously, here it is:
--
Pfuh. Never mind.
--
You would be amazed just how much you yourself will learn in the process of trying to teach others.
I was messing around with some DirectX code and, because DX was initialized, I couldn't use ofstream anymore. >_>
Since I couldn't get data (cout wouldn't work, either), I decided to NOT compare OpenGL to DirectX for an essay.
--
I've moved! My new account is ~Moosader
--
I've moved! My new account is ~Moosader
Previous Page12 Next Page