00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00015
00016 #ifndef __VPVERTEX3D_H
00017 #define __VPVERTEX3D_H
00018
00019 #include <vppoint3d.h>
00020 #include <vpvector3d.h>
00021
00022 enum {CL_RED, CL_GREEN, CL_BLUE, CL_APLHA};
00023
00024
00026
00027
00028
00030
00031 class VPVertex3D: public VPPoint3D {
00032 private:
00033 short int color[4];
00034 VPVector3D normal;
00035 public:
00036 VPVertex3D ( void );
00037 VPVertex3D( float x, float y, float z);
00038 VPVertex3D( VPVertex3D *v);
00039 VPVertex3D( float x, float y, float z, short int color[4]);
00040 VPVertex3D( float x, float y, float z, VPPoint3D n);
00041 VPVertex3D( float x, float y, float z, short int c[4], VPVector3D n);
00042 short int *vpGetColor( void );
00043 VPVector3D *vpGetNormal( void );
00044 void vpSetColor (short int *c);
00045 void vpSetNormal (VPVector3D *n);
00046 };
00047
00048 #endif