00001 // DatPnt.h: Schnittstelle für die Klasse DatPnt. 00002 // 00004 #ifndef _DATPNT_H_ 00005 #define _DATPNT_H_ 00006 00007 #include "vuSimpleTypes.h" 00008 #include "vuVector.h" 00009 00010 class vu1112113; 00011 00012 namespace ns_vu1112113 { 00013 00017 class DatPnt 00018 { 00019 public: 00021 DatPnt(); 00023 ~DatPnt(); 00024 00026 void reset(); 00027 00029 void shade(vu1112113 &r); 00030 00032 const vuVector normalVec() const {return vuVector(norm);} 00033 00034 void setNormalVec(const vuVector& nv) { 00035 norm[0] = nv[0]; 00036 norm[1] = nv[1]; 00037 norm[2] = nv[2]; 00038 } 00039 00043 byte data; 00044 byte len; 00045 float norm[3]; 00046 float illum; 00047 }; 00048 00049 }; //end of namespace 00050 #endif