]> git.localhorst.tv Git - space.git/blobdiff - src/graphics/Canvas.cpp
force based movement
[space.git] / src / graphics / Canvas.cpp
index e4befc0bf04886003dc3d8f04ce409c0d5f15c46..93e3f212a9999fd3259c13df676aa4e85cfcd596 100644 (file)
@@ -97,12 +97,12 @@ void Canvas::Cross(Vector<int> pos, int extent) {
 
 void Canvas::Triangle(Vector<int> v1, Vector<int> v2, Vector<int> v3) {
        SDL_Point points[4] = { v1, v2, v3, v1 };
-       SDL_RenderDrawPoints(canv, points, 4);
+       SDL_RenderDrawLines(canv, points, 4);
 }
 
 void Canvas::Quad(Vector<int> v1, Vector<int> v2, Vector<int> v3, Vector<int> v4) {
        SDL_Point points[5] = { v1, v2, v3, v4, v1 };
-       SDL_RenderDrawPoints(canv, points, 5);
+       SDL_RenderDrawLines(canv, points, 5);
 }