⠀
WARNING: Due to usage of old C++ compiler, the code constains a lot of unsafe code ⠀⠀
⠀
The whole idea of the project is to recreate 3d render pipeline on MS-DOS. Right now, it's able to render models only in wireframe mode.
- If you don't have a machine that can run MS-DOS, you should install DOSBox or any other emulator.
- Using DOSBox options file, you should modify the following line
cycles=auto
to
cycles=max
- Mount the folder you cloned the repository to. In my case it's:
mount c F:\DosBox
C:
- Add compiler folder to PATH variable, using following command:
PATH=Z:\;C:\TC\BIN
- "cd" to the TEST folder and run TEST.EXE
WARNING: Every time you run your emulator you have to repeat steps 3, 4 and 5. To automate this, open DOSBox option file and write those commands in autoexec section
Copy dosgl.h, dglm.h and shader.h from INCLUDE and DOSGL.LIB from BIN folder into your project folder.
dosgl.h is an interface for communicating with the pipeline. All of the functions are trying to copy functionality of modern OpenGL.
If you never used OpenGL before, learn basic concepts on LearnOpenGL
This header contains basic operations with matrices and vectors. It's like glm, but much smaller.
Throught using this library you will need to create your shader. It's done by creating a class that derives from abstract class shader. More info is available in header itself.
To get a basic idea on how to use DOSGL, investigate TEST folder that contains simple cpp file and bat file that compiles it.
Run COMP.BAT to compile DOSGL. The result is in BIN folder