Skip to content

qwiff-dogg/arcball-cpp

 
 

Repository files navigation

Arcball Camera

A Shoemake Arcball camera in C++ which uses GLM for math. The camera works in a right handed coordinate system for OpenGL. The camera takes inputs from your application in normalized device coordinates, where the top-left of the screen is [-1, 1] and the bottom right is [1, -1]. To use the camera in your own code you can either build and install it somewhere and find it via CMake, or just drop the files into your project. In the latter case you'll need to set -DGLM_ENABLE_EXPERIMENTAL in your compile flags. You can either get the camera transformation matrix or the eye position, look and up vectors depending on your application.

An example which uses the camera to view a cube rendered with OpenGL is included under example/. To build the example you'll also need SDL2 for window management.

About

A Shoemake Arcball camera in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.4%
  • C++ 4.6%
  • CMake 3.0%