Change color to an image in SDL (c ++)

1

I have an object in the game where its color depends on several circumstances (scenario, collisions etc ..)

The problem is that for each situation, in the sprite sheet I have to add the object with the different color again.

Is there any way to codify the image and decide by code the color palette that you want to apply to the image?

In my code the images are loaded with SDL_image.

    
asked by Islam Linarez 09.02.2017 в 01:33
source

0 answers