RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referencecommon

ImGui FFI

Module defined in `lua/common/cdefImgui.lua`. Defines a single FFI C function for ImGui input text callback integration.

Module defined in lua/common/cdefImgui.lua. Defines a single FFI C function for ImGui input text callback integration.


Exports

No Lua exports. Registers FFI C definition when ffi is available.

FFI C Functions

ImGuiInputTextCallbackLua(data)

Callback function for ImGui input text fields, bridging C++ ImGui to Lua.

  • Parameters:
    • data - const void* - Pointer to ImGui callback data
  • Returns: int - Callback result

Internal Notes

  • Used internally by the ImGui binding layer for text input callbacks

See Also

  • cdefDebugDraw Reference - Related reference
  • cdefGpuMesh Reference - Related reference
  • cdefMath Reference - Related reference
  • Common Libraries Overview - Guide

GPU Mesh Structs

Module defined in `lua/common/cdefGpuMesh.lua`. Defines FFI C struct for GPU mesh primitive data. Most structs are commented out as reference only.

Math Structs (FFI)

Module defined in `lua/common/cdefMath.lua`. Defines FFI C structs for vec3 and quat types used by the math library.

On this page

ExportsFFI C FunctionsImGuiInputTextCallbackLua(data)Internal NotesSee Also