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

#ifndef LIGHTING_H
#define LIGHTING_H
#define NUMBEROFLIGHTS 8
typedef struct {
BOOL bEnable;
GLfloat afAmbient[4];
GLfloat afDiffuse[4];
GLfloat afSpecular[4];
GLfloat afPosition[4];
GLfloat afSpotDirection[3];
GLfloat fSpotCutoff, fSpotExponent;
GLfloat afAttenuation[3];
} LIGHTTYPE;
typedef struct {
char acDummy1[16];
BOOL bEnable;
BOOL bLocalViewer;
BOOL bTwoSided;
LIGHTTYPE aLights[NUMBEROFLIGHTS];
char acDummy2[16];
} LIGHTINGDATA;
void InitLD(LIGHTINGDATA *pld);
void lighting_init(LIGHTINGDATA ld);
#endif // LIGHTING_H