PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Are there pixelformat constants?

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