[SDL] preparing a surface
Sam Hart
hart at newton.physics.arizona.edu
Sat Apr 22 14:35:43 PDT 2000
I was just wondering how I can go about initiallizing a surface with
certain set properties (such as res., bpp, default fill color). The
surface is not to be init'd in a window or loaded from a file.
I want to use this to create a background (actually, layers or bkgs) for
scrolling.
I thought I could use SDL_CreateRGBSurface(), but, if so, obviously I'm
using it wrong. If this is the function you use, how do you use
it? (Specifically, what are you telling it by passing the RGB and A mask
values... I thought this was a default fill color...)
Thx.
--
Sam Hart <hart at physics.arizona.edu> http://www.physics.arizona.edu/~hart/
Web Page Highlights: Video Game History, Black Hole Simulation, & more.
*OTHER WEB SITES MAINTAINED BY SAM HART*
http://www.geekcomix.com/ - Geekcomix, the Daily Geek Comic Strip Site
http://www.physics.arizona.edu/~hart/gw/ - Ghostworks (Alt./Linux Computing)
More information about the SDL
mailing list