summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-02-17 21:03:03 +0000
committerBrian Paul <[email protected]>2004-02-17 21:03:03 +0000
commit09da0b8e6621a831e3eeb9381430f2bed18a22ad (patch)
treee7e307c3a5ddd773b469cf17d0331822388b466e /src/mesa/tnl/t_context.h
parent9a389d4bdb8026063034767e1599be975cb4e2f2 (diff)
A bit of an overhaul of the fog code.
glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
Diffstat (limited to 'src/mesa/tnl/t_context.h')
-rw-r--r--src/mesa/tnl/t_context.h37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index a9d36d24882..b7aff6c6266 100644
--- a/src/mesa/tnl/t_context.h
+++ b/src/mesa/tnl/t_context.h
@@ -364,11 +364,6 @@ struct tnl_save {
};
-
-
-
-
-
struct tnl_vertex_arrays
{
/* Conventional vertex attribute arrays */
@@ -433,14 +428,13 @@ struct vertex_buffer
/* Private data from _tnl_render_stage that has no business being
* in this struct.
*/
-
};
-
/** Describes an individual operation on the pipeline.
*/
-struct tnl_pipeline_stage {
+struct tnl_pipeline_stage
+{
const char *name;
GLuint check_state; /* All state referenced in check() --
* When is the pipeline_stage struct
@@ -513,7 +507,8 @@ typedef void (*insert_func)( const struct tnl_clipspace_attr *a, GLubyte *v,
const GLfloat *in );
-struct tnl_clipspace_attr {
+struct tnl_clipspace_attr
+{
int attrib;
int vertoffset;
int vertattrsize;
@@ -546,7 +541,8 @@ typedef void (*setup_func)( GLcontext *ctx,
-struct tnl_clipspace {
+struct tnl_clipspace
+{
GLboolean need_extras;
GLuint new_inputs;
@@ -564,7 +560,8 @@ struct tnl_clipspace {
};
-struct tnl_device_driver {
+struct tnl_device_driver
+{
/***
*** TNL Pipeline
***/
@@ -588,7 +585,8 @@ struct tnl_device_driver {
/***
*** Rendering -- These functions called only from t_vb_render.c
***/
- struct {
+ struct
+ {
void (*Start)(GLcontext *ctx);
void (*Finish)(GLcontext *ctx);
/* Called before and after all rendering operations, including DrawPixels,
@@ -667,8 +665,11 @@ struct tnl_device_driver {
};
-typedef struct {
-
+/**
+ * Context state for T&L context.
+ */
+typedef struct
+{
/* Driver interface.
*/
struct tnl_device_driver Driver;
@@ -693,23 +694,21 @@ typedef struct {
struct tnl_vertex_arrays current;
struct tnl_vertex_arrays array_inputs;
-
/* Clipspace/ndc/window vertex managment:
*/
struct tnl_clipspace clipspace;
-
/* Probably need a better configuration mechanism:
*/
GLboolean NeedNdcCoords;
GLboolean LoopbackDListCassettes;
GLboolean CalcDListNormalLengths;
GLboolean IsolateMaterials;
+ GLboolean AllowVertexFog;
- /*
- */
- GLuint render_inputs;
+ GLboolean _DoVertexFog; /* eval fog function at each vertex? */
+ GLuint render_inputs;
GLvertexformat exec_vtxfmt;
GLvertexformat save_vtxfmt;