diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-10 15:44:21 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-10 15:44:21 +0100 |
commit | bc859c4c597f106d40f07380bf255f180d565577 (patch) | |
tree | 177b7a904a128341f033251fd6a7011fa5644439 /src/graphics/opengl/gldevice.h | |
parent | 1f565fdf389542eb0296bf7f685716200c559538 (diff) | |
download | colobot-bc859c4c597f106d40f07380bf255f180d565577.tar.gz colobot-bc859c4c597f106d40f07380bf255f180d565577.tar.bz2 colobot-bc859c4c597f106d40f07380bf255f180d565577.zip |
VBO override option; argv parsing using getopt
* added -vbo option to override autodetection of OpenGL VBO extension
* refactored argument parsing to use getopt()
* fixed failing UTs
Diffstat (limited to 'src/graphics/opengl/gldevice.h')
-rw-r--r-- | src/graphics/opengl/gldevice.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h index 7137671..fe3f2a1 100644 --- a/src/graphics/opengl/gldevice.h +++ b/src/graphics/opengl/gldevice.h @@ -34,6 +34,17 @@ namespace Gfx { /** + \enum VBOMode + \brief VBO autodetect/override + */ +enum VBOMode +{ + VBO_MODE_ENABLE, //! < override: enable + VBO_MODE_DISABLE, //! < override: disable + VBO_MODE_AUTO //! < autodetect +}; + +/** \struct GLDeviceConfig \brief Additional config with OpenGL-specific settings */ struct GLDeviceConfig : public DeviceConfig @@ -52,6 +63,9 @@ struct GLDeviceConfig : public DeviceConfig //! Force hardware acceleration (video mode set will fail on lack of hw accel) bool hardwareAccel; + //! VBO override/autodetect + VBOMode vboMode; + //! Constructor calls LoadDefaults() GLDeviceConfig(); |