cube13h is a simple 3D graphics demonstration program written in Turbo C++ and x86 assembly for PC DOS. It demonstrates basic graphics programming techniques to render and animate a 3D cube on the screen, in mode 13h (320x200) colors.
- Triangle rasterization.
- 3D vertex transformations.
- Perspective projection to simulate depth.
- Backface culling.
- Bresenham's line algorithm to draw lines between vertices to create the cube’s edges.
- Double buffering to reduce flickering and tearing.
- Turbo C++ (>= 3.0)
- Turbo Assembler (>= 4.1)
- DOSBox or a real DOS computer
- Download or clone the cube13h repository to your local machine.
- Open a DOS terminal or DOS emulator such as DOSBox.
- Navigate to the directory containing the cube13h executable.
- Run the cube13h executable by typing
cube13h
and pressing Enter.
- Press the ESC key to exit the application.
If you want to build cube13h from source, you'll need Turbo C++ and the related build tools.
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.
Developed by M. Sami Gürpınar