Jump to content

SDL with OpenGL in C++ on Win in Dev C++

- - - - -

  • Please log in to reply
2 replies to this topic

#1
coderwalker

coderwalker

    Newbie

  • Members
  • Pip
  • 8 posts
I started out with OpenGL, was learning it and got far enough using GLUT. Later I learned that SDL + OpenGL is a better option because it can handle image loading and drawing text for you. I have now been working with SDL for a couple of weeks and want to add OpenGL back. Now when I use OpenGL + SDL it won't allow me to draw surfaces to the screen which I really need, for example to draw text which is one of the reasons I switched in the first place.

How do I draw a surface to the screen with SDL in C++ after initializing OpenGL in SDL?

Thanks.

#2
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
Have you tried here? Maybe some useful info you'll find.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.

#3
coderwalker

coderwalker

    Newbie

  • Members
  • Pip
  • 8 posts
Yea I have. The problem is when you create the OpenGL window it doesn't return a surface to blit to, like when creating a standard window.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users