I'm developing a 2d game, that use glOrtho and some texture, source is png file(includes alpha value).
I have a problem. I don't know how can I add colors in texture. Example of image file is this..
(It's existing online game's sprite)
Now I want to add color in this pixels(consider alpha value).
If that color is white, I set color's alpha value each frame, and that image effects such as shining, I expect.
I've tried a method that 'make other file with Photoshop and put on original image', but it's looks like too stupid, and too static.
If I use this method, whenever add another image files I must make another 'color' image files too!
And.. I've used glColor4f(3,3,3,1) or glColor4f(100,100,100,1), glC... whatever, the value of glColor4f did not exceed '1'.(edit : '1' -> 'original')
it was useless in this case.
So I ask for help to this site.
How can I add color on texture? and what is the best method?
Now I find a way to upload image on this site, image has uploaded successfully. But problem of openGL is still exist.