GE Lua Documentation

Press F to search!

cast

Definition


-- @/
            local ffi = require('ffi')
            ffi.cast = function(type, obj) return obj end
        :3
function cast(...)

Callers

@/lua/common/extensions/ui/imguiUtils.lua
    --  -- assumes font 2 is monospaced
    --  local f = ffi.cast("ImFont*", imgui.GetIO().Fonts.Fonts.Data) -- Data is an ImVector, so do some pointer math
    --  print('font 1: ' .. tostring(f))