sdl and opengl

Oct 16, 2012 at 11:07am
SDL use opengl as i saw.
So this is another opengl which is used with sdl,or it is the same as
the OPENGL.
hmm i can not expain it well.
With less words i mean that opengl work always with sdl or can work and alone.
Also if work alone is same as work with sdl.

(for example the SDL_GL_SetAttrubute() works with sdl.So this will be the same if work alone?)
Oct 16, 2012 at 12:06pm
Well, you can use SDL to initialize and set up the OpenGL context in a platform-independent way. That's about it. SDL will not help you to load and draw textures and such things. You will have to use the OpenGL functions for that. SDL_GL_SetAttrubute is only useful if you use OpenGL.
Oct 16, 2012 at 1:55pm
Peter you have help me many times with graphics.
Wann give me something to talk live?
If yes tell it down,if not tell it again.
Oct 16, 2012 at 2:18pm
OpenGL offers a way to communicate with your graphics card (hardware rendering), similar to DirectX. However, it needs a context (a window) in which to display things. SDL provides this context, as well as message (keyboard/mouse/joystick) handling.

SDL does not need OpenGL, but OpenGL needs something like SDL.
Oct 16, 2012 at 2:53pm
you use SDL/OpenGL for a simple pretty much platform independent window setup/basic input instead of Windows.h for example if your on windows. Im using this alot if you have any questions just ask!
Oct 16, 2012 at 3:20pm
I am trying to make a game and i need help with sdl-opengl.
Could someone give me his skype and help me?
Oct 16, 2012 at 3:47pm
What is the reason you want to use OpenGL? Are you sure you want to learn OpenGL now? You seems to struggling with SDL and learning OpenGL is much more difficult IMO.
Oct 16, 2012 at 3:56pm
Ohh i thought that i could learn them together.
Is wrong?
Anyway you can give me your skype please?
Oct 16, 2012 at 4:18pm
You can learn them together. It's just that OpenGL is a whole different library that is not as simple as SDL. It looks like you still have a lot to learn and start learning yet another library will not make things easier. I'm not saying you should not learn OpenGL, but do you know why you want to learn OpenGL? If you do, and you think that the SDL graphic functions is not good enough, then go ahead and learn OpenGL.

I don't use Skype.
Last edited on Oct 16, 2012 at 4:18pm
Oct 16, 2012 at 4:31pm
You dont use something that we can talk live?
Oct 16, 2012 at 4:35pm
No, this forum is the only option.
Oct 18, 2012 at 11:23am
I think SDL and OpenGL is works very nice to me. I see no problem with it and i think you should keep doing what you are right now.
Topic archived. No new replies allowed.