home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / RAYTRACE / RT / TEX.H < prev    next >
C/C++ Source or Header  |  1993-01-12  |  387b  |  22 lines

  1. /*
  2.  
  3. TEX.H  Interface to 3D texture map handling code
  4.  
  5. */
  6.  
  7. typedef void TEX;
  8.  
  9. extern TEX *read_tex(char *fn);
  10. extern TEX *copy_tex(TEX *tex);
  11. extern void destroy_tex(TEX *tex);
  12.  
  13. extern void get_voxel_tex(
  14.     TEX *tex,
  15.     int x, int y, int z,
  16.     byte *r, byte *g, byte *b
  17.     );
  18.  
  19. extern int width_tex(TEX *tex);
  20. extern int height_tex(TEX *tex);
  21. extern int depth_tex(TEX *tex);
  22.