This repo showcases 2D line drawing using Bresenham, Midpoint, and Parametric algorithms with SDL. It includes features for clearing the screen, drawing pixels and markers, and generating random lines. Press 1, 2, or 3 to draw lines in red, green, or blue. Press 4 to clear the screen and display a starry sky.
cplusplus algorithms sdl2 graphics-programming parametric 2d-graphics bresenham-algorithm midpoint-algorithm 2d-line-drawing-algorithms-with-sdl
- Updated
Sep 3, 2024 - C++