Browse Source

Implement Line::draw()

gh-pages
falkTX 9 years ago
parent
commit
6051bb2c1d
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      dgl/src/Geometry.cpp

+ 8
- 1
dgl/src/Geometry.cpp View File

@@ -406,7 +406,14 @@ void Line<T>::moveBy(const Point<T>& pos) noexcept
template<typename T>
void Line<T>::draw()
{
// TODO
glBegin(GL_LINES);

{
glVertex2i(fPosStart.fX, fPosStart.fY);
glVertex2i(fPosEnd.fX, fPosEnd.fY);
}

glEnd();
}

template<typename T>


Loading…
Cancel
Save