void GLS_Triangle( const mapTri_t *tri, int code ) { idWinding w; w.SetNumPoints( 3 ); VectorCopy( tri->v[0].xyz, w[0] ); VectorCopy( tri->v[1].xyz, w[1] ); VectorCopy( tri->v[2].xyz, w[2] ); GLS_Winding( &w, code ); }
/* ================ DrawBrushList ================ */ void DrawBrushList (bspbrush_t *brush, node_t *node) { int i; side_t *s; GLS_BeginScene (); for ( ; brush ; brush=brush->next) { for (i=0 ; i<brush->numsides ; i++) { s = &brush->sides[i]; if (!s->winding) continue; if (s->texinfo == TEXINFO_NODE) GLS_Winding (s->winding, 1); else if (!s->visible) GLS_Winding (s->winding, 2); else GLS_Winding (s->winding, 0); } } GLS_EndScene (); }
//=========================================================================== // // Parameter: - // Returns: - // Changes Globals: - //=========================================================================== void DrawBrushList (bspbrush_t *brush, node_t *node) { int i; side_t *s; GLS_BeginScene (); for ( ; brush ; brush=brush->next) { for (i=0 ; i<brush->numsides ; i++) { s = &brush->sides[i]; if (!s->winding) continue; if (s->texinfo == TEXINFO_NODE) GLS_Winding (s->winding, 1); else if (!(s->flags & SFL_VISIBLE)) GLS_Winding (s->winding, 2); else GLS_Winding (s->winding, 0); } } GLS_EndScene (); } //end of the function DrawBrushList
/* ================ DrawBrushList ================ */ void DrawBrushList( uBrush_t *brush ) { int i; side_t *s; GLS_BeginScene(); for( /**/; brush; brush = brush->next ) { for( i = 0; i < brush->numsides; i++ ) { s = &brush->sides[i]; if( !s->winding ) { continue; } GLS_Winding( s->winding, 0 ); } } GLS_EndScene(); }