Untitled
By: a guest | Mar 20th, 2010 | Syntax:
None | Size: 0.47 KB | Hits: 102 | Expires: Never
ID3DXLine* line;
void drawLine( int posX, int posY, int posX2, int posY2, int width, DWORD color )
{
if(!line)
return;
D3DXVECTOR2 vLine[2];
vLine[0].x = posX;
vLine[0].y = posY;
vLine[1].x = posX2;
vLine[1].y = posY2;
line->SetWidth( width );
line->SetAntialias( false );
line->SetGLLines( false );
line->Begin( );
line->Draw( vLine, 2, color );
line->End( );
}
//TRY!
drawLine(100, 200, 100, 200, 4.0f, D3DCOLOR_ARGB(255, 0, 255, 0) );?