/// ***** Private Method Headers *****
void glDrawCircle(int);
-void glDrawPolygon( const std::vector<Vector2>& points );
+void glDrawPolygon( const Array<Vector2>& points );
void sdlInit();
void glInit();
void graphics::drawPolygon
(
- const std::vector<Vector2>& points,
+ const Array<Vector2>& points,
const float* color
)
{
glEnd();
}
-void glDrawPolygon( const std::vector<Vector2>& points )
+void glDrawPolygon( const Array<Vector2>& points )
{
glBegin(GL_POLYGON);
- for(unsigned int n = 0; n < points.size(); n++)
+ for(unsigned int n = 0; n < points.getLength(); n++)
{
- const Vector2& vec = points.at(n);
+ const Vector2& vec = points.getAt(n);
glVertex3f(vec.m_fX, vec.m_fY, 0);
}