• Stars
    star
    516
  • Rank 82,542 (Top 2 %)
  • Language
    C
  • License
    Other
  • Created over 15 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A C math library targeted at games

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!

More Repositories

1

dreampi

A daemon that creates a bridge between a Dreamcast's Dial-up Modem, and the Internet via the Pi
Python
114
star
2

simulant-engine

A general purpose game engine for Linux, Android and the SEGA Dreamcast!
C++
68
star
3

GLdc

GLdc: an OpenGL implementation for the SEGA Dreamcast
C
47
star
4

bounce

Bounce is a 3D physics engine for games.
C++
32
star
5

img4dc

Slightly patched version of img4dc tools
C
19
star
6

ALdc

Basic OpenAL implementation for the Dreamcast
C
10
star
7

kazengine

A Quake 2/3 rendering engine
C++
10
star
8

kfs

A Python-like filesystem API for C++
C++
9
star
9

Ignition-Tools

A set of tools for ripping and converting resources from Ignition
Python
8
star
10

libglpp

Yet another GL implementation for the Dreamcast (WIP)
C++
6
star
11

delimit

An opinionated text editor
C++
5
star
12

Spindash

A Sonic-style physics engine
C++
5
star
13

sleuth

A minimal Python mocking library
Python
5
star
14

kazbase

A simple API wrapper around the STL, boost and curl
C++
4
star
15

Trophies

An achievements API for Linux
Python
3
star
16

Kaztimer

A small timer library for game development
C++
3
star
17

K4X

A Platform Game Engine
C++
3
star
18

kazsignal

A lightweight signal/slot implementation for C++ using C++11
C++
2
star
19

simulant-tools

Repository for the Simulant command-line tools
Python
2
star
20

Kazphysics3

A basic 2D physics engine written in C++ but with C-linkage. Designed primarily for platform games.
C
2
star
21

Kaztext

A simple text output library for OpenGL
C++
2
star
22

libgl-tests

A test framework and tests for the Dreamcast libGL
Python
2
star
23

stasher

An in-memory, fast implementation of the GAE Datastore
C++
2
star
24

simulant-assets

Bundled assets for the Simulant game engine
1
star
25

NeHe-Website

Python
1
star
26

24Hours

Let's see what I can come up with in 24 hours
C++
1
star
27

Platformation2

C++
1
star
28

pcre

A mirror of PCRE with an Android MK file
C
1
star
29

kazlog

C++
1
star
30

bounce-1

Bounce is a 3D physics engine for games.
C++
1
star
31

Tasks

Python
1
star
32

platformation

A 2D platform game map editor
C++
1
star
33

wargames-tools

Investigation into the file formats of the 1998 game Wargames
C++
1
star
34

KazTest

A simple C++ testing framework which uses a Python script for test discovery
C++
1
star
35

openal-soft

An Androidified openal-soft (basically simplified version of the apportable one)
C
1
star
36

ode

An Androidified ODE (just has an Android.mk added)
C++
1
star