How To Do 2D Layers (e.g. z-index)?
4 posters
How To Do 2D Layers (e.g. z-index)?
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.
By the way, I'm new to SIO2 and OpenGL ES. Thanks for your help.
Re: How To Do 2D Layers (e.g. z-index)?
Your widgets will be rendered in the order you call you call them. Pretty simple...
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: How To Do 2D Layers (e.g. z-index)?
Thanks. I'll give it a try.
By the way, why did you say "widgets"? Is that a SIO2 terminology?
By the way, why did you say "widgets"? Is that a SIO2 terminology?
Re: How To Do 2D Layers (e.g. z-index)?
Yes, I was referring to SIO2widget. You will most often use this to display 2D pixmaps.
Best,
-joshua
Best,
-joshua
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: How To Do 2D Layers (e.g. z-index)?
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,
Cheers,
Re: How To Do 2D Layers (e.g. z-index)?
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
Re: How To Do 2D Layers (e.g. z-index)?
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...
Permissions in this forum:
You cannot reply to topics in this forum