In DirectX, it's very easy :
In SDL, it's about the same :
src->format->Rmask=mask[color] & 0x00FF;
src->format->Gmask=mask[color] & 0x00FF00;
src->format->Bmask=mask[color] & 0x00FF0000;
So now I move to SDL_Opengl, I want to know the same technique to do it.
I found out : glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
But it only work, if I set 1 color to true, if I set 2 color , it doesnt make yellow, or cian...
Thanks. I hope you understand the way I express my problem.
Edited by greenpig83, 28 July 2012 - 07:43 AM.