Jump to content
  • Advertisement

Archived

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

The C modest god

Direct3D beginner problem

This topic is 5369 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
When requesting full-screen operation, you must have a well-defined backbuffer format as well as width and height. Other values can be left as defaults.

-Nik

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!