Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
607 B

  1. #ifndef LIGHTING_H
  2. #define LIGHTING_H
  3. #define NUMBEROFLIGHTS 8
  4. typedef struct {
  5. BOOL bEnable;
  6. GLfloat afAmbient[4];
  7. GLfloat afDiffuse[4];
  8. GLfloat afSpecular[4];
  9. GLfloat afPosition[4];
  10. GLfloat afSpotDirection[3];
  11. GLfloat fSpotCutoff, fSpotExponent;
  12. GLfloat afAttenuation[3];
  13. } LIGHTTYPE;
  14. typedef struct {
  15. char acDummy1[16];
  16. BOOL bEnable;
  17. BOOL bLocalViewer;
  18. BOOL bTwoSided;
  19. LIGHTTYPE aLights[NUMBEROFLIGHTS];
  20. char acDummy2[16];
  21. } LIGHTINGDATA;
  22. void InitLD(LIGHTINGDATA *pld);
  23. void lighting_init(LIGHTINGDATA ld);
  24. #endif // LIGHTING_H