
Originally Posted by
Dreamgun
In Present:
Code:
PostReset(pDevice);
Draw Your Menu Here.
Rest of the Shit
In Reset:
PreReset And PostReset:
Code:
void PreReset(pD3DdeviceX pDevice)
{
if(!pPreReset)
{
if(pFont){
pFont->InvalidateDeviceObjects();
pFont->DeleteDeviceObjects();
pFont = NULL;}
//_SAFE_RELEASE(texRed);
pPreReset = true;
}
}
#define pSAFE_RELEASE(p) { if(p) {(p)->Release();(p)=NULL;} }
void PostReset(pD3DdeviceX pDevice)
{
if(pPreReset)
{
pFont = new CD3DFont("Arial", 10, D3DFONT_BOLD);
pFont->InitDeviceObjects(pDevice);
pFont->RestoreDeviceObjects();
//generate textures and stuff
pPreReset = false;
}
}
dont just c&p. but read it, and learn from it

Great somebody Really wanna help me

but I'm asked you in the First what did you are mean Reset ??
that what i understood form the Reset ....
[php]PostReset(LPDIRECT3DDEVICE9 pDevice);
if(Directx.pFont == NULL)
D3DXCreateFontA(pDevice, 15, 0, FW_REGULAR, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Comic Sans MS", &Directx.pFont );
.............
.....................bla bla bla
Menu.MenuShow(menux,menuy,Directx.pFont);//this to make the Menu show
Menu.MenuNav();
[/php]
[php]PostReset(pDevice);
i don't understand it /


[/php]
for last code what the DirectX file you use !!