diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-15 19:17:49 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-15 19:17:49 +0200 |
commit | 54f4da87923465a5387e2e854b58616647deb7af (patch) | |
tree | fc52b1866b29393be7d61a2341f04d430c078fdd /src/graphics/common/modelfile.h | |
parent | eca6d26459200d2956d64ccf8a2713d96a82c989 (diff) | |
download | colobot-54f4da87923465a5387e2e854b58616647deb7af.tar.gz colobot-54f4da87923465a5387e2e854b58616647deb7af.tar.bz2 colobot-54f4da87923465a5387e2e854b58616647deb7af.zip |
Fix in model loading; simple model viewer
- fixed model loading code
- added simple model viewer (model_test) in src/graphics/opengl/test
- added system time stamp code
- split the code in app/system modules to separate headers
- added debug messages in model loading
- minor fixes in OpenGL engine
Diffstat (limited to 'src/graphics/common/modelfile.h')
-rw-r--r-- | src/graphics/common/modelfile.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphics/common/modelfile.h b/src/graphics/common/modelfile.h index 625df50..f8cb022 100644 --- a/src/graphics/common/modelfile.h +++ b/src/graphics/common/modelfile.h @@ -91,6 +91,8 @@ public: //! Returns the number of triangles in model int GetTriangleCount(); + //! Returns the triangle vector + std::vector<Gfx::ModelTriangle>& GetTriangles(); //! Returns the height of model -- closest point to X and Z coords of \a pos float GetHeight(Math::Vector pos); @@ -106,7 +108,7 @@ protected: protected: CInstanceManager* m_iMan; - CEngine* m_engine; + Gfx::CEngine* m_engine; //! Last error std::string m_error; |