Page 1 of 1

Are there pixelformat constants?

PostPosted: Feb 1, 2008 @ 4:30pm
by eugraphics
GetInfo() retuns a struct with a pixelformat integer. How can i tell if this is 565 or 555, etc? Are there constants defined for this somewhere?

Thank you

PostPosted: Feb 1, 2008 @ 6:57pm
by edge
Hi,

You can use the EDSP_ definitions to check for all the different pixelformats. See a list of them here: http://www.edgelib.com/index.php?node=1 ... dsp_true16

When locking the backbuffer you can expect EDSP_INDEXED8 (only for pc builds when specified specifically), EDSP_TRUE12, EDSP_TRUE16 or EDSP_TRUE32. Other colordepths are emulated.

PostPosted: Feb 1, 2008 @ 8:39pm
by eugraphics
Thanks.