API Referencecommon
cdefGpuMesh Reference
Module defined in `lua/common/cdefGpuMesh.lua`. Defines FFI C struct for GPU mesh primitive data. Most structs are commented out as reference only.
Module defined in lua/common/cdefGpuMesh.lua. Defines FFI C struct for GPU mesh primitive data. Most structs are commented out as reference only.
Exports
No Lua exports. Registers FFI C definitions when ffi is available.
FFI Types
gpuPrimitive_t
- Type: FFI struct
- Description: Represents a GPU mesh primitive
- Fields:
startIndex- uint32_t - Starting index in the index bufferindexCount- uint32_t - Number of indicesmaterialId- uint32_t - Material ID for this primitive
Internal Notes
- Additional structs (
gpuFlexMesh_t,gpuPropMesh_t,gpuMesh_t) are commented out but preserved as reference - These commented structs describe full GPU mesh data with vertices, normals, tangents, UVs, vertex colors, and sub-meshes
cdefDebugDraw Reference
Module defined in `lua/common/cdefDebugDraw.lua`. Defines FFI C definitions for debug drawing primitives (spheres, cylinders, lines, text, triangles) used by the engine's debug visualization system.
cdefImgui Reference
Module defined in `lua/common/cdefImgui.lua`. Defines a single FFI C function for ImGui input text callback integration.