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 Do 2D Layers (e.g. z-index)?

4 posters

Go down

How To Do 2D Layers (e.g. z-index)? Empty How To Do 2D Layers (e.g. z-index)?

Post  diehard Mon Jan 26, 2009 3:35 pm

How do you do layering (like z-index) in sio2WindowEnter2D? Because, I'm trying to make a menu with couple things (layered) in the background, all 2D.

By the way, I'm new to SIO2 and OpenGL ES. Thanks for your help.

diehard

Posts : 6
Join date : 2008-10-03

http://www.creativecrew.org

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  meteors Mon Jan 26, 2009 4:38 pm

Your widgets will be rendered in the order you call you call them. Pretty simple...



-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  diehard Mon Jan 26, 2009 9:04 pm

Thanks. I'll give it a try.

By the way, why did you say "widgets"? Is that a SIO2 terminology?

diehard

Posts : 6
Join date : 2008-10-03

http://www.creativecrew.org

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  meteors Tue Jan 27, 2009 8:12 am

Yes, I was referring to SIO2widget. You will most often use this to display 2D pixmaps.


Best,
-joshua
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  sio2interactive Tue Jan 27, 2009 5:00 pm

I do believe that the current solution to draw the widget in the order that they appear is ok, but if needed I can add an z-index to every widget and sort them based on this index... do you guys think its necessary or you like the current way the widget are render?

Cheers,
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  uprise78 Sun Feb 01, 2009 12:09 pm

I think the current way is fine. Sorting can be handled by the logic that is used to display the widgets.

uprise78

Posts : 228
Join date : 2008-10-31

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  sio2interactive Sun Feb 01, 2009 3:57 pm

totally agree, instead it would force a mechanism that might not be appropriate for any cases, as widget rendering can be quite complex as the UI grow...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

How To Do 2D Layers (e.g. z-index)? Empty Re: How To Do 2D Layers (e.g. z-index)?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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