Sign in to follow this  

Color formats

This topic is 4691 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. 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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 4691 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this