Render panel into bitmap

Posted By: XD1v0

Render panel into bitmap - 08/28/09 13:58

Hi, i have trouble with the panels, in my of project I decided to render all the panels in the texture, but here I am stuck, now I can not force the panel to respond on mouse events (pressing the button, move the slider ...)
But basically I know the solution to this problem, I could detect(by mouse position) every event by myself, but for this I need to know all the information about the panel:
-Number of buttons, sliders on the panel
-Position of each element of the panel
-Images size of all elements
-Pointers to function of button
So my question is how to get this info, if this impossible then how to force A7 react on panel event.
Posted By: jcl

Re: Render panel into bitmap - 08/28/09 14:15

Panels rendering onto texture can not react on mouse clicks because they don't know the mouse position relative to their target texture. Theoretically, this could be implemented, but it's not trivial.

At the moment, the solution is to use sprites for buttons on a 3D surface.
Posted By: XD1v0

Re: Render panel into bitmap - 08/28/09 16:50

Quote:
Panels rendering onto texture can not react on mouse clicks because they don't know the mouse position relative to their target texture.

I already understand this, but i want to know is possible to get info about elements of panel(something like pan_getbutton,pan_getdigits), this give me chance to detect events by myself =)
© 2024 lite-C Forums