What is the simplest solution for a program to draw lines and pixels using C++? : <p>I am an electronic engineer and shall be designing a hardware system that renders 2D and later 3D graphics. Before I can do things in hardware I will need to test the algorithms that I read in books. Basically I need to write C++ program that can draw lines and individual pixels on screen. I shall use this to test all of algorithms before I write VHDL to achieve the same in hardware.</p>

<p>What method/solution do I use to get a window that I can draw pixels and lines in using C++? I will test my projection matrix code and bresenham integer line algorithm code among other things. I do not need anything more complex as it will defeat the purpose e.g if the program automatically shades surfaces or does automatic hiding of hidden surface then the purpose is defeated.</p>
