D3DFORMAT Format

Started by
0 comments, last by majak 18 years, 9 months ago
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?
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 ^..^

This topic is closed to new replies.

Advertisement