Files Classes Functions Hierarchy
#include <d2simplexintersection.h>
Public Member Functions | |
| d2simplexOutline (d2simplex &_s) | |
| void | draw () |
| Draw the object. | |
Definition at line 9 of file d2simplexintersection.h.
| d2simplexOutline::d2simplexOutline | ( | d2simplex & | _s | ) |
| void d2simplexOutline::draw | ( | ) | [virtual] |
Draw the object.
Implements gobj.
Definition at line 52 of file d2simplexintersection.cpp.
References d2simplex::v, point2< T >::x, and point2< T >::y.
Referenced by d2simplexintersection::draw().
00053 { 00054 glBegin(GL_LINES); 00055 00056 glVertex3f(s.v[0].x,s.v[0].y,0.0); 00057 glVertex3f(s.v[1].x,s.v[1].y,0.0); 00058 glVertex3f(s.v[1].x,s.v[1].y,0.0); 00059 glVertex3f(s.v[2].x,s.v[2].y,0.0); 00060 glVertex3f(s.v[0].x,s.v[0].y,0.0); 00061 glVertex3f(s.v[2].x,s.v[2].y,0.0); 00062 00063 glEnd(); 00064 }
1.5.8