commit 6051bb2c1dc4368389f18e13b1a4275435460280 parent 5c4b72d8d88fbbe30cab1bd117001d3432dfbfe3 Author: falkTX <falktx@gmail.com> Date: Tue, 13 May 2014 23:17:45 +0100 Implement Line::draw() Diffstat:
M | dgl/src/Geometry.cpp | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dgl/src/Geometry.cpp b/dgl/src/Geometry.cpp @@ -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>