void Vertex::draw(){ if (!visible_) { return; } glColor4f( color_(0), color_(1), color_(2), color_(3) ); draw_without_color(); };
void Vertex::draw( const Matrix44& adjust_matrix, const Vec3& bias ) { if (!visible_) { return; } glColor4f( color_(0), color_(1), color_(2), color_(3) ); draw_without_color(adjust_matrix, bias); }
void Mesh::draw_without_color() const { if (_quads.size() == 0) return; glBegin(GL_QUADS); const auto first = _quads.begin(); first->draw_without_color(); const auto second = first + 1; std::for_each(second, _quads.end(), [](const Quad& q){q.draw_without_color(); }); glEnd(); }