I haven't tried it on the reference rasterizer but don't really care too as it runs SSSSOOO freakin' slow!
Ok here is my parameter init:
- Code: Select all
d3dmpp.Windowed = TRUE;
d3dmpp.FullScreen_PresentationInterval = D3DMPRESENT_INTERVAL_IMMEDIATE;
d3dmpp.SwapEffect = D3DMSWAPEFFECT_DISCARD;
d3dmpp.BackBufferFormat = D3DMFMT_UNKNOWN;
d3dmpp.EnableAutoDepthStencil = TRUE;
d3dmpp.AutoDepthStencilFormat = depthFormat;
6 lines; 0 keywds; 0 nums; 18 ops; 0 strs; 0 coms Syntactic Coloring v0.4 - Dan East
I have a small snippet of code that enumerates available depth formats for and sets depthformat to one of the available ones.
I've tested my framework code on the HTC Apache, HTC Touch, HTC Hermes and Motorola Q9. They all seem to like it except that the presentation interval needs to be set properly. All devices except the HTC Apache liked D3DMPRESENT_INTERVAL_ONE whereas the Apache insisted on D3DMPRESENT_INTERVAL_IMMEDIATE but I will add code to enumerate available options from the device caps.
None of the devices I've tested do full-screen exclusive which doesn't seem to be such a big deal at the moment.
Setting the back buffer format to D3DMFMT_R5G6B5 or D3DMFMT_UNKNOWN doesnt seem to make any difference either. I've read that all WinMobile 5+ devices are RGB565 anyways so this is probably a moot point.
I might post the whole frame work in time for others to learn and add onto.