Last change
on this file since 614 was
614,
checked in by rgrieder, 16 years ago
|
- curiously (…) under windows there is no difference between orxonox.h and Orxonox.h…
|
File size:
737 bytes
|
Rev | Line | |
---|
[576] | 1 | #include <string> |
---|
| 2 | |
---|
| 3 | #include "Model.h" |
---|
| 4 | #include "../core/CoreIncludes.h" |
---|
[614] | 5 | #include "../Orxonox.h" |
---|
[576] | 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 | |
---|
| 27 | if (xmlElem->Attribute("mesh")) |
---|
| 28 | { |
---|
| 29 | std::string src = xmlElem->Attribute("mesh"); |
---|
[589] | 30 | this->mesh_.setMesh(src); |
---|
| 31 | this->attachObject(this->mesh_.getEntity()); |
---|
[586] | 32 | } |
---|
| 33 | |
---|
[576] | 34 | COUT(4) << "Loader: Created model" << std::endl; |
---|
| 35 | } |
---|
| 36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.