Skip to content

Dear ImGUI <> LuaJIT - FFI wrapper generator

License

Notifications You must be signed in to change notification settings

BeamNG/ImGuiLuaGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

ImGui LuaJIT FFI wrapper Generator

This is a python3 script that generates LuaJIT FFI bindings and lua wrappers by parsing the imgui header file via clang.

Used in BeamNG to generate the ImGui wrapper

  1. install all the dependencies:

    • on Ubuntu 20.04:
      apt install python3-pip clang libclang-dev libclang-6.0-dev
      pip3 install clang
    • on Windows 10: ensure python3 and pip are installed and usable from command line
      pip3 install clang
      install LLVM to the default install path, using a prebuilt *win64.exe installer from: https://github.com/llvm/llvm-project/releases
  2. run it like this:

    python gen.py imgui.h

Warning: It contains specific fixes for BeamNG. Please read the code to remove/improve them

About

Dear ImGUI <> LuaJIT - FFI wrapper generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages