https://github.com/Kazade/kazmath
A C math library targeted at games
https://github.com/Kazade/kazmath
Last synced: 12 months ago
JSON representation
A C math library targeted at games
- Host: GitHub
- URL: https://github.com/Kazade/kazmath
- Owner: Kazade
- License: other
- Created: 2008-08-14T12:46:44.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2020-12-17T19:26:46.000Z (about 5 years ago)
- Last Synced: 2024-12-06T18:59:35.002Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 2.87 MB
- Stars: 528
- Watchers: 61
- Forks: 94
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE.md
Awesome Lists containing this project
- awesome-c - kazmath - Maths library for games. [BSD-2-Clause](https://spdx.org/licenses/BSD-2-Clause.html) (Game Programming)
- awesome-c-zh - kazmath - 数学图书馆的游戏。[](https://spdx.org/licenses/BSD-2-Clause.html) (游戏编程)
- awesome - kazmath - A C math library targeted at games (etc)
- awesome-c - kazmath - Maths library for games. [BSD-2-Clause](https://spdx.org/licenses/BSD-2-Clause.html) (Game Programming)
- awesome-game-engine-dev - Kazmath - Math library targeted at games. (Libraries / C)
README
# Kazmath
Kazmath is a simple 3D maths library written in C. It was initially coded for use in my book, Beginning OpenGL Game Programming - Second edition, but rapidly gained a life of its own. Kazmath is now used by many different projects, and apparently is used in 25% of the worlds mobile games (yeah, I don't believe it either - but it's used in Cocos2d-x).
If you are using Kazmath in a project, I'd be happy to hear about it. Find me on Twitter as @kazade.
# Compiling
Compiling is simple using CMake, on Linux:
mkdir build
cd build
cmake ..
make
sudo make install
On other platforms use CMake to generate an appropriate project file.
If you want to build shared libraries you should pass `-DBUILD_SHARED_LIBS=YES` to the cmake command
# Contributing
There are many improvements that could be made to kazmath, including:
- More tests
- More optimizations
- More functions, and primitives
- More bindings (e.g. Python)
All contributions are welcome. Just send me a pull request on GitHub and I'll review and probably merge!
# Donations
If you like what I do, I'm happy to receive donations in DOGE to this address: D6uwEfChxWmWjFGs4jT8VRtabYaza5oAGx :)
Thank you!