Jump to content
  • Advertisement
Sign in to follow this  
deathwearer

Simple question with SDL

This topic is 4839 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 load image with SDL, and sometime in the game I'd like to change the color of that image ( a specific color of the image ) can it be done?.

Share this post


Link to post
Share on other sites
Advertisement
Describe what you want to do:

change one color to another ( like make all the blue pixels red)

or make the whole image one color?

Share this post


Link to post
Share on other sites
Are you trying to do this with when the levels change? The only solution that I can think of that doesn't involve manipulating individual pixles is just to make a set of colored blocks for each level and put them in according directories and create a sort of LoadLevel() function that would change the souce of the surfaces when the level changes.

Share this post


Link to post
Share on other sites
Quote:
Original post by Ekim_Gram
Are you trying to do this with when the levels change? The only solution that I can think of that doesn't involve manipulating individual pixles is just to make a set of colored blocks for each level and put them in according directories and create a sort of LoadLevel() function that would change the souce of the surfaces when the level changes.


You are correct this is what i wana do.

I already tought of your solution, but i wanted to know if i could made it just by changing the color, seem like no, too bad ;)

Thank

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!