Changeset 2963 for code/trunk/src/orxonox/gui
- Timestamp:
- May 10, 2009, 11:41:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gui/GUIManager.cc
r2957 r2963 242 242 /** 243 243 @brief 244 Registers a GUIOverlay with the GUIManager so that the GUIOverlay can be accessed by it's name through the GUIManager. 245 @param name 246 The name of the GUI. 247 @param overlay 248 A pointer to the GUIOverlay of the GUI. 249 @return 250 Returns false if the Overlay was already present. 251 */ 252 bool GUIManager::registerOverlay(std::string name, GUIOverlay* overlay) 253 { 254 return (this->guiOverlays_.insert(std::pair<std::string, GUIOverlay*>(name, overlay))).second; 255 } 256 257 /** 258 @brief 259 Get the GUIOverlay of the GUI with the given name. 260 @param name 261 The name of the GUI. 262 @return 263 Returns a pointer to the GUIOverlay. 264 */ 265 GUIOverlay* GUIManager::getOverlay(std::string name) 266 { 267 return (this->guiOverlays_.find(name))->second; 268 } 269 270 /** 271 @brief 244 272 Tells the GUIManager which SceneManager to use 245 273 @param camera
Note: See TracChangeset
for help on using the changeset viewer.