how to paste a small images inside SIO2widget's SIO2image

View previous topic View next topic Go down

how to paste a small images inside SIO2widget's SIO2image

Post  littlesweb on Wed Jul 15, 2009 2:49 am

Hi:

I use SIO2widget to display one image as part of user interface.

...
uiWidget->_SIO2material->_SIO2image[ SIO2_MATERIAL_CHANNEL0 ] = BGImages[fortune_type * IMG_COUNT];
sio2WidgetRender( uiWidget, sio2->_SIO2window, 1 );
...

Then, the iPhone display the image loaded in BGImages[fortune_type * IMG_COUNT].

On this image, I also want to paste a small image such as arrow, then how can I do?

Thanks

littlesweb

Posts : 3
Join date : 2009-05-25

View user profile

Back to top Go down

Re: how to paste a small images inside SIO2widget's SIO2image

Post  sio2interactive on Wed Jul 15, 2009 6:09 am

1. Create another image with that arrow and swap them dynamically.

2. Directly access the pixels and draw on the image in code.

3. Use multi texture to combine/modulate a second image on the first one using the second channel of the material.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum