diff options
author | Brian Paul <[email protected]> | 2005-11-12 18:58:12 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-12 18:58:12 +0000 |
commit | 662fbf8a629d93ae210837fefc0765381bf0b708 (patch) | |
tree | a047c7363bb0e694a8ed5d7738f53a2917a7513d /src/mesa/main/dd.h | |
parent | ba3da6154c324cc916845bc5de3de077d0b59ffc (diff) |
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.
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index d07a7a26b1e..f150cf99e25 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -658,7 +658,10 @@ struct dd_function_table { void (*Hint)(GLcontext *ctx, GLenum target, GLenum mode); /** Control the writing of individual bits in the color index buffers */ void (*IndexMask)(GLcontext *ctx, GLuint mask); - /** Set light source parameters */ + /** Set light source parameters. + * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already + * been transformed to eye-space. + */ void (*Lightfv)(GLcontext *ctx, GLenum light, GLenum pname, const GLfloat *params ); /** Set the lighting model parameters */ |