00001 /* 00002 ** --------------------------------------------------------------- 00003 ** dsp.h - Display module definitions and prototypes. 00004 ** 00005 ** --------------------------------------------------------------- 00006 */ 00007 00008 #ifndef _DSP_H 00009 #define _DSP_H 00010 00034 /* 00035 ** --------------------------------------------------------------- 00036 ** Display exported definitions: 00037 */ 00038 00041 typedef struct pnt3d { 00042 double x, y, z; 00043 } Pnt3d, Vec3d; 00044 00045 00046 /* 00047 ** --------------------------------------------------------------- 00048 ** Public functions: 00049 ** 00050 */ 00051 00052 /* --------------------------------------------------------------- */ 00057 void dspInit( void ); 00058 00059 /* --------------------------------------------------------------- */ 00064 void dspHelp( void ); 00065 00066 /* --------------------------------------------------------------- */ 00071 void dspModel( void ); 00072 00073 /* --------------------------------------------------------------- */ 00074 /* 00075 ** This function displays all primitives of current model in 00076 ** the given canvas using the z-buffer algorithm and the CD 00077 ** (Canvas Draw) 2D graphics system). 00078 ** 00079 ** @param zbuffer_canvas - CD handle to zbuffer canvas (in) 00080 */ 00081 int dspZbfModel( void *zbuffer_canvas ); 00082 00083 /* --------------------------------------------------------------- */ 00096 void dspZbfBeginPoly( long int color, double nx, double ny, double nz ); 00097 00098 /* --------------------------------------------------------------- */ 00109 void dspZbfVertex( double x, double y, double z ); 00110 00111 /* --------------------------------------------------------------- */ 00116 void dspZbfEndPoly( void ); 00117 00118 /* --------------------------------------------------------------- */ 00135 void dspGetPickRay( int x, int y, 00136 double *frontx, double *fronty, double *frontz, 00137 double *backx, double *backy, double *backz ); 00138 00141 #endif 00142 double *frontx, double *fronty, double *frontz, 00143 double *backx, double *backy, double *backz ); 00144 00147 #endif