gz/rendering/ogre2/Ogre2SelectionBuffer.hh
Go to the documentation of this file.
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: gz/rendering/ogre2/Ogre2SelectionBuffer.hh:48
bool ExecuteQuery(const int _x, const int _y, Ogre::Item *&_item, math::Vector3d &_point)
Perform selection operation and get ogre item and point of intersection.
Ogre::Item * OnSelectionClick(const int _x, const int _y)
Handle on mouse click.
void SetDimensions(unsigned int _width, unsigned int _height)
Set dimension of the selection buffer.
void Update()
Call this to update the selection buffer contents.
Ogre2SelectionBuffer(const std::string &_cameraName, Ogre2ScenePtr _scene, unsigned int _width, unsigned int _height)
Constructor.
Definition: gz/rendering/ogre/OgreCamera.hh:28