VOID onCreateD3D()
{
g_pD3D = Direct3DCreate9(D3D_SDK_VERSION);
if (!g_pD3D)
{
return;
}
D3DDISPLAYMODE d3ddm;
ZeroMemory(&d3ddm, sizeof(d3ddm));
g_pD3D->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm);
D3DPRESENT_PARAMETERS d3dapp;
ZeroMemory(&d3dapp, sizeof(d3dapp));
d3dapp.Windowed = FALSE;
d3dapp.BackBufferHeight = d3ddm.Height;
d3dapp.BackBufferWidth = d
{
g_pD3D = Direct3DCreate9(D3D_SDK_VERSION);
if (!g_pD3D)
{
return;
}
D3DDISPLAYMODE d3ddm;
ZeroMemory(&d3ddm, sizeof(d3ddm));
g_pD3D->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm);
D3DPRESENT_PARAMETERS d3dapp;
ZeroMemory(&d3dapp, sizeof(d3dapp));
d3dapp.Windowed = FALSE;
d3dapp.BackBufferHeight = d3ddm.Height;
d3dapp.BackBufferWidth = d