D3d Draw Triangle

Posts 115 of 24 · Page 1 of 2
D3d Draw Triangle
I think this is how you do it

Code:
void FillARGBTriangle(int x1, int y1, int x2, int y2, int x3, int y3, D3DCOLOR color, IDirect3DDevice9 *pDevice)
{
	struct Vertex
	{
		float x,y,z,ht;
		DWORD Color;
	};

	Vertex V[4];
    V[0].Color = V[1].Color = V[2].Color = V[3].Color = color;
    V[0].z   = V[1].z   = V[2].z   = V[3].z   = 0.0f;
    V[0].ht = V[1].ht = V[2].ht = V[3].ht = 0.0f;

	V[0].x = (float)x1;
	V[0].y = (float)y1;
	V[1].x = (float)x2;
	V[1].y = (float)y2;
	V[2].x = (float)x3;
	V[2].y = (float)y3;
	V[3].x = (float)x1 + 1;
	V[3].y = (float)y1 + 1;

	pDevice->SetTexture(0, NULL);
	pDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1); 
	pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
}
Credits:
Pheron
System32
Quote Originally Posted by flameswor10 View Post
Credits:
System32
This made me lol.
post a screenie
Quote Originally Posted by ac1d_buRn View Post
post a screenie
aggred i wont to see this... small or big white or black
sorry guys, but iu don't have a menu base for me to use with. So can't get a screenshot
Quote Originally Posted by flameswor10 View Post
sorry guys, but iu don't have a menu base for me to use with. So can't get a screenshot
There are other ways to use DirectX than menu hacks.
Quote Originally Posted by flameswor10 View Post
sorry guys, but iu don't have a menu base for me to use with. So can't get a screenshot
i dont care. post a screenie you gimp
you don't need a menu to made a screen !!
make simple box
Someone needs to release draw an oval..
Quote Originally Posted by whit View Post
Someone needs to release draw an oval..
Do you know how hard it is to calculate a oval??
Quote Originally Posted by Mr.Magicman View Post


Do you know how hard it is to calculate a oval??
Yah, that probably would be hard...
Quote Originally Posted by Mr.Magicman View Post


Do you know how hard it is to calculate a oval??
Nope's ..
Has anyone used this yet?
Lol Credits:
System32

Anyway thanks and Gj. Thanked!
Posts 115 of 24 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Need help?