https://github.com/judah-caruso/lua-handmademath
LuaJIT bindings for Handmade Math
https://github.com/judah-caruso/lua-handmademath
handmade handmade-math lua luajit
Last synced: about 2 months ago
JSON representation
LuaJIT bindings for Handmade Math
- Host: GitHub
- URL: https://github.com/judah-caruso/lua-handmademath
- Owner: judah-caruso
- License: cc0-1.0
- Created: 2024-08-19T15:35:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T23:19:14.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T11:41:38.312Z (over 1 year ago)
- Topics: handmade, handmade-math, lua, luajit
- Language: C
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lua Handmade Math
LuaJIT bindings for [Handmade Math](https://github.com/HandmadeMath/HandmadeMath).
## Usage:
There are two versions of this module:
- Bindings (Simple exposure of the C API to Lua)
- Wrapper (A thin wrapper over the bindings; recommended)
```lua
-- To use the bindings:
local hmm = require 'path.to.hmm' -- See: hmm.lua for caveats
-- To use the wrapper:
local hmm = require 'path.to.wrapper' -- See: wrapper.lua for caveats
```
## Installation:
```sh
git clone https://github.com/judah-caruso/lua-handmademath hmm
```
## Building & Customization:
The `lib` directory contains the Handmade Math header and a few build scripts to
generate a dynamic library for LuaJIT to load. Running the `build_[os]` script
will compile Handmade Math for your platform.
To customize this module, modify `lib/HandmadeMath.c` and recompile.
## License:
Public Domain