// -*- mode: C++; tab-width: 4; indent-tabs-mode: t; -*- vim:ts=4:sw=4 // // Copyright (C) 2004 Chong Kai Xiong (descender) // // This file is part of The Plains of Usata. // // The Plains of Usata is licensed under the GNU General Public // License (GPL) version 2. For details, please see the COPYING file // included in the software distribution, or visit // http://www.fsf.org/licenses/gpl.html. // // $Id: mesh.hpp,v 1.1 2005/01/04 16:05:03 Descender Exp $ #ifndef USATA_GFX_MESH_HPP #define USATA_GFX_MESH_HPP #include "math/vector.hpp" namespace usata { namespace gfx { class TriangleMesh { public: struct Vertex { math::Vector4d position; math::Vector4d texture; math::Vector4d normal; }; struct Face { int vertices[3]; math::Vector4d normal; } TriangleMesh(); ~TriangleMesh(); private: std::vector m_vertices; std::vector m_faces; }; } // namespace gfx } // namespace usata #endif