From 662fbf8a629d93ae210837fefc0765381bf0b708 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 12 Nov 2005 18:58:12 +0000 Subject: Added _mesa_light() helper function so we can avoid transforming then un-transforming light positions and spot directions when popping light state off the attribute stack. --- src/mesa/main/light.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/light.h') diff --git a/src/mesa/main/light.h b/src/mesa/main/light.h index 1f19019450..f47fe58a83 100644 --- a/src/mesa/main/light.h +++ b/src/mesa/main/light.h @@ -78,6 +78,10 @@ extern void GLAPIENTRY _mesa_GetMaterialiv( GLenum face, GLenum pname, GLint *params ); +extern void +_mesa_light(GLcontext *ctx, GLuint lnum, GLenum pname, const GLfloat *params); + + /* Lerp between adjacent values in the f(x) lookup table, giving a * continuous function, with adequeate overall accuracy. (Though * still pretty good compared to a straight lookup). -- cgit v1.2.3