FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

how to paste a small images inside SIO2widget's SIO2image

2 posters

Go down

how to paste a small images inside SIO2widget's SIO2image Empty how to paste a small images inside SIO2widget's SIO2image

Post  littlesweb 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

Back to top Go down

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

Post  sio2interactive 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.
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Back to top

- Similar topics

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