Initial work on GL_MESA_sprite_point extension.

Still need to resolve clipping issues, finalize the spec.
This commit is contained in:
Brian Paul
2000-12-08 00:20:15 +00:00
parent fb7899bfec
commit 06d05afdd6
8 changed files with 291 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: state.c,v 1.50 2000/11/28 00:07:51 brianp Exp $ */
/* $Id: state.c,v 1.51 2000/12/08 00:20:15 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -781,6 +781,13 @@ void gl_update_state( GLcontext *ctx )
ctx->_NeedEyeCoords |= NEED_EYE_LIGHT_MODELVIEW;
}
/* point attenuation requires eye coords */
if (new_state & _NEW_POINT) {
if (ctx->Point._Attenuated) {
ctx->_NeedEyeCoords |= NEED_EYE_POINT_ATTEN;
}
}
/* ctx->_NeedEyeCoords and ctx->_NeedEyeNormals are now uptodate.
*
* If the truth value of either has changed, update for the new