The SDL forums have moved to
discourse.libsdl.org
.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
SDL SURFACE QUERY
jyoti
Guest
Posted: Wed May 20, 2009 8:37 am
Hi
I m new to sdl. I m trying sum basic things like I wish to make a surface on a
bigger surface and change the color of the smaller surface to red.
I used following code for smaller surface:
Surface = SDL_CreateRGBSurface(SDL_SWSURFACE, rect.w, rect.h,
32,0xff000000,0xff000000,0xff000000,0xffffffff);
SDL_FillRect(Surface, NULL, SDL_MapRGB(m_pSurface->format, 255, 0,0));
SDL_Flip(pSurface);
but the color is not getting set. pls help.
Powered by
phpBB
© phpBB Group
Design by
Vjacheslav Trushkin
for
phpBBStyles.com
.
Content © SDL