A cross-platform software render engine based on SDL2
- SDL2
- libpng
- xcode on osx
- vs2017 on windows
- you should be ensure cmake installed at your mac, and generate xcode project using command as:
git clone git@github.com:huailiang/lgRenderEngine.git
cd lgRenderEngine
cd build
sh build_osx.sh
-
compile visual studio project on windows:
cd build directory, and click build_vs2017.bat
-
libpng depends on zlib, so should be set -lz in "Other linker flags" at xcode project
-
in function transform_homogenize, y is reduced by 1 because SDL_RenderDrawPoint draw point start with left-top pivot.
tutor:
resources: asset format
libpng: http://www.libpng.org/pub/png/libpng.html
cmake: https://cmake.org/