From 7b6bbf79c4bb73013e2fe01f84f0025e7c06c00e Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Wed, 19 Sep 2012 23:50:28 +0200 Subject: Namespace and styling fix --- src/graphics/engine/modelfile.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/graphics/engine/modelfile.h') diff --git a/src/graphics/engine/modelfile.h b/src/graphics/engine/modelfile.h index 833cdf6..6c573b8 100644 --- a/src/graphics/engine/modelfile.h +++ b/src/graphics/engine/modelfile.h @@ -17,11 +17,15 @@ /** * \file graphics/engine/modelfile.h - * \brief Model loading - Gfx::CModelFile class (aka modfile) + * \brief Model loading - CModelFile class (aka modfile) */ +#pragma once + + #include "graphics/core/vertex.h" #include "graphics/core/material.h" + #include "math/vector.h" #include @@ -32,6 +36,7 @@ class CInstanceManager; +// Graphics module namespace namespace Gfx { class CEngine; @@ -44,13 +49,13 @@ class CEngine; struct ModelTriangle { //! 1st vertex - Gfx::VertexTex2 p1; + VertexTex2 p1; //! 2nd vertex - Gfx::VertexTex2 p2; + VertexTex2 p2; //! 3rd vertex - Gfx::VertexTex2 p3; + VertexTex2 p3; //! Material - Gfx::Material material; + Material material; //! Name of 1st texture std::string tex1Name; //! Name of 2nd texture @@ -121,7 +126,7 @@ public: int GetTriangleCount(); //! Returns the triangle vector - const std::vector& GetTriangles(); + const std::vector& GetTriangles(); //! Returns the height of model -- closest point to X and Z coords of \a pos float GetHeight(Math::Vector pos); @@ -138,10 +143,10 @@ protected: protected: CInstanceManager* m_iMan; - Gfx::CEngine* m_engine; + CEngine* m_engine; //! Model triangles - std::vector m_triangles; + std::vector m_triangles; }; }; // namespace Gfx -- cgit v1.2.3-1-g7c22