• Advertisement
Sign in to follow this  

D3DFORMAT Format

This topic is 4597 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 want to draw my picture with 24bit pixels and chose to use D3DFMT_R8G8B8 when I create my texture, but my drawings are only in half of my texture. If I use D3DFMT_R5G6B5 it works fine. My backbuffer format is D3DFMT_D24X8 (had D3DFMT_D16, but changed it if that was the reason) I create a window size 512*512 pixels. Anyone knows whats wrong?

Share this post


Link to post
Share on other sites
Advertisement
I found out that because I use short to hold my pixels, 512*512 shorts aren't enough!! It is when I only use 16 bit pixels, since a short is 16 bit..

Sorry for the unimportant question ^..^

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement