The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
c++ SDL_image, image coloring question
tw3tye


Joined: 22 Jan 2012
Posts: 18
Hello.
Im curnently doing "Equipment" for my character. Im trying to save time.
Lets say i have 32x32 square "Red"RGB"(255,0,0) sdl_surface.
Can i somhow change color of this Surface or Image while loading.
so i dont need 30 images but i can code somhow from one.?
Easy stuff man
takide


Joined: 07 Feb 2012
Posts: 27
This should put you in the right direction: http://lazyfoo.net/SDL_tutorials/lesson31/index.php
Bump
tw3tye


Joined: 22 Jan 2012
Posts: 18
Bump. Rolling Eyes [/b]