Files Classes Functions Hierarchy
#include <tessD2draw02.h>
Public Member Functions | |
| tessD2draw02points (TESS &tess_, bool &isdrawn_) | |
| void | draw () |
| Draw to the global graphics stream. | |
Public Attributes | |
| gobjglColor3ub | col |
| Change the text color. | |
| bool & | isdrawn |
| Toggle the display. | |
Count from 1 onwards.
Definition at line 16 of file tessD2draw02.h.
| tessD2draw02points< TESS, PT >::tessD2draw02points | ( | TESS & | tess_, | |
| bool & | isdrawn_ | |||
| ) | [inline] |
| void tessD2draw02points< TESS, PT >::draw | ( | ) | [inline, virtual] |
Draw to the global graphics stream.
Reimplemented from gobjContainer.
Definition at line 321 of file tessD2draw02.h.
References tessD2draw02points< TESS, PT >::col, gobjContainer::gobjContainer(), gobjpush, tessD2draw02points< TESS, PT >::isdrawn, and gobjContainer::push().
00322 { 00323 gobjContainer & y = * new gobjContainer(true); 00324 00325 y.push( new gobjglPushAttrib(GL_CURRENT_BIT) ); 00326 y.push( new gobjglPushAttrib(GL_LIGHTING_BIT) ); 00327 00328 y.push( new gobjglDisable(GL_LIGHTING) ); 00329 00330 y.push( new gobjglColor3ub(col) ); 00331 00332 pointsdisplay2D< PT > dp(y,tess.pts); 00333 00334 y.push( new gobjglPopAttrib() ); 00335 y.push( new gobjglPopAttrib() ); 00336 00337 gobjSwitch<bool&> * s = 00338 new gobjSwitch<bool&>(&y,isdrawn); 00339 00340 gobjpush(s); 00341 }
| gobjglColor3ub tessD2draw02points< TESS, PT >::col |
Change the text color.
Definition at line 22 of file tessD2draw02.h.
Referenced by tessD2draw02points< TESS, PT >::draw().
| bool& tessD2draw02points< TESS, PT >::isdrawn |
Toggle the display.
Definition at line 25 of file tessD2draw02.h.
Referenced by tessD2draw02points< TESS, PT >::draw().
1.5.8