Rev | Line | |
---|
[576] | 1 | #include <string> |
---|
| 2 | |
---|
| 3 | #include "Model.h" |
---|
| 4 | #include "../core/CoreIncludes.h" |
---|
| 5 | #include "../orxonox.h" |
---|
| 6 | #include "../../tinyxml/tinyxml.h" |
---|
| 7 | #include "../../misc/Tokenizer.h" |
---|
| 8 | #include "../../misc/String2Number.h" |
---|
| 9 | |
---|
| 10 | namespace orxonox |
---|
| 11 | { |
---|
| 12 | CreateFactory(Model); |
---|
| 13 | |
---|
| 14 | Model::Model() |
---|
| 15 | { |
---|
| 16 | RegisterObject(Model); |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | Model::~Model() |
---|
| 20 | { |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | void Model::loadParams(TiXmlElement* xmlElem) |
---|
| 24 | { |
---|
[583] | 25 | WorldEntity::loadParams(xmlElem); |
---|
[576] | 26 | |
---|
[583] | 27 | std::cout << "10\n"; |
---|
[576] | 28 | if (xmlElem->Attribute("mesh")) |
---|
| 29 | { |
---|
[583] | 30 | std::cout << "11_1\n"; |
---|
[576] | 31 | std::string src = xmlElem->Attribute("mesh"); |
---|
[583] | 32 | std::cout << "11_2\n"; |
---|
[576] | 33 | std::cout << this->mesh_.getEntity() << std::endl; |
---|
| 34 | this->mesh_ = Mesh(src); |
---|
[583] | 35 | std::cout << "11_3\n"; |
---|
[576] | 36 | std::cout << this->mesh_.getEntity() << std::endl; |
---|
| 37 | this->attachObject(this->mesh_.getEntity()); |
---|
[583] | 38 | std::cout << "11_4\n"; |
---|
[576] | 39 | } |
---|
[583] | 40 | std::cout << "12\n"; |
---|
[576] | 41 | |
---|
| 42 | COUT(4) << "Loader: Created model" << std::endl; |
---|
| 43 | } |
---|
| 44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.