void draw_set_color_rgba(unsigned char red,unsigned char green,unsigned char blue,float alpha) { enigma::currentcolor[0] = red; enigma::currentcolor[1] = green; enigma::currentcolor[2] = blue; enigma::currentcolor[3] = bind_alpha(alpha); D3DCOLOR D3DColor = D3DCOLOR_RGBA(enigma::currentcolor[0],enigma::currentcolor[1],enigma::currentcolor[2], enigma::currentcolor[3]); }
void draw_set_color_rgba(unsigned char red,unsigned char green,unsigned char blue,float alpha) { enigma::currentcolor[0] = red; enigma::currentcolor[1] = green; enigma::currentcolor[2] = blue; enigma::currentcolor[3] = bind_alpha(alpha); glColor4ubv(enigma::currentcolor); }
void draw_set_color_rgba(unsigned char red,unsigned char green,unsigned char blue,float alpha) { if (enigma::currentcolor[0] == red && enigma::currentcolor[1] == green && enigma::currentcolor[2] == blue && enigma::currentcolor[3] == bind_alpha(alpha)) return; oglmgr->ColorFunc(); enigma::currentcolor[0] = red; enigma::currentcolor[1] = green; enigma::currentcolor[2] = blue; enigma::currentcolor[3] = bind_alpha(alpha); }
void draw_set_alpha(float alpha) { enigma::currentcolor[3] = bind_alpha(alpha); }
void draw_set_alpha(float alpha) { enigma::currentcolor[3] = bind_alpha(alpha); glColor4ub(enigma::currentcolor[0],enigma::currentcolor[1],enigma::currentcolor[2],enigma::currentcolor[3]); }
void draw_set_alpha(float alpha) { if (enigma::currentcolor[3] == bind_alpha(alpha)) return; oglmgr->ColorFunc(); enigma::currentcolor[3] = bind_alpha(alpha); }