diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-12-14 21:30:35 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-12-14 21:30:35 +0100 |
commit | 4811defca2eeea69e40346be6b1647f276db8c76 (patch) | |
tree | 52204202603817d09d93ed8a863b69f93ada74b2 /src/app/app.cpp | |
parent | 39ac36efda1f7c7b446886cf2508518f06e132ba (diff) | |
download | colobot-4811defca2eeea69e40346be6b1647f276db8c76.tar.gz colobot-4811defca2eeea69e40346be6b1647f276db8c76.tar.bz2 colobot-4811defca2eeea69e40346be6b1647f276db8c76.zip |
Static objects using OpenGL VBOs and display lists
Diffstat (limited to 'src/app/app.cpp')
-rw-r--r-- | src/app/app.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 823bc77..57a827d 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -142,6 +142,8 @@ CApplication::CApplication() m_lowCPU = true; + m_useVbo = false; + for (int i = 0; i < DIR_MAX; ++i) m_dataDirs[i] = nullptr; @@ -243,6 +245,10 @@ ParseArgsStatus CApplication::ParseArguments(int argc, char *argv[]) { SetDebugMode(true); } + else if (arg == "-vbo") + { + m_useVbo = true; + } else if (arg == "-loglevel") { waitLogLevel = true; @@ -262,6 +268,7 @@ ParseArgsStatus CApplication::ParseArguments(int argc, char *argv[]) GetLogger()->Message("\n"); GetLogger()->Message("List of available options:\n"); GetLogger()->Message(" -help this help\n"); + GetLogger()->Message(" -vbo enable OpenGL VBOs\n"); GetLogger()->Message(" -datadir path set custom data directory path\n"); GetLogger()->Message(" -debug enable debug mode (more info printed in logs)\n"); GetLogger()->Message(" -loglevel level set log level to level (one of: trace, debug, info, warn, error, none)\n"); @@ -425,6 +432,8 @@ bool CApplication::Create() return false; } + static_cast<Gfx::CGLDevice*>(m_device)->SetUseVbo(m_useVbo); + // Create the 3D engine m_engine = new Gfx::CEngine(m_iMan, this); |