Lines Matching refs:light

15 	l->light = (CRLightBits *) crCalloc (sizeof(*(l->light)) * CR_MAX_LIGHTS );
20 crFree(l->light);
25 crFree( ctx->lighting.light );
78 l->light = (CRLight *) crCalloc (sizeof (*(l->light)) * CR_MAX_LIGHTS);
82 CRLightBits *ltb = lb->light + i;
83 l->light[i].enable = GL_FALSE;
85 l->light[i].ambient = zero_color;
87 l->light[i].diffuse = zero_color;
89 l->light[i].specular = zero_color;
91 l->light[i].position = zero_vector;
92 l->light[i].position.z = 1.0f;
93 l->light[i].position.w = 0.0f;
94 l->light[i].objPosition = l->light[i].position;
96 l->light[i].spotDirection = spot_vector;
97 l->light[i].spotExponent = 0.0f;
98 l->light[i].spotCutoff = 180.0f;
100 l->light[i].constantAttenuation= 1.0f;
101 l->light[i].linearAttenuation= 0.0f;
102 l->light[i].quadraticAttenuation = 0.0f;
106 l->light[0].diffuse = one_color;
107 l->light[0].specular = one_color;
311 void STATE_APIENTRY crStateLightfv (GLenum light, GLenum pname, const GLfloat *param)
333 i = light - GL_LIGHT0;
336 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "glLight: invalid light specified: 0x%x", light);
340 lt = l->light + i;
341 ltb = lb->light + i;
457 void STATE_APIENTRY crStateLightiv (GLenum light, GLenum pname, const GLint *param)
472 crStateLightfv( light, pname, (GLfloat *) &f_color );
480 crStateLightfv( light, pname, (GLfloat *) &f_vector );
488 crStateLightfv( light, pname, &f_param );
496 void STATE_APIENTRY crStateLightf (GLenum light, GLenum pname, GLfloat param)
498 crStateLightfv( light, pname, &param );
501 void STATE_APIENTRY crStateLighti (GLenum light, GLenum pname, GLint param)
504 crStateLightfv( light, pname, &f_param );
748 void STATE_APIENTRY crStateGetLightfv (GLenum light, GLenum pname, GLfloat *param)
762 i = light - GL_LIGHT0;
766 "glGetLight: invalid light specified: 0x%x", light);
770 lt = l->light + i;
831 void STATE_APIENTRY crStateGetLightiv (GLenum light, GLenum pname, GLint *param)
845 i = light - GL_LIGHT0;
849 "glGetLight: invalid light specified: 0x%x", light);
853 lt = l->light + i;