What is the easiest and shortest way to draw a 2d line in c/c++?
- by Mike
I am fairly new to c/c++ but I do have experiance with directx and opengl with java and c#. My goal is to create a 2d game in c with under 2 pages of code. Most of what I have seen requires 3 pages of code to just get a window running.
I would like to know the shortest code to get a window running where I can draw lines. I believe this can be done…