hufo_fur_setup.h
上传用户:yjja2008
上传日期:2022-05-05
资源大小:698k
文件大小:1k
源码类别:

3D图形编程

开发平台:

Visual C++

  1. /*********************************************************************NVMH1****
  2. File:
  3. hufo_fur_setup.h
  4. Copyright (C) 1999, 2000 NVIDIA Corporation
  5. This file is provided without support, instruction, or implied warranty of any
  6. kind.  NVIDIA makes no guarantee of its fitness for a particular purpose and is
  7. not liable under any circumstances for any damages or loss whatsoever arising
  8. from the use or inability to use this file or items derived from it.
  9. Comments:
  10. ******************************************************************************/
  11. struct nv_mesh
  12. {
  13.     std::string     name;           // Convenience for debugging
  14.     int             numv;           // number of vertices
  15.     float *         v;              // vertices
  16.                                     // tangent basis per vertex
  17.     float *         tangent;
  18.     float *         binormal;
  19.     float *         normal;
  20.     float *         t;              // texture coords
  21.     int             matidx;         // material index into the ase::model
  22.     int             numf;           // number of faces
  23.     int *           f;              // faces (indices into the array of vertices)
  24. };
  25. typedef std::vector<nv_mesh*>   nv_mesh_array;
  26. typedef nv_mesh_array::const_iterator nv_mesh_cit;
  27. typedef nv_mesh_array::iterator nv_mesh_it;
  28. #define TNLAYER 16
  29. // set to 1 to use fur color texture
  30. #define FUR_COLOR_TEXTURE 0
  31. void hufo_fur_texture_init();
  32. void hufo_fur_texture_use(int layer);
  33. void hufo_fur_texture_quit();