diff options
author | Roland Scheidegger <[email protected]> | 2004-11-03 17:29:39 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2004-11-03 17:29:39 +0000 |
commit | d294f79190a5b25ef0fbbbf3ac94b15c9402d009 (patch) | |
tree | 9c768d24648fa8b07d389940ba2b687a3f44b3e2 /src/mesa/drivers/dri/r200/r200_context.h | |
parent | bdd53efe8302e85fd1be4ceda0aa576e0119b14e (diff) |
enable GL_EXT_fog_coord. Calculate fog factors and submit them instead of fog coords (it seems the chip cannot do fog factor computation when not using fragment depth as fog coord source). vtxfmt uses fallback for now (most code present but some magic would be needed if replaying vertices is necessary later on).
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.h b/src/mesa/drivers/dri/r200/r200_context.h index af07653244c..9af5c9390aa 100644 --- a/src/mesa/drivers/dri/r200/r200_context.h +++ b/src/mesa/drivers/dri/r200/r200_context.h @@ -731,6 +731,8 @@ struct dfn_lists { struct dynfn MultiTexCoord2fvARB; struct dynfn MultiTexCoord1fARB; struct dynfn MultiTexCoord1fvARB; + struct dynfn FogCoordfEXT; + struct dynfn FogCoordfvEXT; }; struct dfn_generators { @@ -764,6 +766,8 @@ struct dfn_generators { struct dynfn *(*MultiTexCoord2fvARB)( GLcontext *, const int * ); struct dynfn *(*MultiTexCoord1fARB)( GLcontext *, const int * ); struct dynfn *(*MultiTexCoord1fvARB)( GLcontext *, const int * ); + struct dynfn *(*FogCoordfEXT)( GLcontext *, const int * ); + struct dynfn *(*FogCoordfvEXT)( GLcontext *, const int * ); }; @@ -797,6 +801,7 @@ struct r200_vbinfo { GLfloat *normalptr; GLfloat *floatcolorptr; + GLfloat *fogptr; r200_color_t *colorptr; GLfloat *floatspecptr; r200_color_t *specptr; |