TexCoord2f.h

Go to the documentation of this file.
00001 #ifndef __VECMATH_TEXCOORD2F_HPP
00002 #define __VECMATH_TEXCOORD2F_HPP
00003 
00004 #ifndef __VECMATH_TUPLE2D_HPP
00005 #include <vecmath/Tuple2d.h>
00006 #endif
00007 
00008 #ifndef __VECMATH_TUPLE2F_HPP
00009 #include <vecmath/Tuple2f.h>
00010 #endif
00011 
00012 #define DEBUGTEXCOORD2(d) d
00013 //#define DEBUGTEXCOORD2(d)
00014 
00015 class VECMATH_EXPORT TexCoord2f : public Tuple2f {
00016 public:
00017     TexCoord2f() : Tuple2f() {}
00018 
00019     explicit TexCoord2f(float x, float y = 0) : Tuple2f(x, y) {
00020         DEBUGTEXCOORD2(cout << "TexCoord2f explicit constructor x,y" << endl);
00021     }
00022 
00023     TexCoord2f(const TexCoord2f& t) {
00024         set(t.x, t.y);
00025         DEBUGTEXCOORD2(cout << "TexCoord2f constructor &TexCoord2f" << endl);
00026     }
00027 
00028     TexCoord2f(const Tuple2d& t) : Tuple2f(t) {
00029         DEBUGTEXCOORD2(cout << "TexCoord2f constructor &double" << endl);
00030     }
00031 
00032     TexCoord2f(const Tuple2f& t) : Tuple2f(t) {
00033         DEBUGTEXCOORD2(cout << "TexCoord2f constructor &float" << endl);
00034     }
00035 
00036     TexCoord2f(const float t[2]) : Tuple2f(t) {
00037         DEBUGTEXCOORD2(cout << "TexCoord2f constructor v[2]" << endl);
00038     }
00039 };
00040 
00041 #endif

Generated on Thu Sep 29 13:39:44 2005 for vecmath by  doxygen 1.4.4