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 replies to this topic
#1
Posted 20 November 2010 - 07:26 PM
|
|
|
#3
Posted 21 November 2010 - 05:43 AM
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


Sign In
Create Account

Back to top









