Files Classes Functions Hierarchy
#include <tessD2draw02.h>
Public Member Functions | |
| tessD2draw02mesh (TESS &tess_) | |
| Blue mesh. | |
| void | draw () |
| Draw to the global graphics stream. | |
Public Attributes | |
| gobjglColor3f | col |
| Change the mesh color. | |
Definition at line 38 of file tessD2draw02.h.
| tessD2draw02mesh< TESS, PT, INDX >::tessD2draw02mesh | ( | TESS & | tess_ | ) | [inline] |
| void tessD2draw02mesh< TESS, PT, INDX >::draw | ( | ) | [inline, virtual] |
Draw to the global graphics stream.
Implements gobj.
Definition at line 299 of file tessD2draw02.h.
References tessD2draw02mesh< TESS, PT, INDX >::col, and gobjglColor3f::draw().
00300 { 00301 glPushAttrib(GL_CURRENT_BIT); 00302 glPushAttrib(GL_LIGHTING_BIT); 00303 00304 glDisable(GL_LIGHTING); 00305 00306 col.draw(); 00307 00308 glBegin(GL_LINES); 00309 00310 INDX const imax = tess.vi.size(); 00311 for (INDX i=1; i<imax; ++i) 00312 drawtriangle(tess.vi[i],tess.pts); 00313 00314 glEnd(); 00315 00316 glPopAttrib(); 00317 glPopAttrib(); 00318 }
| gobjglColor3f tessD2draw02mesh< TESS, PT, INDX >::col |
Change the mesh color.
Definition at line 44 of file tessD2draw02.h.
Referenced by tessD2draw02mesh< TESS, PT, INDX >::draw().
1.5.8