DrawBox

Posts 1–14 of 14 · Page 1 of 1
DrawBox
void DrawBox(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, D3DCOLOR Color)
{
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 = V[1].x = (float)x;
V[0].y = V[2].y = (float)(y + h);
V[1].y = V[3].y = (float)y;
V[2].x = V[3].x = (float)(x + w);

pDevice->SetTexture(0, NULL);
pDevice->SetVertexShader(NULL);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Ve rtex));
}

void D3D9Menu::Boarders(LPDIRECT3DDEVICE9 pDevice)
{
DrawBox(pDevice,1,20,Mxofs+45,Mmax*Mysize+15,BackG round);
DrawBox(pDevice,1,1,Mxofs+45,15,BackGround);
DrawRectangle(pDevice,1,1,Mxofs+45,15,1,BoarderCol or);
DrawRectangle(pDevice,1,20,Mxofs+45,Mmax*Mysize+15 ,1,BoarderColor);
}

Error :

Fehler 2 fatal error LNK1120: 1 nicht aufgelöste externe Verweise. .\Release/D3D.dll
Fehler 1 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall D3D9Menu:rawBox(struct IDirect3DDevice9 *,int,int,int,int,unsigned long)" (?DrawBox@D3D9Menu@@QAEXPAUIDirect3DDevice9@@HHHHK @Z)" in Funktion ""public: void __thiscall D3D9Menu:rawBorderedMenu(int,int,int,int,int,unsigned long,unsigned long,unsigned long,struct IDirect3DDevice9 *)" (?DrawBorderedMenu@D3D9Menu@@QAEXHHHHHKKKPAUIDirec t3DDevice9@@@Z)". d3dmenu.obj

some1 could help me? (and check if code correct/post correct code? )
plss^^
Wrong section..
/req move..
I can uderstand about half of that.
Wrong section, I can't understand any of that btw (probably because I'm not a coder, sooo :P)
im understund but i dont code
try this code:
Code:
void DrawBox(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, D3DCOLOR Color)//may need ;
{
float x,y,z,ht;
DWORD Color;
}

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 = V[1].x = (float)x;
V[0].y = V[2].y = (float)(y + h);
V[1].y = V[3].y = (float)y;
V[2].x = V[3].x = (float)(x + w);

pDevice->SetTexture(0, NULL);
pDevice->SetVertexShader(NULL);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Ve rtex));
}

void D3D9Menu::Boarders(LPDIRECT3DDEVICE9 pDevice)
{
DrawBox(pDevice,1,20,Mxofs+45,Mmax*Mysize+15,BackG round);
DrawBox(pDevice,1,1,Mxofs+45,15,BackGround);
DrawRectangle(pDevice,1,1,Mxofs+45,15,1,BoarderCol or);
DrawRectangle(pDevice,1,20,Mxofs+45,Mmax*Mysize+15 ,1,BoarderColor);
}
gives me errors on compiling..
wrong section like others said already
/moved
i dont understand a sh**
You Have Some Already Defined External Symbols..
Easy Fix ....

Btw Do You SDK Include..
You Cant Use pDevice Without Directx Included
yazzn you leech all the shit from upk...
Quote Originally Posted by yazzn` View Post
Mhmmmmmmmmmm not Realy.
DrawBox function from Pheno so stfu little gaylord or i will fuck your PC & ur life fucking idiot!!!!!!
FUCKING SON OF A DIRTY BITCH!
whou thats good motherfucker!
Okay?
Hey? pls don't talk like this bro..
You'll be banned..
Everyone know you are not leecher, so be relaxed
Peace bro
Just for Anti-Aggression lawl ;D
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us