https://github.com/madmann91/proto
Basic infrastructure for graphics-related projects
https://github.com/madmann91/proto
basics cpp20 header-only rasterization ray-tracing
Last synced: over 1 year ago
JSON representation
Basic infrastructure for graphics-related projects
- Host: GitHub
- URL: https://github.com/madmann91/proto
- Owner: madmann91
- License: mit
- Created: 2021-05-24T20:45:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T18:20:01.000Z (about 4 years ago)
- Last Synced: 2025-01-21T11:33:44.507Z (over 1 year ago)
- Topics: basics, cpp20, header-only, rasterization, ray-tracing
- Language: C++
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Proto
`proto` is an utility library that I use in my own graphics-related projects.
It contains basic infrastructure to do small vector linear algebra, and some simple ray-tracing constructs.
## Installing
Since this project is a header-only library, it can be added to your project simply by
writing the following CMake code to your CMakeLists.txt:
add_subdirectory(/path/to/proto)
This line will provide the target `proto::proto`, which you can link against.
Alternatively, if you have several projects that depend on proto, you can use a call to
`find_package(proto)`:
find_package(proto REQUIRED)
This will require to set the CMake variable `proto_DIR`. For that, you can alternatively
use the build directory, or install the library somewhere, say `/path/to/install`, and
set `proto_DIR` to the path `/path/to/install/lib/cmake`.