
A tiny OpenGL 3D engine library written in and for C++.
Dependencies
Building from source
This project is built using CMake
cd build
cmake \
-DBUILD_TESTS=ON \
-DBUILD_EXAMPLES=ON \
..
make
To run the tests, use:
Docs
You can view the docs here.
Examples
More examples are located in the examples/ directory.
#include <cat3d.hpp>
int main() {
namespace obj = cat3d::obj;
{ { cat3d::WIDTH, 800 },
{ cat3d::HEIGHT, 600 },
{ cat3d::TITLE, "spinning-cube" },
obj::camera* cam = root->
create<obj::camera>(glm::vec3(0, 2, -4), glm::vec3(0, 0, 0), 75.f);
obj::model* cube = root->
create<obj::model>(
"examples/cube.obj");
float dts = dt.as_seconds();
cube->transform().rotate(glm::vec3(1.f * dts, 0.2f * dts, 0));
});
return cat3d::run();
}