src/rcrt/primitives/Vertex.h

Go to the documentation of this file.
00001 #ifndef VERTEX_H_
00002 #define VERTEX_H_
00003 
00004 #include "../math/rcrtmath.h"
00005 
00006 namespace rcrt
00007 {
00008 
00012 class Vertex
00013 {
00014 private:
00015         Point3D p;
00016         Vec3D n;
00017         Point2D tex;
00018         
00019 public:
00020         Vertex();
00021         Vertex(const Point3D& pos);
00022         Vertex(const Point3D& pos, const Vec3D no);
00023         Vertex(const Point3D& pos, const Vec3D no, const Point2D te);
00024         virtual ~Vertex();
00025         
00026         void setPos(const Point3D& pos);
00027         void setNormal(const Vec3D no);
00028         void setUV(const Point2D te);
00029         const Point3D& pos();
00030         const Vec3D& normal();
00031         const Point2D& uv();
00032 };
00033 
00034 }
00035 
00036 #endif /*VERTEX_H_*/

Generated on Thu Jan 31 19:26:19 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3