[SDL] SDL & OpenGL problem
Tomasz Wojtowicz
tomaswoj at student.uci.agh.edu.pl
Sat Jan 5 02:24:01 PST 2002
Hi, probably this is an easy one, and little lame ;)
Howto draw something in SDL ( ex. the foreground menus, texts, etc. ) on
the screen which was created with SDL_OPENGL flag. When i try to draw some
texts ( using SFont (SoFont actually )) and try to:
SDL_UpdateRect(myscreen,0,0,0,0);
i just get Segmentation Fault(SDL Parachute Deployed) ;(. And it's not
because of SoFont, it faults when only SDL_UpdateRect... is called.
The question is: WTF? Can I/Cannot I use SDL_UpdateRect when i use
SDL_OPENGL ? And simple:
drawMyTextUsingSoFont();
SDL_GL_SwapBuffers();
doesn't fail but doesn't draw any text ;(.
Please, help.
Thanks in advance
>--
io
http://ernie.icslab.agh.edu.pl/~tomaswoj/port/portfolio.html
--<
More information about the SDL
mailing list