Color formats
Hi.
I'm have a little problem with CreateOffscreenPlainSurface in 16-bit depth mode.
Surface cannot be created with format i'm selected (D3DFMT_R5G6B5).
Is this format incorrect ? What is the correct format (for device and surfaces) for 16-bit depth ?
Regards, Petr
Hi,
It depends on what your device supports, D3DFMT_R5G6B5 is valid, but there is also D3DFMT_A1R5G5B5 and D3DFMT_X1R5G5B5 for 16 bpp. You can use the IDirect3D9::CheckDeviceFormat() method to find out what formats are supported by your device.
It depends on what your device supports, D3DFMT_R5G6B5 is valid, but there is also D3DFMT_A1R5G5B5 and D3DFMT_X1R5G5B5 for 16 bpp. You can use the IDirect3D9::CheckDeviceFormat() method to find out what formats are supported by your device.
Quote:Original post by Aldenar
Hi,
It depends on what your device supports, D3DFMT_R5G6B5 is valid, but there is also D3DFMT_A1R5G5B5 and D3DFMT_X1R5G5B5 for 16 bpp. You can use the IDirect3D9::CheckDeviceFormat() method to find out what formats are supported by your device.
Yes ... D3DFMT_X1R5G5B5 works.
Thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement