Skip to content

darbyjohnston/tinygfx

Repository files navigation

License Build Status codecov

tinygfx

Small experiments with graphics programming.

Building

Building on Linux

Clone the repository:

git clone https://github.com/darbyjohnston/tinygfx.git

Run CMake:

cmake -S tinygfx/etc/SuperBuild -B Release -DCMAKE_INSTALL_PREFIX=$PWD/Release/install -DCMAKE_PREFIX_PATH=$PWD/Release/install -DCMAKE_BUILD_TYPE=Release

Start the build:

cmake --build Release -j 4 --config Release

Try running the simple example:

./Release/tinygfx/src/tinygfx-build/examples/render/simple/simple

Building on macOS

Clone the repository:

git clone https://github.com/darbyjohnston/tinygfx.git

Run CMake:

cmake -S tinygfx/etc/SuperBuild -B Release -DCMAKE_INSTALL_PREFIX=$PWD/Release/install -DCMAKE_PREFIX_PATH=$PWD/Release/install -DCMAKE_BUILD_TYPE=Release

Start the build:

cmake --build Release -j 4 --config Release

Try running the simple example:

./tinygfx/src/tinygfx-build/examples/render/simple/simple

Notes for building on macOS

The CMake variable "CMAKE_OSX_ARCHITECTURES" can be used to specify the build architecture:

-DCMAKE_OSX_ARCHITECTURES=x86_64
-DCMAKE_OSX_ARCHITECTURES=arm64

Building on Windows

Clone the repository:

git clone https://github.com/darbyjohnston/tinygfx.git

Run CMake:

cmake -S tinygfx\etc\SuperBuild -B Release -DCMAKE_INSTALL_PREFIX=%CD%\Release\install -DCMAKE_PREFIX_PATH=%CD%\Release\install -DCMAKE_BUILD_TYPE=Release

Start the build:

cmake --build Release -j 4 --config Release

Try running the simple example:

.\Release\tinygfx\src\tinygfx-build\examples\render\simple\Release\simple

About

Small experiments with graphics programming.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages