how to paste a small images inside SIO2widget's SIO2image
2 posters
how to paste a small images inside SIO2widget's SIO2image
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
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
Re: how to paste a small images inside SIO2widget's SIO2image
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.
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.
Similar topics
» SIO2widgets with transparent backgrounds
» Load SIO2image from CGImage/UIImage
» A Small Problem
» physics object inside another physics object
» Loading PNG images
» Load SIO2image from CGImage/UIImage
» A Small Problem
» physics object inside another physics object
» Loading PNG images
Permissions in this forum:
You cannot reply to topics in this forum