t3dlib12.h
上传用户:husern
上传日期:2018-01-20
资源大小:42486k
文件大小:4k
源码类别:

游戏

开发平台:

Visual C++

  1. // T3DLIB12.H - header file for T3DLIB12.H
  2. // watch for multiple inclusions
  3. #ifndef T3DLIB12
  4. #define T3DLIB12
  5. // DEFINES //////////////////////////////////////////////////////////////////
  6. // TYPES ///////////////////////////////////////////////////////////////////
  7. // CLASSES /////////////////////////////////////////////////////////////////
  8. // M A C R O S ///////////////////////////////////////////////////////////////
  9. // EXTERNALS ///////////////////////////////////////////////////////////////
  10. extern HWND main_window_handle; // save the window handle
  11. extern HINSTANCE main_instance; // save the instance
  12. // MACROS ////////////////////////////////////////////////
  13. // PROTOTYPES //////////////////////////////////////////////////////////////
  14. // new rendering context function that calls the transparent rasterizers                             
  15. void Draw_RENDERLIST4DV2_RENDERCONTEXTV1_16_3(RENDERCONTEXTV1_PTR rc);
  16. // normal z-buffered, with write thru z and transparency support on textures
  17. void Draw_Textured_TriangleGSWTZB2_16(POLYF4DV2_PTR face, // ptr to face
  18.                                  UCHAR *_dest_buffer,     // pointer to video buffer
  19.                                  int mem_pitch,           // bytes per line, 320, 640 etc.
  20.                                  UCHAR *_zbuffer,         // pointer to z-buffer
  21.                                  int zpitch);             // bytes per line of zbuffer
  22. void Draw_Textured_TriangleFSWTZB3_16(POLYF4DV2_PTR face, // ptr to face
  23.                                  UCHAR *_dest_buffer,     // pointer to video buffer
  24.                                  int mem_pitch,           // bytes per line, 320, 640 etc.
  25.                                  UCHAR *_zbuffer,         // pointer to z-buffer
  26.                                  int zpitch);             // bytes per line of zbuffer
  27. void Draw_Textured_TriangleWTZB3_16(POLYF4DV2_PTR face,  // ptr to face
  28.                               UCHAR *_dest_buffer,       // pointer to video buffer
  29.                               int mem_pitch,             // bytes per line, 320, 640 etc.
  30.                               UCHAR *_zbuffer,           // pointer to z-buffer
  31.                               int zpitch);               // bytes per line of zbuffer
  32. // normal z-buffered, and transparency support on textures
  33. void Draw_Textured_TriangleZB3_16(POLYF4DV2_PTR face,  // ptr to face
  34.                               UCHAR *_dest_buffer,  // pointer to video buffer
  35.                               int mem_pitch,        // bytes per line, 320, 640 etc.
  36.                               UCHAR *_zbuffer,       // pointer to z-buffer
  37.                               int zpitch);          // bytes per line of zbuffer
  38. // normal z-buffered, with write thru z and transparency support on textures and alpha
  39. void Draw_Textured_TriangleWTZB_Alpha16_2(POLYF4DV2_PTR face,  // ptr to face
  40.                               UCHAR *_dest_buffer,             // pointer to video buffer
  41.                               int mem_pitch,                   // bytes per line, 320, 640 etc.
  42.                               UCHAR *_zbuffer,                 // pointer to z-buffer
  43.                               int zpitch,                      // bytes per line of zbuffer
  44.                               int alpha);
  45. void Draw_Textured_TriangleZB_Alpha16_2(POLYF4DV2_PTR face,  // ptr to face
  46.                               UCHAR *_dest_buffer,           // pointer to video buffer
  47.                               int mem_pitch,                 // bytes per line, 320, 640 etc.
  48.                               UCHAR *_zbuffer,               // pointer to z-buffer
  49.                               int zpitch,                    // bytes per line of zbuffer
  50.                               int alpha);
  51. void Draw_Textured_Triangle_Alpha16_2(POLYF4DV2_PTR face,   // ptr to face
  52.                                 UCHAR *_dest_buffer,        // pointer to video buffer
  53.                                 int mem_pitch, int alpha);  // bytes per line, 320, 640 etc.
  54. #endif