home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 2 / LSD and 17bit Compendium Deluxe - Volume II.iso / a / prog / cprog / illum.lha / clr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-04-18  |  1.6 KB  |  63 lines

  1. /* ****************************************************************
  2.  *                            clr.h
  3.  * ****************************************************************
  4.  * include file for the geometric utilities
  5.  */
  6. #ifndef CLR_H
  7. #define CLR_H
  8.  
  9. #ifndef TRUE
  10. #define TRUE    1
  11. #endif TRUE
  12. #ifndef FALSE
  13. #define FALSE   0
  14. #endif FALSE
  15.  
  16. #define CLR_SAMPLE_MEYER        0
  17. #define CLR_SAMPLE_HALL         1
  18.  
  19. /* common geometric constructs
  20.  */
  21. typedef struct {double  r, g, b;}       CLR_RGB;
  22. typedef struct {double  x, y, z;}       CLR_XYZ;
  23. typedef struct {double  l, a, b;}       CLR_LAB;
  24. typedef struct {double  l, u, v;}       CLR_LUV;
  25.  
  26. /* color routine declarations
  27.  */
  28. int         CLR_init();
  29. int         CLR_read_mtl();
  30. int         CLR_add_spect();
  31. int         CLR_mult_spect();
  32. int         CLR_scale_spect();
  33. double      CLR_area_spect();
  34. CLR_XYZ     CLR_spect_to_xyz();
  35. CLR_RGB     CLR_spect_to_rgb();
  36. int         CLR_get_rgb();
  37. int         CLR_get_min_wl();
  38. int         CLR_get_max_wl();
  39. int         CLR_get_xyz_rgb();
  40. int         CLR_get_rgb_xyz();
  41. int         CLR_get_yiq_rgb();
  42. int         CLR_get_rgb_yiq();
  43. int         CLR_rgb_to_aux_rgb();
  44. CLR_LAB     CLR_xyz_to_lab();
  45. CLR_LUV     CLR_xyz_to_luv();
  46. int         CLR_t_concat();
  47. int         CLR_t_inverse();
  48.  
  49. CLR_RGB     CLR_clamp_rgb();
  50. CLR_RGB     CLR_scale_rgb();
  51. CLR_RGB     CLR_clip_rgb();
  52.  
  53. int         CLR_init_samples();
  54. int         CLR_num_samples();
  55. int         CLR_spect_to_sample();
  56. int         CLR_get_sample_rgb();
  57. int         CLR_get_sample_xyz();
  58. int         CLR_reconstruct();
  59. int         CLR_exit_samples();
  60.  
  61. #endif CLR_H
  62. /* ************************************************************* */
  63.