Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core2/src/orxonox/objects/Model.h @ 2258

Last change on this file since 2258 was 902, checked in by landauf, 17 years ago

using "XMLPort::Mode mode" instead of "bool loading" in all XMLPort functions

File size: 713 bytes
Line 
1#ifndef _Model_H__
2#define _Model_H__
3
4#include "../OrxonoxPrereqs.h"
5
6#include "WorldEntity.h"
7#include "../tools/Mesh.h"
8
9class TiXmlElement; // Forward declaration
10
11namespace orxonox
12{
13
14    class _OrxonoxExport Model : public WorldEntity
15    {
16        public:
17            Model();
18            virtual ~Model();
19            virtual void loadParams(TiXmlElement* xmlElem);
20            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
21            void setMesh(const std::string& meshname);
22            bool create();
23
24        private:
25            std::string meshSrc_;
26            Mesh mesh_;
27            void registerAllVariables();
28    };
29}
30
31#endif /* _Model_H__ */
Note: See TracBrowser for help on using the repository browser.