/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * OpenSceneGraph Public License for more details. */ // // OpenFlightŪ loader for OpenSceneGraph // // Copyright (C) 2005-2007 Brede Johansen // #ifndef FLT_VERTEX_H #define FLT_VERTEX_H 1 #include #include #include #include #include namespace flt { class Vertex { public: Vertex(); Vertex(const Vertex& vertex); void setCoord(const osg::Vec3& coord); void setColor(const osg::Vec4& color); void setNormal(const osg::Vec3& normal); void setUV(int layer, const osg::Vec2& uv); bool validColor() const { return _validColor; } bool validNormal() const { return _validNormal; } bool validUV(int layer) const { return layer>=0 && layer { public: VertexList() {} explicit VertexList(int size) : std::vector(size) {} protected: virtual ~VertexList() {} }; } // end namespace #endif