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

View previous topic View next topic Go down

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

Post  diehard on 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

View user profile http://www.creativecrew.org

Back to top Go down

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

Post  meteors on Mon Jan 26, 2009 4:38 pm

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



-j
avatar
meteors

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

View user profile

Back to top Go down

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

Post  diehard on 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

View user profile http://www.creativecrew.org

Back to top Go down

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

Post  meteors on 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
avatar
meteors

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

View user profile

Back to top Go down

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

Post  sio2interactive on 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,
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  uprise78 on 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

View user profile

Back to top Go down

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

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

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  Sponsored content


Sponsored content


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