This project is still WIP.
- Basis (
Color
,Vector
,Matrix
, etc.) - Viewer Window
- Texture
- Renderer (At pixels level)
- Pixel drawing
- Line rasterization
- Triangle rasterization
- Line clipping
- 2D Software Rendering
- 3D Software Rendering
NOTICE: Only tested on Ubuntu 16.04. Other platforms may not work.
- make sure you have installed SDL2 and cmake (>= 2.6). If you haven't install it, use
apt-get
to install.
sudo apt-get install libsdl2-dev libsdl2-image-dev cmake
- Clone this repo, prepare to build:
git clone https://github.com/riteme/RSRL.git
cd RSRL
mkdir build
cd build
- Generate Makefiles:
cmake ..
If you want to build RSRL's tests (in tests
folder), please add -DBUILD_TESTS=ON
to the end of command line.
To build with debugging symbols, add -DDEBUG=ON
.
- Compile it:
make
If no error reported, RSRL should be compiled successfully.
Avaliable tests with a display window (which means you can have fun with them):
TextureTest
DrawLineTest
DrawTriangleTest
If you have built with -DBUILD_TESTS=ON
, you will found them in build
folder.