https://github.com/Ybalrid/chaiscript-glm
OpenGL Mathematics bindings for ChaiScript
https://github.com/Ybalrid/chaiscript-glm
Last synced: 3 months ago
JSON representation
OpenGL Mathematics bindings for ChaiScript
- Host: GitHub
- URL: https://github.com/Ybalrid/chaiscript-glm
- Owner: Ybalrid
- License: unlicense
- Created: 2019-03-07T09:07:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T10:10:36.000Z (over 3 years ago)
- Last Synced: 2024-10-11T07:19:54.357Z (7 months ago)
- Language: C++
- Size: 175 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chaiscript-glm
**This is Work In Progress and is still lacking a lot of bindings to most functions and types**OpenGL Mathematics bindings for ChaiScript
This is a single header file that buids and return a [ChaiScript](https://github.com/chaiscript/chaiscript) module that contains binding to the [OpenGL Mathematics](https://glm.g-truc.net/0.9.9/index.html) library, intended to provide vector math capabilities to a scripting interface for 3D video game engines, using OpenGL and GLSL's conventions, but in ChaiScript.
## How to use
1) Just setup [ChaiScript first](https://github.com/ChaiScript/ChaiScript/blob/develop/cheatsheet.md#initializing-chaiscript) in your project
2) Include the `chaiscript_glm.hpp` [file](https://raw.githubusercontent.com/Ybalrid/chaiscript-glm/master/chaislcript_glm.hpp) in any way you see fits your project (copy it in your code, git-submodule this repo...)
3) call the `get_glm_module()` function, and add it to your ChaiScript instance:
```cpp
#include
#include
#include "chaiscript_glm.hpp"
int main()
{
chaiscript::ChaiScript chai; //Init scripting engine
chai.add(get_glm_module()); //Add glm
// do awesome and wonderful things here!
}
```
This will allow you to be able to use glm as part of your scripting interface!
