Files Classes Functions Hierarchy
#include <triangledisplay.h>
Public Member Functions | |
| triangledisplaymesh (gobjContainer &_gx, TR const &_tr) | |
| The graphics output and triangle initialized. | |
| void | draw () |
| Write the graphics as gobj objects. | |
Definition at line 109 of file triangledisplay.h.
| triangledisplaymesh< TR >::triangledisplaymesh | ( | gobjContainer & | _gx, | |
| TR const & | _tr | |||
| ) | [inline] |
| void triangledisplaymesh< TR >::draw | ( | ) | [inline, virtual] |
Write the graphics as gobj objects.
Implements gobj.
Definition at line 485 of file triangledisplay.h.
References gobjContainer::push().
00486 { 00487 gx.push( new gobjglColor3ub(0,0,255) ); 00488 00489 gx.push( new gobjglBegin(GL_LINES) ); 00490 00491 gx.push( new gobjglVertex3f(tr.pi[0]) ); 00492 gx.push( new gobjglVertex3f(tr.pi[1]) ); 00493 gx.push( new gobjglVertex3f(tr.pi[0]) ); 00494 gx.push( new gobjglVertex3f(tr.pi[2]) ); 00495 gx.push( new gobjglVertex3f(tr.pi[1]) ); 00496 gx.push( new gobjglVertex3f(tr.pi[2]) ); 00497 00498 gx.push( new gobjglEnd() ); 00499 }
1.5.8