I am working on a project which requires a GUI, and it needs to be visible above all meshes (for example, since I don't have any of my own levels yet, I am using a Quake mesh). I am confused about how to do this - I have found something about the function bringToFront, but I am unsure of how to use it - it looks like it only works on siblings (i.e. one window in front of another, but not in front of the mesh). Would I have to parent the GUI Environment to a particular scene node (possibly the root scene node) and then bring the whole environment to the front, or am I on the completely wrong track? If anyone can show me how to do this it would be great.
This is what I tried (which seemed to only work on siblings (if at all - I have no other GUI at the moment)):
Code: Select all
window->getParent()->bringToFront(window);