diff options
author | click <none@none> | 2010-08-27 01:52:05 +0200 |
---|---|---|
committer | click <none@none> | 2010-08-27 01:52:05 +0200 |
commit | 7686d6ee57038e848f75130563fc78c1adebc1a2 (patch) | |
tree | 258a7a6db03e3479a0219ace8cfc3ec3ba53a1be /dep/g3dlite/source/BumpMapPreprocess.cpp | |
parent | 1d3deae555f0ec523d77875bd5a307ab9bd19742 (diff) |
Core/Dependency: Upgrade G3d-library to v8.0-release (patched version!)
Note: Due to issues with G3D (normally requiring X11 and the ZIP-library),
the sourcetree version contains a modified version. The applied patch is
commited to the repository for future reference.
--HG--
branch : trunk
Diffstat (limited to 'dep/g3dlite/source/BumpMapPreprocess.cpp')
-rw-r--r-- | dep/g3dlite/source/BumpMapPreprocess.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dep/g3dlite/source/BumpMapPreprocess.cpp b/dep/g3dlite/source/BumpMapPreprocess.cpp new file mode 100644 index 00000000000..20281caf8cb --- /dev/null +++ b/dep/g3dlite/source/BumpMapPreprocess.cpp @@ -0,0 +1,43 @@ +/** + \file BumpMapPreprocess.cpp + + \maintainer Morgan McGuire, http://graphics.cs.williams.edu + + \created 2010-01-28 + \edited 2010-01-28 + + Copyright 2000-2010, Morgan McGuire. + All rights reserved. + */ +#include "G3D/BumpMapPreprocess.h" +#include "G3D/Any.h" +#include "G3D/stringutils.h" + +namespace G3D { + +BumpMapPreprocess::BumpMapPreprocess(const Any& any) { + *this = BumpMapPreprocess(); + for (Any::AnyTable::Iterator it = any.table().begin(); it.hasMore(); ++it) { + const std::string& key = toLower(it->key); + if (key == "lowpassfilter") { + lowPassFilter = it->value; + } else if (key == "zextentpixels") { + zExtentPixels = it->value; + } else if (key == "scalezbynz") { + scaleZByNz = it->value; + } else { + any.verify(false, "Illegal key: " + it->key); + } + } +} + + +BumpMapPreprocess::operator Any() const { + Any any(Any::TABLE, "BumpMapPreprocess"); + any["lowPassFilter"] = lowPassFilter; + any["zExtentPixels"] = zExtentPixels; + any["scaleZByNz"] = scaleZByNz; + return any; +} + +} |