Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month 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 (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-20T23:19:14.000Z (5 months ago)
- Last Synced: 2024-08-21T03:33:01.101Z (5 months 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
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