Added edge flag callback support.
This commit is contained in:
parent
80af3614d8
commit
206abd9039
|
@ -1,4 +1,4 @@
|
|||
/* $Id: tess.c,v 1.15 1999/10/12 21:26:06 gareth Exp $ */
|
||||
/* $Id: tess.c,v 1.16 1999/10/13 19:02:20 gareth Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
@ -26,6 +26,9 @@
|
|||
|
||||
/*
|
||||
* $Log: tess.c,v $
|
||||
* Revision 1.16 1999/10/13 19:02:20 gareth
|
||||
* Added edge flag callback support.
|
||||
*
|
||||
* Revision 1.15 1999/10/12 21:26:06 gareth
|
||||
* Fixed delete_all_contours memory deallocation.
|
||||
*
|
||||
|
@ -144,6 +147,7 @@ GLUtesselator* GLAPIENTRY gluNewTess( void )
|
|||
#endif
|
||||
tobj->cvc_lists = NULL;
|
||||
tobj->data = NULL;
|
||||
tobj->edge_flag = GL_FALSE;
|
||||
tobj->label = 0;
|
||||
|
||||
tobj->error = GLU_NO_ERROR;
|
||||
|
@ -193,8 +197,10 @@ void GLAPIENTRY gluTessBeginPolygon( GLUtesselator *tobj, void *polygon_data )
|
|||
tess_cleanup( tobj );
|
||||
}
|
||||
|
||||
tobj->data = polygon_data;
|
||||
tobj->vertex_count = 0;
|
||||
tobj->data = polygon_data;
|
||||
tobj->edge_flag = GL_FALSE;
|
||||
tobj->label = 0;
|
||||
|
||||
DEBUGP( 15, ( "<- gluTessBeginPolygon( tobj:%p data:%p )\n", tobj, polygon_data ) );
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: tess.h,v 1.11 1999/10/11 17:49:22 gareth Exp $ */
|
||||
/* $Id: tess.h,v 1.12 1999/10/13 19:01:56 gareth Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
@ -26,6 +26,9 @@
|
|||
|
||||
/*
|
||||
* $Log: tess.h,v $
|
||||
* Revision 1.12 1999/10/13 19:01:56 gareth
|
||||
* Added edge flag callback support.
|
||||
*
|
||||
* Revision 1.11 1999/10/11 17:49:22 gareth
|
||||
* Correctly initialized GLUtesselator user data pointer.
|
||||
*
|
||||
|
@ -100,6 +103,7 @@ struct GLUtesselator
|
|||
heap_t *ears;
|
||||
hashtable_t *cvc_lists;
|
||||
void *data;
|
||||
GLboolean edge_flag;
|
||||
GLuint label;
|
||||
GLenum error;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue