Changeset 4374 in orxonox.OLD for orxonox/trunk/src/subprojects
- Timestamp:
- May 29, 2005, 11:24:12 AM (20 years ago)
- Location:
- orxonox/trunk/src/subprojects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/framework.cc
r4360 r4374 184 184 this->printHelp(); 185 185 break; 186 case SDLK_2: 187 for (int i = 0; i < 3; i++) 188 { 189 backgroundColor[i] += .1; 190 if (backgroundColor[i] > 1.0) 191 backgroundColor[i] = 1.0; 192 GraphicsEngine::setBackgroundColor(backgroundColor[0], backgroundColor[1], backgroundColor[2], backgroundColor[3]); 193 } 194 break; 195 case SDLK_1: 196 for (int i = 0; i < 3; i++) 197 { 198 backgroundColor[i] -= .1; 199 if (backgroundColor[i] < 0.0) 200 backgroundColor[i] = 0.0; 201 GraphicsEngine::setBackgroundColor(backgroundColor[0], backgroundColor[1], backgroundColor[2], backgroundColor[3]); 202 } 203 break; 186 204 } 187 205 break; … … 241 259 SDL_ShowCursor(2); 242 260 243 for (int i = 0; i < MOUSE_BUTTON_COUNT; i++)261 for (int i = 0; i < MOUSE_BUTTON_COUNT; i++) 244 262 mouseDown[i] = false; 263 for (int i = 0; i < 4; i++) 264 backgroundColor[i] = 0; 245 265 246 266 ResourceManager::getInstance()->setDataDir(DATA_DIRECTORY); … … 251 271 252 272 camera->setAbsCoor(Vector(10, 10, 10)); 273 253 274 } 254 275 … … 265 286 PRINT(0)(" Help for the frameWork\n"); 266 287 PRINT(0)("========================\n"); 267 PRINT(0)("h - print this Help\n");288 PRINT(0)("h - print this Help\n"); 268 289 PRINT(0)("a - zoom in\n"); 269 290 PRINT(0)("z - zoom out\n"); 270 291 PRINT(0)("r - reset camera position\n"); 292 PRINT(0)("1 - background color darker\n"); 293 PRINT(0)("2 - background color brighter\n"); 294 271 295 272 296 PRINT(0)("\n"); -
orxonox/trunk/src/subprojects/framework.h
r4349 r4374 26 26 27 27 int movement [4]; 28 28 float backgroundColor[4]; 29 29 30 Uint32 lastFrame; 30 31 Uint32 currFrame;
Note: See TracChangeset
for help on using the changeset viewer.