Sign in to follow this  
majak

D3DFORMAT Format

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
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

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