Example #1
0
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]);
}
Example #2
0
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);
}
Example #3
0
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);
}
Example #4
0
void draw_set_alpha(float alpha)
{
	enigma::currentcolor[3] = bind_alpha(alpha);
}
Example #5
0
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]);

}
Example #6
0
void draw_set_alpha(float alpha)
{
	if (enigma::currentcolor[3] == bind_alpha(alpha)) return;
	oglmgr->ColorFunc();
	enigma::currentcolor[3] = bind_alpha(alpha);
}