SkillAgentSearch skills...

ImGuiLuaGen

Dear ImGUI <> LuaJIT - FFI wrapper generator

Install / Use

/learn @BeamNG/ImGuiLuaGen
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2mo ago
Forks2

Languages

Python

Security Score

90/100

Audited on Jan 20, 2026

No findings