00001 // Polygon Class by Alan Baylis 2001 00002 00003 #ifndef PolygonH 00004 #define PolygonH 00005 00006 #include "general.h" 00007 #include "vertex.h" 00008 #include "texture.h" 00009 #include "vector.h" 00010 00011 class CAMERA; 00012 00013 class POLYGON 00014 { 00015 public: 00016 POLYGON(); 00017 ~POLYGON(); 00018 00019 VECTOR GetNormal(); 00020 void SetNormal(); 00021 VECTOR GetMidPoint(); 00022 bool CheckForCollision(CAMERA* pLastCam, CAMERA* pCam); 00023 00024 TEXTURE Texture; 00025 VERTEX Vertex[3]; 00026 }; 00027 00028 #endif
1.2.15