Original Post
I''m completely flabbergasted as to setting up DX Graphics and picking the proper D3DFORMAT.
The DX SDK tells of display mode formats and back buffer formats. Where do I set the display format? AFAIK, the only format you get to set when creating the device is the back buffer format, in the present parameters. And logic dictates to me that this is the same thing as the display format.
But a function like IDirect3D8::CheckDeviceType needs -two- formats: A back buffer format and a display format. So apparently they are two different things. So where do you set the display format? In what situations it different than the backbuffer format? And if they''re always the same... Why the two different arguments for CheckDeviceType?
Also, the SDK speaks of render targets without properly explaining what they are. I assume they are surfaces that can be rendered to? Like the back buffer?
If that is true, then what about this statement in the SDK help:
"Render target formats are restricted to D3DFMT_X1R5G5B5, D3DFMT_R5G6B5, D3DFMT_X8R8G8B8, and D3DFMT_A8R8G8B8."
So does that mean you can only set the back buffer to one of those four formats? Is is impossible to do Alpha blending in 16-bit mode then? And what are all those other formats (like R5G5B5 or A1R5G5B5) for, if you can''t use them as back buffers?
Questions, questions! In short... What, exactly, falls under the category ''render targets''? Where do you set the display format and when would it be different than the back buffer format? And if they''re the same, why does CheckDeviceType ask for both the display -and- the back buffer format?