Game Development Reference
In-Depth Information
void DrawOutline(CCanvas &buffer);//Draw outline version of
//polygon
void DrawFlat(CCanvas &buffer);//Draw flat coloured version
void DrawShaded(CCanvas &buffer, BOOL drawNormal=FALSE);
//Draw shaded
void DrawTextured(CCanvas &buffer);//Draw textured polygon
protected:
};
The POINT3D class is a structure defined as:
typedef struct stPOINT3D{
double x,y,z;//Untransfromed position
double nx,ny,nz;//Untransformed normal
double wx,wy,wz;//Transformed position
double wnx,wny,wnz;//Transformed normal
int sx,sy;//Screen location
int snx,sny;//Normal screen location
}POINT3D;
Figure 2.3 An outline polygon.
 
Search Nedrilad ::




Custom Search