librocket GUI support

Hi again all,

I have a sort of suggestion/feature request I suppose, it’s however specifically relate to rocket, sso instead of posting it under Feature Request I thought I’d post it here.

libRocket allows C++ users to inherit from Rocket::Core::Element, and then define onUpdate/onRender calls for that specified element, and then it will be properly drawn in order, with respect to other elements.

For an example, a minimap, or some sort of 3d character drawn “onto” an libRocket window, using your own custom element tag.

See this libRocket thread on their forums here

Also see ElementGame.cpp in libRocket/Samples/pyinvaders/rc/ElementGame.cpp

This is an example of such usage, and I can see this being indeed very useful.

I was thinking of some sort of “rocketElementNode” or something of the sort, which could have a tag, and inherit from Rocket::Core::Element, and then any panda3d geom’s etc under that node would be drawn in the onRender/onUpdate callback or however that works

This is just an suggestion, and I’m more than aware that this requires C++ work that perhaps nobody is willing or knowledgeable enough to do.

Just an idea,
~powerpup118