How to draw pictures of some of the region?
4 posters
How to draw pictures of some of the region?
int SIO2 Engine,How to draw pictures of some of the region?
thanks.
thanks.
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: How to draw pictures of some of the region?
sio2interactive wrote:check SIO2widget and tutorial07
in my demo. I set up a picture of the drawing area. My picture size is 512X512.
_SIO2widget->area->x = 100;
_SIO2widget->area->y = 200;
sio2TransformBindMatrix( _SIO2widget->_SIO2transform );
sio2WidgetRender( _SIO2widget, sio2->_SIO2window, 1 );
but no change. why? Could you help me?
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: How to draw pictures of some of the region?
I do not know what is orthographic mode.sio2interactive wrote:Are you in orthographic mode?
Could you tell me what? Could you tell me what that mode?
What is the meaning of this?
sio2WindowEnter2D( sio2->_SIO2window,-1.0f, 1.0f );
{
sio2WindowEnterLandscape2D( sio2->_SIO2window );
{
DrawPicture();/////////
}
sio2WindowLeaveLandscape2D( sio2->_SIO2window );
}
sio2WindowLeave2D();
If it is。I have set up. but it does not work.
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: How to draw pictures of some of the region?
Have you called sio2WidgetInit to initialize the widget system?
Re: How to draw pictures of some of the region?
sio2interactive wrote:Have you called sio2WidgetInit to initialize the widget system?
Yes I had.
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: How to draw pictures of some of the region?
LuisLee wrote:sio2interactive wrote:check SIO2widget and tutorial07
in my demo. I set up a picture of the drawing area. My picture size is 512X512.
_SIO2widget->area->x = 100;
_SIO2widget->area->y = 200;
sio2TransformBindMatrix( _SIO2widget->_SIO2transform );
sio2WidgetRender( _SIO2widget, sio2->_SIO2window, 1 );
but no change. why? Could you help me?
need
_SIO2widget->_SIO2transform->scl->x = _SIO2image->width;
_SIO2widget->_SIO2transform->scl->y = _SIO2image->height;
Re: How to draw pictures of some of the region?
Thank you very much!
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: How to draw pictures of some of the region?
- Code:
SIO2stream* widgetStream = sio2StreamOpen("circle0.png", 1);
if( widgetStream )
{
SIO2image* widgetImage = sio2ImageInit( "default" );
{
sio2ImageLoad( widgetImage, widgetStream );
when I use default16x16.tga from tutorial07 - without problems.
Is it problem with png? Am i have to use tga?
alexanderlonsky- Posts : 24
Join date : 2009-06-11
Re: How to draw pictures of some of the region?
Make sure you disable png compression within Xcode...
Re: How to draw pictures of some of the region?
thanks! it really helped!
alexanderlonsky- Posts : 24
Join date : 2009-06-11
Similar topics
» How use SIO2widget draw HP Bar?
» Increase hit region of an object
» 3d scene draw a 2d image.
» Enabling Bullet Debug Draw (Code included)
» playback 12 pictures for animation effect
» Increase hit region of an object
» 3d scene draw a 2d image.
» Enabling Bullet Debug Draw (Code included)
» playback 12 pictures for animation effect
Permissions in this forum:
You cannot reply to topics in this forum