Archived

This topic is now archived and is closed to further replies.

The C modest god

Direct3D beginner problem

Recommended Posts

I am able to create a IDirect3DDevice9 when windowed is set to TRUE. However, I am uable to create in fullscreen mode. I use the code CLEARSTRUCT(pSD3D->d3dpp); pSD3D->d3dpp.Windowed = TRUE; pSD3D->d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; pSD3D->d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; IERRSTRING ("Direct3D", IDirect3D9_CreateDevice (gDirect3D, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, gHWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &pSD3D->d3dpp, &pSD3D->pDevice )); Is there something I do wrong? I would appreaciate help on this matter.

Share this post


Link to post
Share on other sites
my present params are as follows for full screen...


d_d3dPP.Windowed = FALSE;

d_d3dPP.BackBufferWidth = d_winWidth;
d_d3dPP.BackBufferHeight = d_winHeight;

d_d3dPP.SwapEffect = D3DSWAPEFFECT_DISCARD;
d_d3dPP.BackBufferFormat = D3DFMT_A8R8G8B8;

d_d3dPP.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;


so either back buffer height/width or refreshrate



------------------------------------------------------------
// TODO: Insert clever comment here.

[edited by - drowner on October 6, 2003 4:28:10 PM]

Share this post


Link to post
Share on other sites
Double check that d_winWidth and d_winHeight correspond to some supported resolution and that the back buffer format is supported.
Also, exactly how do you define CLEARSTRUCT()?
By the way, try setting backbuffer count manually.

-Nik

Share this post


Link to post
Share on other sites