Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

OpenGL - Replacement for BltFast with EFX_OPACITY?


OpenGL - Replacement for BltFast with EFX_OPACITY?

Postby Nacho84 » Mar 5, 2009 @ 4:22am

Hi! Since I'm migrating my rendering code to OpenGL ES for iPhone, I need to change the calls to the methods that belong to the E2DSurface "buffer" (the one from ecd.dsp->buffer) so that they make use of ClassEDisplay directly.

The only function calls I haven't been able to port are the ones that make use of the "flags" and "property" parameters from E2DSurface::BltFast (for example, in those cases where I need to blit an image with a certain opacity by using the EFX_OPACITY flag). How can I write equivalent code for a semi-transparent blit when using OpenGL?

Thanks for your reply,

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


Postby edge » Mar 5, 2009 @ 8:26am

Hi Nacho,

Use ClassEDisplay :: SetShading with E3D_TEXTURE and EFX_ filters before calling BltFast. This will apply the filter while blitting. The property value of SetShading works similar to the property value of BltFast you've been using before.
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 » Mar 5, 2009 @ 12:45pm

Great, it's working like a charm on iPhone. Thanks for your reply!

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


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