Jump to content
  • Advertisement
Sign in to follow this  
PetrCBR

Color formats

This topic is 4994 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!