mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
43
deps/g3dlite/source/BumpMapPreprocess.cpp
vendored
Normal file
43
deps/g3dlite/source/BumpMapPreprocess.cpp
vendored
Normal file
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user