Jump to content
  • Advertisement
Sign in to follow this  
majak

D3DFORMAT Format

This topic is 4813 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
×

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!