DOS Graphics Programming

Okay, here we have basic DOS graphics programming. I'm only covering the very basics so you can gain an understanding of the techniques involved to prepare you to move onto DirectX and Win32. First I'll start with the easiest graphics mode to program in, and from there we will do some basic drawing etc. Then you should move onto my Win32 and DirectX tutorials. Email me if you have problems. Please note that the routines are not the fastest/most effecient you can develop; they are for educational purposes and sacrifice speed for ease of understanding.

Code was developed for Borland Turbo C/C++ 3.0 for DOS, but it has been tested and works with Borland Turbo C++ 4.52 (remember to create a project and set target applicatoin to DOS 16-bit for 4.52).

  1. Setting Graphics Mode and Pixel Plotting
  2. Drawing Lines
  3. Drawing Circles
  4. Palettes and Vertical Retrace
  5. Virtual Screens

Back to the main page