Cores ARGB
Code:
CONST D3DCOLOR Red = D3DCOLOR_ARGB(255, 255, 000, 000);
CONST D3DCOLOR Green = D3DCOLOR_ARGB(255, 127, 255, 000);
CONST D3DCOLOR Orange = D3DCOLOR_ARGB(255, 255, 140, 000);
CONST D3DCOLOR Blue = D3DCOLOR_ARGB(255, 000, 000, 255);
CONST D3DCOLOR Yellow = D3DCOLOR_ARGB(255, 255, 255, 51);
CONST D3DCOLOR Black = D3DCOLOR_ARGB(255, 000, 000, 000);
CONST D3DCOLOR Grey = D3DCOLOR_ARGB(255, 112, 112, 112);
CONST D3DCOLOR Gold = D3DCOLOR_ARGB(255, 255, 215, 000);
CONST D3DCOLOR Pink = D3DCOLOR_ARGB(255, 255, 192, 203);
CONST D3DCOLOR Purple = D3DCOLOR_ARGB(255, 128, 000, 128);
CONST D3DCOLOR White = D3DCOLOR_ARGB(255, 255, 255, 249);
CONST D3DCOLOR Cyan = D3DCOLOR_ARGB(255, 000, 255, 255);
CONST D3DCOLOR Magenta = D3DCOLOR_ARGB(255, 255, 000, 255);
Em Transparente...
Primeiro , se você souber algo , pegue o Negocinho do Alessandro10
Code:
void Ale_BoxTrans( int x, int y, int w, int h, D3DCOLOR yourcolor, IDirect3DDevice9* pDevice )
{
const DWORD D3D_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE;
struct Vertex
{
float x,y,z,ht;
DWORD yourcolor;
}
V[4] =
{
{(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)x,(float)y, 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}
};
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
pDevice->SetRenderState( D3DRS_FOGENABLE, false );
pDevice->SetFVF(D3D_FVF);
pDevice->SetTexture(0, NULL);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
}
tabom
Cores EM ARGB Transparentes.
Code:
CONST D3DCOLOR TBlack = D3DCOLOR_ARGB(100, 000, 000, 000);
CONST D3DCOLOR TRed = D3DCOLOR_ARGB(100, 255, 000, 000);
CONST D3DCOLOR TGreen = D3DCOLOR_ARGB(100, 127, 255, 000);
CONST D3DCOLOR TOrange = D3DCOLOR_ARGB(100, 255, 140, 000);
CONST D3DCOLOR TBlue = D3DCOLOR_ARGB(100, 000, 000, 255);
CONST D3DCOLOR TYellow = D3DCOLOR_ARGB(100, 255, 255, 51);
CONST D3DCOLOR TGrey = D3DCOLOR_ARGB(100, 112, 112, 112);
CONST D3DCOLOR TGold = D3DCOLOR_ARGB(100, 255, 215, 000);
CONST D3DCOLOR TPink = D3DCOLOR_ARGB(100, 255, 192, 203);
CONST D3DCOLOR TPurple = D3DCOLOR_ARGB(100, 128, 000, 128);
CONST D3DCOLOR TWhite = D3DCOLOR_ARGB(100, 255, 255, 249);
CONST D3DCOLOR TCyan = D3DCOLOR_ARGB(100, 000, 255, 255);
CONST D3DCOLOR TMagenta = D3DCOLOR_ARGB(100, 255, 000, 255);
para Transparente Deixe
T[Cor que você quer]
Para normal deixe
[Cor que você quer~].
é isso ae..
Creditos
we11
Eu , ja deviam saber ma seu não , entãot o postando apra quem não sabe , lol
@Alessandro10
pelo código em Transparente.
a maioria em tranparente foram testado;