Files Classes Functions Hierarchy
#include <d2simplexintersection.h>
Public Member Functions | |
| d2simplexFill (d2simplex &_s) | |
| void | draw () |
| Draw the object. | |
Definition at line 20 of file d2simplexintersection.h.
| d2simplexFill::d2simplexFill | ( | d2simplex & | _s | ) |
| void d2simplexFill::draw | ( | ) | [virtual] |
Draw the object.
Implements gobj.
Definition at line 72 of file d2simplexintersection.cpp.
References d2simplex::v, point2< T >::x, and point2< T >::y.
00073 { 00074 glBegin(GL_TRIANGLES); 00075 00076 glVertex3f(s.v[0].x,s.v[0].y,0.0); 00077 glVertex3f(s.v[1].x,s.v[1].y,0.0); 00078 glVertex3f(s.v[2].x,s.v[2].y,0.0); 00079 00080 glVertex3f(s.v[2].x,s.v[2].y,0.0); 00081 glVertex3f(s.v[1].x,s.v[1].y,0.0); 00082 glVertex3f(s.v[0].x,s.v[0].y,0.0); 00083 00084 glEnd(); 00085 }
1.5.8