Hi,
i’d like to draw some 3D stuff using OpenGL and after that
add some things with SDL drawing functions.
Is this possible somehow? I already got the hint that i need
to draw in a texture and overlay that one.
Is this the only way?
Does it basically work like this:
- create an SDL_Surface with SDL_CreateRGBSurface()
- clear that Surface with SDL_FillRect()
- Draw into it
- glLoadIdentity(), glOrtho(0, w, 0, h, 0, 1)
- copy SDL_Surface with glDrawPixels() to screen
Can i save a screenshot of the result to a file?
Best regards,
Torsten.
we already discussed that last week (thread opengl+sdl);
here’s my suggestion:
draw 3d stuff as normal,
for 2d sprites: load the image as texture and draw it on a plain rectangle.
that’s it> Hi,
i’d like to draw some 3D stuff using OpenGL and after that
add some things with SDL drawing functions.
Is this possible somehow? I already got the hint that i need
to draw in a texture and overlay that one.
Is this the only way?
Does it basically work like this:
- create an SDL_Surface with SDL_CreateRGBSurface()
- clear that Surface with SDL_FillRect()
- Draw into it
- glLoadIdentity(), glOrtho(0, w, 0, h, 0, 1)
- copy SDL_Surface with glDrawPixels() to screen
Can i save a screenshot of the result to a file?
Best regards,
Torsten.
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl