00001 /* 00002 ** --------------------------------------------------------------- 00003 ** zbf.h - Header file of Module to fill polygons in raster (image) 00004 ** coordinates using the z-buffer algorithm. 00005 */ 00006 00007 #ifndef _ZBF_H 00008 #define _ZBF_H 00009 00038 /* 00039 ** --------------------------------------------------------------- 00040 ** Used global definitions: (none) 00041 ** 00042 */ 00043 00044 /* 00045 ** --------------------------------------------------------------- 00046 ** Public functions: 00047 */ 00048 00049 /* --------------------------------------------------------------- */ 00058 int zbfInit( int width, int height ); 00059 00060 /* --------------------------------------------------------------- */ 00065 void zbfClose( void ); 00066 00067 /* --------------------------------------------------------------- */ 00075 void zbfBeginPoly( long int color ); 00076 00077 /* --------------------------------------------------------------- */ 00089 void zbfVertex( double x, double y, double z ); 00090 00091 /* --------------------------------------------------------------- */ 00097 void zbfEndPoly( void ); 00098 00101 #endif 00102 ays the polygon using 00103 ** the z-buffer algorithm. 00104 */ 00105 void zbfEndPoly( void ); 00106 00109 #endif