Code:
int Render()
{
p_Device->Clear(0, 0, D3DCLEAR_TARGET, 0, 1.0f, 0);
p_Device->BeginScene();
if (tWnd == GetForegroundWindow())
{
DrawShadowString("notfire", 6, 6, 250, 250, 250, pFontSmall);
void menutogglefunction();
{
while (true)
{
if (menutoggle = !menutoggle)
{
// render our menu
FillRGB(40, 66, 400, 240, 32, 32, 32, 246);
DrawBox(40, 66, 400, 240, 100, 32, 32, 32, 255);
DrawBox(41, 67, 400, 240, 100, 32, 32, 32, 255);
DrawBox(42, 68, 400, 240, 100, 32, 32, 32, 255);
DrawBox(43, 69, 400, 240, 100, 32, 32, 32, 255);
DrawBox(44, 70, 400, 240, 100, 32, 32, 32, 255);
DrawBox(45, 71, 400, 240, 100, 32, 32, 32, 255);
GradientFunc(45, 71, 395, 20, 102, 178, 255, 240);
DrawShadowString("notfire [private legit cheat]", 47, 73, 255, 255, 255, pFontSmall);
}
}
}
}
p_Device->EndScene();
p_Device->PresentEx(0, 0, 0, 0, 0);
return 0;
}
i create my bool inside my header, and i include the header inside directx.cpp