Changeset 11071 for code/trunk/src/modules/designtools
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/designtools/CreateStars.h
r9667 r11071 43 43 void createBillboards(); 44 44 45 v oid XMLPort(Element& xmlelement, XMLPort::Mode mode);45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setNumStars(int num) { -
code/trunk/src/modules/designtools/ScreenshotManager.cc
r10624 r11071 69 69 Constructor. 70 70 */ 71 ScreenshotManager::ScreenshotManager() : finalPicturePB_( NULL), data_(NULL)71 ScreenshotManager::ScreenshotManager() : finalPicturePB_(nullptr), data_(nullptr) 72 72 { 73 73 RegisterObject(ScreenshotManager); … … 90 90 void ScreenshotManager::cleanup(void) 91 91 { 92 if(this->finalPicturePB_ != NULL)92 if(this->finalPicturePB_ != nullptr) 93 93 { 94 94 delete this->finalPicturePB_; 95 this->finalPicturePB_ = NULL;96 } 97 if(this->data_ != NULL)95 this->finalPicturePB_ = nullptr; 96 } 97 if(this->data_ != nullptr) 98 98 { 99 99 delete this->data_; 100 this->data_ = NULL;100 this->data_ = nullptr; 101 101 } 102 102 if(!this->tempTexture_.isNull()) … … 151 151 // Get the screenshot. 152 152 Ogre::Image* finalImage = getScreenshot(); 153 if(finalImage != NULL)153 if(finalImage != nullptr) 154 154 { 155 155 // Save it. … … 173 173 Ogre::Image* ScreenshotManager::getScreenshot() 174 174 { 175 if(CameraManager::getInstance().getActiveCamera() == NULL)176 return NULL;175 if(CameraManager::getInstance().getActiveCamera() == nullptr ) 176 return nullptr; 177 177 return this->getScreenshot(CameraManager::getInstance().getActiveCamera()->getOgreCamera()); 178 178 } … … 189 189 Ogre::Image* ScreenshotManager::getScreenshot(Ogre::Camera* camera) 190 190 { 191 if(camera == NULL)192 return NULL;191 if(camera == nullptr) 192 return nullptr; 193 193 194 194 // Update the internal parameters. -
code/trunk/src/modules/designtools/SkyboxGenerator.cc
r10624 r11071 82 82 this->faceCounter_ = 0; 83 83 84 this->names_. push_back("fr");85 this->names_. push_back("lf");86 this->names_. push_back("bk");87 this->names_. push_back("rt");88 this->names_. push_back("up");89 this->names_. push_back("dn");90 91 this->rotations_. push_back(std::pair<int, int>(90, 0));92 this->rotations_. push_back(std::pair<int, int>(90, 0));93 this->rotations_. push_back(std::pair<int, int>(90, 0));94 this->rotations_. push_back(std::pair<int, int>(90, 90));95 this->rotations_. push_back(std::pair<int, int>(0, 180));96 this->rotations_. push_back(std::pair<int, int>(0, 90));84 this->names_.emplace_back("fr"); 85 this->names_.emplace_back("lf"); 86 this->names_.emplace_back("bk"); 87 this->names_.emplace_back("rt"); 88 this->names_.emplace_back("up"); 89 this->names_.emplace_back("dn"); 90 91 this->rotations_.emplace_back(90, 0); 92 this->rotations_.emplace_back(90, 0); 93 this->rotations_.emplace_back(90, 0); 94 this->rotations_.emplace_back(90, 90); 95 this->rotations_.emplace_back(0, 180); 96 this->rotations_.emplace_back(0, 90); 97 97 } 98 98 … … 146 146 } 147 147 148 ControllableEntity* entity = NULL;149 if(HumanController::getLocalControllerSingleton() != NULL && HumanController::getLocalControllerSingleton()->getControllableEntity() != NULL)148 ControllableEntity* entity = nullptr; 149 if(HumanController::getLocalControllerSingleton() != nullptr && HumanController::getLocalControllerSingleton()->getControllableEntity() != nullptr) 150 150 entity = HumanController::getLocalControllerSingleton()->getControllableEntity(); 151 151 else -
code/trunk/src/modules/designtools/SkyboxGenerator.h
r9667 r11071 65 65 SkyboxGenerator(); 66 66 virtual ~SkyboxGenerator(); 67 v oid tick(float dt); // This is where the skybox generation happens.67 virtual void tick(float dt) override; // This is where the skybox generation happens. 68 68 static void createSkybox(void); // Generate the 6 faces of a skybox. 69 69 void setConfigValues(void); // Sets some config values. … … 106 106 107 107 std::vector<std::string> names_; //!< The names of the image files for the skybox faces to be generated. 108 std::vector< std::pair<int, int> 108 std::vector< std::pair<int, int>> rotations_; //!< The rotation in yaw an pitch direction that is applied to the camera after a specific face has been generated. 109 109 110 110 // Storage variables
Note: See TracChangeset
for help on using the changeset viewer.