Skip to content

HNSDFZ-OIER-2015/RSRL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSRL

This project is still WIP.

Progress

  • 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

Try it

NOTICE: Only tested on Ubuntu 16.04. Other platforms may not work.

  1. 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
  1. Clone this repo, prepare to build:
git clone https://github.com/riteme/RSRL.git
cd RSRL
mkdir build
cd build
  1. 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.

  1. 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.

Screenshots

TextureTest

Texture Test Screenshot

DrawLineTest

Draw Line Test Screenshot

DrawTriangleTest

Draw Triangle Test Screenshot

About

Riteme's Software Rendering Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.8%
  • CMake 3.2%