source:
code/branches/FICN/src/orxonox/tools/Mesh.h
@
843
| Last change on this file since 843 was 748, checked in by landauf, 18 years ago | |
|---|---|
| File size: 637 bytes | |
| Rev | Line | |
|---|---|---|
| [673] | 1 | #ifndef _Mesh_H__ |
| 2 | #define _Mesh_H__ | |
| 3 | ||
| [715] | 4 | #include <string> |
| 5 | ||
| [708] | 6 | #include <OgreEntity.h> |
| [576] | 7 | |
| [708] | 8 | #include "../OrxonoxPrereqs.h" |
| [576] | 9 | |
| 10 | namespace orxonox | |
| 11 | { | |
| [729] | 12 | class _OrxonoxExport Mesh |
| [576] | 13 | { |
| 14 | public: | |
| 15 | Mesh(); | |
| 16 | ~Mesh(); | |
| [715] | 17 | void setMesh(const std::string& file); |
| [589] | 18 | |
| [576] | 19 | inline Ogre::Entity* getEntity() |
| 20 | { return this->entity_; } | |
| 21 | ||
| [715] | 22 | inline const std::string& getName() const |
| [589] | 23 | { return this->entity_->getName(); } |
| 24 | ||
| [576] | 25 | private: |
| 26 | static unsigned int meshCounter_s; | |
| 27 | Ogre::Entity* entity_; | |
| 28 | }; | |
| 29 | } | |
| 30 | ||
| [673] | 31 | #endif /* _Mesh_H__ */ |
Note: See TracBrowser
for help on using the repository browser.










