summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dlist.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-01-07 07:42:33 +0000
committerBrian Paul <[email protected]>2000-01-07 07:42:33 +0000
commit3c3533c5c8070fcca25247945cebedea60616082 (patch)
tree00b9cb2f1bc4e8788b1421b1840d6376a88ed112 /src/mesa/main/dlist.c
parent77aa8b9c865eb1e676a0af0cd6c28f3f7967093f (diff)
added missing glHintPGI() function
Diffstat (limited to 'src/mesa/main/dlist.c')
-rw-r--r--src/mesa/main/dlist.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 2f9f4ed2a3b..cfbcb003a7f 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -1,10 +1,10 @@
-/* $Id: dlist.c,v 1.22 1999/12/15 12:55:54 brianp Exp $ */
+/* $Id: dlist.c,v 1.23 2000/01/07 07:42:34 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 3.3
*
- * Copyright (C) 1999 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -175,6 +175,7 @@ typedef enum {
OPCODE_FRONT_FACE,
OPCODE_FRUSTUM,
OPCODE_HINT,
+ OPCODE_HINT_PGI,
OPCODE_INDEX_MASK,
OPCODE_INIT_NAMES,
OPCODE_LIGHT,
@@ -534,6 +535,7 @@ void gl_init_lists( void )
InstSize[OPCODE_FRONT_FACE] = 2;
InstSize[OPCODE_FRUSTUM] = 7;
InstSize[OPCODE_HINT] = 3;
+ InstSize[OPCODE_HINT_PGI] = 3;
InstSize[OPCODE_INDEX_MASK] = 2;
InstSize[OPCODE_INIT_NAMES] = 1;
InstSize[OPCODE_LIGHT] = 7;
@@ -1446,6 +1448,22 @@ static void save_Hint( GLenum target, GLenum mode )
}
+/* GL_PGI_misc_hints*/
+static void save_HintPGI( GLenum target, GLint mode )
+{
+ GET_CURRENT_CONTEXT(ctx);
+ Node *n;
+ FLUSH_VB(ctx, "dlist");
+ n = alloc_instruction( ctx, OPCODE_HINT_PGI, 2 );
+ if (n) {
+ n[1].e = target;
+ n[2].i = mode;
+ }
+ if (ctx->ExecuteFlag) {
+ (*ctx->Exec.HintPGI)( target, mode );
+ }
+}
+
static void save_IndexMask( GLuint mask )
{
@@ -3424,6 +3442,9 @@ static void execute_list( GLcontext *ctx, GLuint list )
case OPCODE_HINT:
(*ctx->Exec.Hint)( n[1].e, n[2].e );
break;
+ case OPCODE_HINT_PGI:
+ (*ctx->Exec.HintPGI)( n[1].e, n[2].i );
+ break;
case OPCODE_INDEX_MASK:
(*ctx->Exec.IndexMask)( n[1].ui );
break;
@@ -4430,6 +4451,9 @@ _mesa_init_dlist_table( struct _glapi_table *table )
table->PointParameterfEXT = save_PointParameterfEXT;
table->PointParameterfvEXT = save_PointParameterfvEXT;
+ /* GL_PGI_misc_hints */
+ table->HintPGI = save_HintPGI;
+
/* GL_EXT_polygon_offset */
table->PolygonOffsetEXT = save_PolygonOffsetEXT;