diff options
| author | Japa | 2010-05-11 10:27:16 +0000 |
|---|---|---|
| committer | Japa | 2010-05-11 10:27:16 +0000 |
| commit | d58221ab33d38ca4b69d6b5110bd6ede429c62a3 (patch) | |
| tree | 25b0461ac227b301f42accd59a688ea38ae0c95c /Config.cpp | |
| parent | 56f06af74ff634ee07f2e45810ea2f6ed102acbc (diff) | |
| download | stonesense-d58221ab33d38ca4b69d6b5110bd6ede429c62a3.tar.gz stonesense-d58221ab33d38ca4b69d6b5110bd6ede429c62a3.tar.bz2 stonesense-d58221ab33d38ca4b69d6b5110bd6ede429c62a3.tar.xz | |
user can now choose render mode.
Diffstat (limited to 'Config.cpp')
| -rw-r--r-- | Config.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -76,7 +76,7 @@ void parseConfigLine( string line ){ if( line.find("[SEGMENTSIZE_Z") != -1){ int value = parseIntFromLine( "SEGMENTSIZE_Z", line ); if(value < 1) value = DEFAULT_SEGMENTSIZE_Z; - if(value > 255) value = 30; + if(value > 255) value = 255; config.segmentSize.z = value; } @@ -544,9 +544,11 @@ void parseConfigLine( string line ){ if(value < 0) value = 0; config.colors.white_b = value; } - if( line.find("[USE_OPENGL") != -1){ - string result = parseStrFromLine( "USE_OPENGL", line ); - config.opengl = (result == "YES"); + if( line.find("[RENDERER") != -1){ + string result = parseStrFromLine( "RENDERER", line ); + config.opengl = (result == "OPENGL"); + config.software = (result == "SOFTWARE"); + config.directX = (result == "DIRECTX"); } } |
