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

DrawFont alternative for RGBA surfaces


DrawFont alternative for RGBA surfaces

Postby Nacho84 » Oct 25, 2009 @ 10:06pm

Nacho84
pm Member
 
Posts: 82
Joined: Dec 15, 2007 @ 12:00pm
Location: Buenos Aires, Argentina


Postby edge » Oct 26, 2009 @ 9:35am

Hi Nacho,

Unfortunately, there is no support for text drawing on RGBA surfaces. The only way to handle this is to create your own font renderer and locking surfaces.
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 Nacho84 » Oct 27, 2009 @ 4:18am

Hi edge,

Thanks for your prompt reply. Just for curiosity's sake: why isn't this feature included in edgelib? I mean, if it's already implemented for RGB surfaces, isn't it the same algorithm for RGBA ones?

Cheers,

--Nacho
Nacho84
pm Member
 
Posts: 82
Joined: Dec 15, 2007 @ 12:00pm
Location: Buenos Aires, Argentina


Postby edge » Oct 28, 2009 @ 9:16am

Hi Nacho,

The main difference in blitting RGBA to RGBA would be the included alpha channel. To handle this, two options would be necessary:
- Blitting straight onto the RGBA surface, including the alpha channel (a simple memory copy)
- Read the alpha channel and 'blend them' somehow onto the destination surface
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


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