Derniers réglages

This commit is contained in:
Georges Dupéron 2012-01-20 15:36:03 +01:00
parent b3e0b2bfac
commit 3f038da4f8
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
const unsigned int Couleurs::fog = mix(cielHaut, cielBas, 0.5);
const float Dimensions::splitFactor = 7.f;
const float Dimensions::mergeFactor = 8.f;
const float Dimensions::splitFactor = 4.f;
const float Dimensions::mergeFactor = 4.5f;
const float Dimensions::frontFrustum = 1.f;
const float Dimensions::backFrustum = 4000 * 100; // 4km

View File

@ -280,6 +280,7 @@ void Camera::keyboard(const SDL_KeyboardEvent &eventKey) {
pageDown = (eventKey.type == SDL_KEYDOWN);
break;
case SDLK_ESCAPE:
std::cout << std::endl;
exit(0);
break;
case SDLK_KP0:
@ -297,6 +298,7 @@ void Camera::keyboard(const SDL_KeyboardEvent &eventKey) {
default :
switch(SDL_GetKeyName(eventKey.keysym.sym)[0]) {
case 'q':
std::cout << std::endl;
exit(0);
break;
case 'a' :
@ -439,6 +441,7 @@ int Camera::takeScreenshot(const char * filename) {
finalpicture = flipSurface(picture);
if (SDL_SaveBMP(finalpicture, filename)) {
std::cout << std::endl;
exit(1);
}
SDL_FreeSurface(finalpicture);