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 module that contains binding to the OpenGL Mathematics 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.
- Just setup ChaiScript first in your project
- Include the
chaiscript_glm.hpp
file in any way you see fits your project (copy it in your code, git-submodule this repo...) - call the
get_glm_module()
function, and add it to your ChaiScript instance:
#include <glm/ghm.hpp>
#include <chaiscript/chaiscript.hpp>
#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!