Line | |
---|
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 | { |
---|
25 | WorldEntity::loadParams(xmlElem); |
---|
26 | |
---|
27 | std::cout << "10\n"; |
---|
28 | if (xmlElem->Attribute("mesh")) |
---|
29 | { |
---|
30 | std::cout << "11_1\n"; |
---|
31 | std::string src = xmlElem->Attribute("mesh"); |
---|
32 | std::cout << "11_2\n"; |
---|
33 | std::cout << this->mesh_.getEntity() << std::endl; |
---|
34 | this->mesh_ = Mesh(src); |
---|
35 | std::cout << "11_3\n"; |
---|
36 | std::cout << this->mesh_.getEntity() << std::endl; |
---|
37 | this->attachObject(this->mesh_.getEntity()); |
---|
38 | std::cout << "11_4\n"; |
---|
39 | } |
---|
40 | std::cout << "12\n"; |
---|
41 | |
---|
42 | COUT(4) << "Loader: Created model" << std::endl; |
---|
43 | } |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.