... set this to D3DFMT_ A8R8G8B8 for 3 2- bit surfaces. For more information,
see DirectX 9.0 C++ Documentation /DirectX Graphics/Direct3D C++
Reference/Enumerated Types/D3DFORMAT.
82
{
HRESULTr=0; ... standard, full-screen, 640x480, 3 2- bit application:
Listing 2. 7: Filling in the D3DPRESENT_PARAMETERS structure
D3DPRESENT_PARAMETERS d3dpp;
ZeroMemory( &d3dpp, sizeo...
... whole number that takes
up 2 bytes. In a little endian system, the bytes are stored with bits 0-7 representing the values 2
0
-2
7
and
bits 8-1 5 representing values 2
8
-2
15
. But the CPU in a ... endian system stores same value the other
way around with bits 0-7 representing values 2
8
-2
15
and bits 8-1 5 representing values 2
0
-2
7
.
29 7
}...