Jump to content
  • Advertisement
Sign in to follow this  

SDL Problem

This topic is 5063 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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??
	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);

Share this post

Link to post
Share on other sites

Apperently im out of it right now. I got it working tho.

[Edited by - Mastadex on January 5, 2005 5:15:03 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!