diff options
author | Rat <none@none> | 2010-06-07 19:35:24 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-06-07 19:35:24 +0200 |
commit | e4e13c2bb8c691486ac717b206f166f33c8c531a (patch) | |
tree | a0ab601406c1396d41527a49392725c8179a6d8a /dep/src/g3dlite/constants.cpp | |
parent | 32546e22828e793e3881e1055acb72b6a044e331 (diff) |
removed 'dep' folder, no more needed
--HG--
branch : trunk
Diffstat (limited to 'dep/src/g3dlite/constants.cpp')
-rw-r--r-- | dep/src/g3dlite/constants.cpp | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/dep/src/g3dlite/constants.cpp b/dep/src/g3dlite/constants.cpp deleted file mode 100644 index 52cad3cd90b..00000000000 --- a/dep/src/g3dlite/constants.cpp +++ /dev/null @@ -1,82 +0,0 @@ -/** - @file constants.cpp - - @maintainer Morgan McGuire, http://graphics.cs.williams.edu - @created 2009-05-20 - @edited 2010-01-29 -*/ -#include "G3D/constants.h" -#include "G3D/Any.h" -#include "G3D/stringutils.h" - -namespace G3D { - -const std::string MirrorQuality::str[] = {"NONE", "STATIC_ENV", "DYNAMIC_PLANAR", "DYNAMIC_ENV", "BEST"}; -const MirrorQuality::Value MirrorQuality::enm[] = {MirrorQuality::NONE, MirrorQuality::STATIC_ENV, - MirrorQuality::DYNAMIC_PLANAR, MirrorQuality::DYNAMIC_ENV, MirrorQuality::BEST}; - -MirrorQuality::MirrorQuality(const class Any& any) { - *this = any; -} - - -MirrorQuality& MirrorQuality::operator=(const Any& any) { - const std::string& s = toUpper(any.string()); - - for (int i = 0; ! str[i].empty(); ++i) { - if (s == str[i]) { - value = enm[i]; - return *this; - } - } - - any.verify(false, "Unrecognized MirrorQuality constant"); - return *this; -} - - -MirrorQuality::operator Any() const { - return toString(); -} - - -const std::string& MirrorQuality::toString() const { - return str[value]; -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -const std::string RefractionQuality::str[] = {"NONE", "STATIC_ENV", "DYNAMIC_FLAT", "DYNAMIC_FLAT_MULTILAYER", "DYNAMIC_ENV", "BEST"}; -const RefractionQuality::Value RefractionQuality::enm[] = {RefractionQuality::NONE, RefractionQuality::STATIC_ENV, - RefractionQuality::DYNAMIC_FLAT, RefractionQuality::DYNAMIC_FLAT_MULTILAYER, RefractionQuality::DYNAMIC_ENV, RefractionQuality::BEST}; - -RefractionQuality::RefractionQuality(const class Any& any) { - *this = any; -} - - -RefractionQuality& RefractionQuality::operator=(const Any& any) { - const std::string& s = toUpper(any.string()); - - for (int i = 0; ! str[i].empty(); ++i) { - if (s == str[i]) { - value = enm[i]; - return *this; - } - } - - any.verify(false, "Unrecognized RefractionQuality constant"); - return *this; -} - - -RefractionQuality::operator Any() const { - return toString(); -} - - -const std::string& RefractionQuality::toString() const { - return str[value]; -} - -} // G3D |