DOS VGA 3D Code
A downloadable example code
Hastily put together, rudimentary sample code for 3D drawing, VGA 320x200, 256 color mode 13h. No clipping or occlusion implemented. All rendered with Bresenham lines. 16-bit Real Mode x86, 186 instruction set required as-is, utilizing Fixed-Point math. Admittedly, this code might be quite a kludge to decipher, and includes some questionable coding choices.
Includes 1 C source file, a BAT with compiler settings set thru the 16-bit Watcom Compiler-Linker, and the compiled OBJ and EXE file.
Program Controls (as is when downloaded):
- W - Forward
- S - Back
- A - Left
- D - Right
- ESC - Quit Program
To be compiled in OpenWatcom C 1.9. Feel free to use this code as you see fit, but use at your own risk.
References Used:
Published | 10 days ago |
Status | Prototype |
Category | Other |
Author | FlyIsFry128 |
Tags | DOS, MS-DOS, sourcecode |
Download
Install instructions
1 C source file, a BAT with compiler settings, and the compiled OBJ and EXE file are included in the ZIP archive. Unzip to a desired destination, preferably within a folder used for DOSBox, or emulator, or network development environment of your choice. To compile as-is, use OpenWatcom C 1.9. The compiled program as-is will only run in DOS.
Leave a comment
Log in with itch.io to leave a comment.