SDL_Surface *screen;
SDL_Surface *image;
image = SDL_LoadBMP("d:\1.bmp");
if (image > 0)
{
SDL_Rect sdest;
sdest.x = 10;
sdest.y = 10;
SDL_BlitSurface(image, NULL, screen, &sdest);
}
SDL Problem
I just made a bitmap image in paint, saved it as a 24bit bmp. what im trying to do is get this bitmap loaded and onto the screen. here is my code thus far, am i doing something wrong??
um, what's wrong? does the window not come up? does it not compile?
HxRender | Cornerstone SDL TutorialsCurrently picking on: Hedos, Programmer One
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement