Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

programering

painting SDL_Surfaces

This topic is 5767 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 have an idea of painting SDL_Surfaces in my game (just when it starts up). Cos I want to have sprites/images/pictures in many different colors. First I will have to copy the orginal SDL_Surface with SDL_ConvertSurface(...) I think. Then I will have to start a for(...)loop getting the pixel data with get_pixel(...) and if the pixel contains a specific color then it will be replaced with a color I want instead and setting that pixel color with put_pixel(...) Anton Karlsson

Share this post


Link to post
Share on other sites
Advertisement
Kylotan what do you mean?
What do you mean with paint package?
Is it like a file with sprites/pictures/images with different number of color tables?

Anton Karlsson

Share this post


Link to post
Share on other sites

  • 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!