This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Are there pixelformat constants?


Are there pixelformat constants?

Postby eugraphics » Feb 1, 2008 @ 4:30pm

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
eugraphics
pm Member
 
Posts: 56
Joined: Dec 3, 2006 @ 6:56pm


Postby edge » Feb 1, 2008 @ 6:57pm

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby eugraphics » Feb 1, 2008 @ 8:39pm

Thanks.
eugraphics
pm Member
 
Posts: 56
Joined: Dec 3, 2006 @ 6:56pm


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron