Jump to content
  • Advertisement
Sign in to follow this  

I can't believe - framework (wrapper?) doesn't work

This topic is 5223 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

Hi... for many times I've used MS framework (done by application wizard )... few days ago, I've decided of make my personal, fast and slim wrapper... but it doesn't work... I can't understood because... I've used the same parameters.. maybe I've needed of a long holiday? this is the problem:
that give me a D3DERR_INVALIDCALL.. if I set debug output level to max, I get Direct3D9: (ERROR) :Invalid sample type specified. CheckDeviceMultiSampleType fails. why?? D3DADAPTER_DEFAULT is a default parameter.... D3DDEVTYPE_HAL is supported by my video board (ATI RADEON9600PRO) m_hWnd is done in this way
WNDCLASS wndClass = { 0, WndProc, 0, 0, hInstance, LoadIcon( hInstance, MAKEINTRESOURCE(IDI_MAIN_ICON) ), LoadCursor( NULL, IDC_ARROW ), (HBRUSH)GetStockObject(BLACK_BRUSH), NULL, _T("SendellGame") };
and works fine because that return a no null value; D3DCREATE_HARDWARE_VERTEXPROCESSING is ok true? m_d3dpp (maybe where there is an error) is set in this way:
m_pD3D->GetAdapterDisplayMode( D3DADAPTER_DEFAULT, &d3ddm ); m_d3dpp.Windowed = m_bWindowed; m_d3dpp.BackBufferCount = 1; m_d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; m_d3dpp.hDeviceWindow = m_hWnd; m_d3dpp.BackBufferFormat = d3ddm.Format; m_d3dpp.EnableAutoDepthStencil = TRUE; m_d3dpp.AutoDepthStencilFormat = D3DFMT_D16; m_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // no VSYNC m_d3dpp.FullScreen_RefreshRateInHz = d3ddm.RefreshRate;
m_pd3dDevice is ok... of course.. it is an output value... You can help me?? I think that only m_d3dpp can has an error, because is the only parameter that is not done by a function.. so I don't know if is right or not... the others parameters are default DX value or function return value that give me a right value ( I know it cause DX tell me that!) Ok this is all... sorry for my english... I wait yours advices.. bye bye :) :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!