mirror of
https://github.com/cimgui/cimgui.git
synced 2026-08-28 12:31:32 +00:00
Compare commits
6 Commits
1.92.9b
...
docking_in
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
700140771a | ||
|
|
0fe23bd335 | ||
|
|
91ea8b056f | ||
|
|
773f3d56c4 | ||
|
|
ba1e982860 | ||
|
|
a5ae0de007 |
@@ -1,100 +1,22 @@
|
||||
local M = {}
|
||||
local insert = table.insert
|
||||
local function ToStr(t,dometatables)
|
||||
local function basicToStr (o)
|
||||
if type(o) == "number" or type(o)=="boolean" then
|
||||
return tostring(o)
|
||||
elseif type(o) == "string" then
|
||||
return string.format("%q", o)
|
||||
else
|
||||
return tostring(o) --"nil"
|
||||
end
|
||||
end
|
||||
local strTG = {}
|
||||
--local basicToStr= basicSerialize --tostring
|
||||
if type(t) ~="table" then return basicToStr(t) end
|
||||
local recG = 0
|
||||
local nameG="SELF"..recG
|
||||
local ancest ={}
|
||||
local function _ToStr(t,strT,rec,name)
|
||||
if ancest[t] then
|
||||
strT[#strT + 1]=ancest[t]
|
||||
return
|
||||
end
|
||||
rec = rec + 1
|
||||
ancest[t]=name
|
||||
strT[#strT + 1]='{'
|
||||
local count=0
|
||||
-------------
|
||||
--if t.name then strT[#strT + 1]=string.rep("\t",rec).."name:"..tostring(t.name) end
|
||||
----------------
|
||||
for k,v in pairs(t) do
|
||||
count=count+1
|
||||
strT[#strT + 1]="\n"
|
||||
local kstr
|
||||
if type(k) == "table" then
|
||||
local name2=string.format("%s.KEY%d",name,count)
|
||||
strT[#strT + 1]=string.rep("\t",rec).."["
|
||||
local strTK = {}
|
||||
_ToStr(k,strTK,rec,name2)
|
||||
kstr=table.concat(strTK)
|
||||
strT[#strT + 1]=kstr.."]="
|
||||
else
|
||||
kstr = basicToStr(k)
|
||||
strT[#strT + 1]=string.rep("\t",rec).."["..kstr.."]="
|
||||
end
|
||||
|
||||
if type(v) == "table" then
|
||||
local name2=string.format("%s[%s]",name,kstr)
|
||||
_ToStr(v,strT,rec,name2)
|
||||
else
|
||||
strT[#strT + 1]=basicToStr(v)
|
||||
end
|
||||
end
|
||||
if dometatables then
|
||||
local mt = getmetatable(t)
|
||||
if mt then
|
||||
local namemt = string.format("%s.METATABLE",name)
|
||||
local strMT = {}
|
||||
_ToStr(mt,strMT,rec,namemt)
|
||||
local metastr=table.concat(strMT)
|
||||
strT[#strT + 1] = "\n"..string.rep("\t",rec).."[METATABLE]="..metastr
|
||||
end
|
||||
end
|
||||
strT[#strT + 1]='}'
|
||||
rec = rec - 1
|
||||
return
|
||||
end
|
||||
_ToStr(t,strTG,recG,nameG)
|
||||
return table.concat(strTG)
|
||||
end
|
||||
M.ToStr = ToStr
|
||||
function M.prtable(...)
|
||||
for i=1, select('#', ...) do
|
||||
local t = select(i, ...)
|
||||
print(ToStr(t))
|
||||
print("\n")
|
||||
end
|
||||
end
|
||||
local function deepcopy(object)
|
||||
local lookup_table = {}
|
||||
local function _copy(object)
|
||||
--assert(object~=REST)
|
||||
if type(object) ~= "table" then
|
||||
return object
|
||||
elseif lookup_table[object] then
|
||||
return lookup_table[object]
|
||||
end
|
||||
local new_table = {}
|
||||
lookup_table[object] = new_table
|
||||
for index, value in pairs(object) do
|
||||
new_table[_copy(index)] = _copy(value)
|
||||
end
|
||||
return setmetatable(new_table, getmetatable(object))
|
||||
end
|
||||
return _copy(object)
|
||||
end
|
||||
M.deepcopy = deepcopy
|
||||
local extra = require"cpp2ffi_extra"
|
||||
|
||||
M.prtable = extra.prtable
|
||||
M.table_do_sorted = extra.table_do_sorted
|
||||
M.deepcopy = extra.deepcopy
|
||||
M.copyfile = extra.copyfile
|
||||
local save_data = extra.save_data
|
||||
M.save_data = save_data
|
||||
local read_data = extra.read_data
|
||||
M.read_data = read_data
|
||||
M.func_implementation = extra.func_implementation
|
||||
M.func_header_generate_structs = extra.func_header_generate_structs
|
||||
M.func_header_generate_funcs = extra.func_header_generate_funcs
|
||||
M.func_header_generate = extra.func_header_generate
|
||||
M.serializeTableF = extra.serializeTableF
|
||||
------------------------------------------------------------
|
||||
|
||||
local function str_split(str, pat)
|
||||
local t = {}
|
||||
local fpat = "(.-)" .. pat
|
||||
@@ -332,42 +254,6 @@ local function parse_enum_value(value, allenums,dontpost)
|
||||
end
|
||||
M.parse_enum_value = parse_enum_value
|
||||
--------------------------------------------------------------------------
|
||||
local function save_data(filename,...)
|
||||
local file,err = io.open(filename,"w")
|
||||
if not file then error(err) end
|
||||
for i=1, select('#', ...) do
|
||||
local data = select(i, ...)
|
||||
file:write(data)
|
||||
end
|
||||
file:close()
|
||||
end
|
||||
M.save_data = save_data
|
||||
----------------------------------------
|
||||
local function read_data(filename)
|
||||
local hfile,err = io.open(filename,"r")
|
||||
if not hfile then error(err) end
|
||||
local hstrfile = hfile:read"*a"
|
||||
hfile:close()
|
||||
return hstrfile
|
||||
end
|
||||
M.read_data = read_data
|
||||
------------------------------------------------------------
|
||||
local function copyfile(src,dst,blocksize)
|
||||
blocksize = blocksize or 1024*4
|
||||
print( "copyfile", src, dst)
|
||||
local srcf, err = io.open(src,"rb")
|
||||
if not srcf then error(err) end
|
||||
local dstf, err = io.open(dst,"wb")
|
||||
if not dstf then error(err) end
|
||||
while true do
|
||||
local data = srcf:read(blocksize)
|
||||
if not data then break end
|
||||
dstf:write(data)
|
||||
end
|
||||
srcf:close()
|
||||
dstf:close()
|
||||
end
|
||||
M.copyfile = copyfile
|
||||
|
||||
--gives the re table
|
||||
local function getRE()
|
||||
@@ -747,7 +633,7 @@ end
|
||||
local function parseFunction(self,stname,itt,namespace,locat)
|
||||
|
||||
local lineorig,comment = split_comment(itt.item)
|
||||
line = clean_spaces(lineorig)
|
||||
local line = clean_spaces(lineorig)
|
||||
--move *
|
||||
line = moveptr(line)
|
||||
|
||||
@@ -1030,7 +916,7 @@ local function parseFunction(self,stname,itt,namespace,locat)
|
||||
--name_conversion
|
||||
local rr = defT.ret:gsub("*","")
|
||||
rr = rr:gsub("const ","")
|
||||
if self.name_conversion and self.name_conversion[rr] then
|
||||
if self.name_conversion[rr] then
|
||||
defT.ret = defT.ret:gsub(rr,self.name_conversion[rr])
|
||||
end
|
||||
defT.retref = ret:match("&")
|
||||
@@ -1560,7 +1446,7 @@ local function ADDnonUDT(FP)
|
||||
asp = "("
|
||||
for i,v in ipairs(def.argsT) do
|
||||
local name = v.name
|
||||
argsTN[i] = deepcopy(v)
|
||||
argsTN[i] = M.deepcopy(v)
|
||||
if v.ret then --function pointer
|
||||
local f_ = v.has_cdecl and "(__cdecl*" or "(*"
|
||||
asp = asp .. v.ret .. f_ .. v.name .. ")" .. v.signature .. ","
|
||||
@@ -1635,8 +1521,10 @@ local function ADDnonUDT(FP)
|
||||
def.skipped = skip
|
||||
FP.skipped[def.ov_cimguiname] = true
|
||||
else
|
||||
def.call_args_old = def.call_args
|
||||
def.call_args = caar
|
||||
--def.call_args_old = def.call_args
|
||||
if caar~=def.call_args then
|
||||
def.call_args_conv = caar
|
||||
end
|
||||
def.args = asp
|
||||
def.argsT = argsTN
|
||||
end
|
||||
@@ -1820,91 +1708,8 @@ local function printItems(items)
|
||||
end
|
||||
end
|
||||
|
||||
-------------------------------json saving
|
||||
--avoid mixed tables (with string and integer keys)
|
||||
local function json_prepare(defs)
|
||||
--delete signatures in function
|
||||
for k,def in pairs(defs) do
|
||||
for k2,v in pairs(def) do
|
||||
if type(k2)=="string" then
|
||||
def[k2] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
return defs
|
||||
end
|
||||
|
||||
local function paramListWithoutDots(params)
|
||||
i, j = string.find(params, "%.%.%.")
|
||||
while i > 1 do
|
||||
i = i - 1
|
||||
c = string.sub(params,i,i)
|
||||
if c == "," then
|
||||
return string.sub(params, 1, i-1) .. params:sub(j+1)
|
||||
elseif c == "(" then
|
||||
return string.sub(params, 1, i) .. params:sub(j+1)
|
||||
end
|
||||
end
|
||||
|
||||
error("paramListWithoutDots failed")
|
||||
return "()"
|
||||
end
|
||||
|
||||
local function save_output(self)
|
||||
--add VARGS0
|
||||
local defsVARG = {}
|
||||
for k,defs in pairs(self.defsT) do
|
||||
for i, def in ipairs(defs) do
|
||||
if def.isvararg then
|
||||
--print("vararg",k,#def)
|
||||
local def1 = deepcopy(def)
|
||||
def1.isvararg = nil
|
||||
def1.isVARG0 = true
|
||||
def1.argsT[#def1.argsT] = nil
|
||||
def1.args = paramListWithoutDots(def1.args)
|
||||
def1.call_args_old = paramListWithoutDots(def1.call_args_old)
|
||||
def1.call_args = paramListWithoutDots(def1.call_args)
|
||||
def1.signature = paramListWithoutDots(def1.signature)
|
||||
def1.cimguiname = def1.cimguiname.."0"
|
||||
def1.ov_cimguiname = def1.ov_cimguiname.."0"
|
||||
defsVARG[k.."0"] = defsVARG[k.."0"] or {}
|
||||
table.insert(defsVARG[k.."0"], def1)
|
||||
end
|
||||
end
|
||||
end
|
||||
for k,def in pairs(defsVARG) do
|
||||
self.defsT[k] = def
|
||||
end
|
||||
--add manual not present in module
|
||||
for k,v in pairs(self.manuals) do
|
||||
if not self.defsT[k] then
|
||||
--print("add manual",k)
|
||||
self.defsT[k] = {v}
|
||||
else
|
||||
--print("skipped manual",k)
|
||||
end
|
||||
end
|
||||
|
||||
----------------------
|
||||
save_data("./output/overloads.txt",self.overloadstxt)
|
||||
save_data("./output/definitions.lua",M.serializeTableF(self.defsT))
|
||||
save_data("./output/structs_and_enums.lua",M.serializeTableF(self.structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.lua",M.serializeTableF(self.typedefs_dict))
|
||||
save_data("./output/constants.lua",M.serializeTableF(self.constants))
|
||||
|
||||
local json = require"json"
|
||||
local json_opts = {dict_on_empty={defaults=true}}
|
||||
save_data("./output/definitions.json",json.encode(json_prepare(self.defsT),json_opts))
|
||||
save_data("./output/structs_and_enums.json",json.encode(self.structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.json",json.encode(self.typedefs_dict))
|
||||
save_data("./output/constants.json",json.encode(self.constants))
|
||||
|
||||
local modulename = self.modulename
|
||||
copyfile("./output/"..modulename..".h", "../"..modulename..".h")
|
||||
copyfile("./output/"..modulename..".cpp", "../"..modulename..".cpp")
|
||||
os.remove("./output/"..modulename..".h")
|
||||
os.remove("./output/"..modulename..".cpp")
|
||||
end
|
||||
-------------
|
||||
local numerr = 0 --for popen error file
|
||||
function M.Parser()
|
||||
@@ -1929,8 +1734,9 @@ function M.Parser()
|
||||
par.forced_nonPOD = {}
|
||||
par.skip_template = {}
|
||||
par.skip_convert_gen = {}
|
||||
par.name_conversion = {}
|
||||
|
||||
par.save_output = save_output
|
||||
par.save_output = extra.save_output
|
||||
par.genConversors = genConversions
|
||||
par.gen_structs_c = gen_structs_c
|
||||
function par:insert(line,loca)
|
||||
@@ -2191,7 +1997,7 @@ function M.Parser()
|
||||
it.item = it.item:gsub("enum%s*class","enum")
|
||||
elseif it.re_name == "struct_re" then
|
||||
it.name = it.item:match("struct%s+([^%s{]+)")
|
||||
if self.name_conversion and self.name_conversion[it.name] then
|
||||
if self.name_conversion[it.name] then
|
||||
it.name = self.name_conversion[it.name]
|
||||
print("=========conversion",it.name)
|
||||
end
|
||||
@@ -2610,7 +2416,7 @@ function M.Parser()
|
||||
--name_conversion
|
||||
local rr = defT.ret:gsub("*","")
|
||||
rr = rr:gsub("const ","")
|
||||
if self.name_conversion and self.name_conversion[rr] then
|
||||
if self.name_conversion[rr] then
|
||||
defT.ret = defT.ret:gsub(rr,self.name_conversion[rr])
|
||||
end
|
||||
defT.retref = ret:match("&")
|
||||
@@ -2705,11 +2511,11 @@ function M.Parser()
|
||||
end
|
||||
end
|
||||
|
||||
if self.name_conversion and self.name_conversion[stname] then
|
||||
if self.name_conversion[stname] then
|
||||
itst.or_name = stname
|
||||
stname = self.name_conversion[stname]
|
||||
end
|
||||
--stname = self.name_conversion and self.name_conversion[stname] or stname
|
||||
|
||||
--initial
|
||||
|
||||
table.insert(outtab,"\nstruct "..stname.."\n")
|
||||
@@ -3670,184 +3476,14 @@ function M.Parser()
|
||||
if COMPILER=="gcc" then
|
||||
local include_cmd = COMPILER=="cl" and [[ /I ]] or [[ -I ]]
|
||||
local extra_includes = include_cmd.." ../../cimgui "
|
||||
local CPRE = COMPILER..[[ -std=c99 -DCIMGUI_DEFINE_ENUMS_AND_STRUCTS -DIMGUI_ENABLE_FREETYPE ]] ..extra_includes.. "./output/"..name..".h"
|
||||
local CPRE = COMPILER..[[ -fsyntax-only -x c -std=c99 -DCIMGUI_DEFINE_ENUMS_AND_STRUCTS -DIMGUI_ENABLE_FREETYPE ]] ..extra_includes.. "./output/"..name..".h"
|
||||
print(CPRE)
|
||||
get_cdefs(CPRE,"name")
|
||||
end
|
||||
end
|
||||
return par
|
||||
end
|
||||
-- more compact serialization
|
||||
local function basicSerialize (o)
|
||||
if type(o) == "number" then
|
||||
return string.format("%.17g", o)
|
||||
elseif type(o)=="boolean" then
|
||||
return tostring(o)
|
||||
elseif type(o) == "string" then
|
||||
return string.format("%q", o)
|
||||
elseif pcall(function() return o.__serialize end) then
|
||||
return o.__serialize(o)
|
||||
elseif type(o)=="cdata" then
|
||||
return cdataSerialize(o)
|
||||
else
|
||||
return tostring(o) --"nil"
|
||||
end
|
||||
end
|
||||
-- very readable and now suited for cyclic tables
|
||||
local kw = {['and'] = true, ['break'] = true, ['do'] = true, ['else'] = true,
|
||||
['elseif'] = true, ['end'] = true, ['false'] = true, ['for'] = true,
|
||||
['function'] = true, ['goto'] = true, ['if'] = true, ['in'] = true,
|
||||
['local'] = true, ['nil'] = true, ['not'] = true, ['or'] = true,
|
||||
['repeat'] = true, ['return'] = true, ['then'] = true, ['true'] = true,
|
||||
['until'] = true, ['while'] = true}
|
||||
function tb2st_serialize(t,options)
|
||||
options = options or {}
|
||||
local function sorter(a,b)
|
||||
if type(a)==type(b) then
|
||||
return a<b
|
||||
elseif type(a)=="number" then
|
||||
return true
|
||||
else
|
||||
assert(type(b)=="number")
|
||||
return false
|
||||
end
|
||||
end
|
||||
local function serialize_key(val, dodot, pretty)
|
||||
local dot = dodot and "." or ""
|
||||
if type(val)=="string" then
|
||||
if val:match '^[_%a][_%w]*$' and not kw[val] then
|
||||
return dot..tostring(val)
|
||||
else
|
||||
return "[\""..tostring(val).."\"]"
|
||||
end
|
||||
elseif (not pretty) and (not dodot) and (type(val) == "number") and (math.floor(val)==val) then
|
||||
return --array index
|
||||
else
|
||||
return "["..tostring(val).."]"
|
||||
end
|
||||
end
|
||||
local function serialize_key_name(val)
|
||||
return serialize_key(val, true)
|
||||
end
|
||||
local insert = table.insert
|
||||
local function _tb2st(t,saved,sref,level,name)
|
||||
saved = saved or {} -- initial value
|
||||
level = level or 0
|
||||
sref = sref or {}
|
||||
name = name or "t"
|
||||
if type(t)=="table" then
|
||||
if saved[t] then
|
||||
sref[#sref+1] = {saved[t],name}
|
||||
return"nil"
|
||||
else
|
||||
saved[t] = name
|
||||
|
||||
local ordered_keys = {}
|
||||
for k,v in pairs(t) do
|
||||
insert(ordered_keys,k)
|
||||
end
|
||||
table.sort(ordered_keys,sorter)
|
||||
|
||||
local str2 = {}
|
||||
insert(str2,"{")
|
||||
if options.pretty then insert(str2,"\n") end
|
||||
for _,k in ipairs(ordered_keys) do
|
||||
if options.pretty then insert(str2,(" "):rep(level+1)) end
|
||||
local v = t[k]
|
||||
local kser = serialize_key(k, nil, options.pretty)
|
||||
insert(str2, (kser and (kser .."=") or ""))
|
||||
if type(v)~="table" then
|
||||
insert(str2, basicSerialize(v))
|
||||
else
|
||||
local name2 = name .. serialize_key_name(k)
|
||||
insert(str2,_tb2st(v,saved,sref,level+1,name2))
|
||||
end
|
||||
if options.pretty then insert(str2,",\n") else insert(str2, ",") end
|
||||
end
|
||||
str2[#str2] = "}"
|
||||
if level == 0 then
|
||||
--insert(str2, 1,"local ffi = require'ffi'\nlocal t=")
|
||||
insert(str2, 1,"local t=")
|
||||
for i,v in ipairs(sref) do
|
||||
insert(str2, "\n"..v[2].."="..v[1])
|
||||
end
|
||||
insert(str2,"\n return t")
|
||||
end
|
||||
return table.concat(str2)
|
||||
end
|
||||
else
|
||||
return basicSerialize(t)
|
||||
end
|
||||
end
|
||||
return(_tb2st(t))
|
||||
end
|
||||
M.tb2st_serialize = tb2st_serialize
|
||||
------serializeTable("anyname",table) gives a string that recreates the table with dofile(generated_string)
|
||||
local function serializeTable(name, value, saved)
|
||||
|
||||
local function basicSerialize (o)
|
||||
if type(o) == "number" or type(o)=="boolean" then
|
||||
return tostring(o)
|
||||
elseif type(o) == "string" then
|
||||
return string.format("%q", o)
|
||||
else
|
||||
return "nil"
|
||||
end
|
||||
end
|
||||
|
||||
local string_table = {}
|
||||
if not saved then
|
||||
table.insert(string_table, "local "..name.." = ")
|
||||
else
|
||||
table.insert(string_table, name.." = ")
|
||||
end
|
||||
|
||||
saved = saved or {} -- initial value
|
||||
|
||||
if type(value) == "number" or type(value) == "string" or type(value)=="boolean" then
|
||||
table.insert(string_table,basicSerialize(value).."\n")
|
||||
elseif type(value) == "table" then
|
||||
if saved[value] then -- value already saved?
|
||||
table.insert(string_table,saved[value].."\n")
|
||||
else
|
||||
saved[value] = name -- save name for next time
|
||||
table.insert(string_table, "{}\n")
|
||||
---[[
|
||||
local ordered_keys = {}
|
||||
for k,v in pairs(value) do
|
||||
table.insert(ordered_keys,k)
|
||||
end
|
||||
local function sorter(a,b)
|
||||
if type(a)==type(b) then
|
||||
return a<b
|
||||
elseif type(a)=="number" then
|
||||
return true
|
||||
else
|
||||
assert(type(b)=="number")
|
||||
return false
|
||||
end
|
||||
end
|
||||
table.sort(ordered_keys,sorter)
|
||||
for _,k in ipairs(ordered_keys) do
|
||||
local v = value[k]
|
||||
--]]
|
||||
-- for k,v in pairs(value) do -- save its fields
|
||||
|
||||
local fieldname = string.format("%s[%s]", name,basicSerialize(k))
|
||||
table.insert(string_table, serializeTable(fieldname, v, saved))
|
||||
end
|
||||
end
|
||||
--else
|
||||
--error("cannot save a " .. type(value))
|
||||
end
|
||||
|
||||
return table.concat(string_table)
|
||||
end
|
||||
-- M.serializeTable = serializeTable
|
||||
-- M.serializeTableF = function(t)
|
||||
-- return M.serializeTable("defs",t).."\nreturn defs"
|
||||
-- end
|
||||
M.serializeTableF = function(t) return tb2st_serialize(t,{pretty=true}) end --new serialization more compact
|
||||
--iterates lines from a gcc/clang -E in a specific location
|
||||
local function location(file,locpathT,defines,COMPILER,keepemptylines)
|
||||
local define_re = "^#define%s+([^%s]+)%s+(.+)$"
|
||||
@@ -3936,300 +3572,8 @@ local function location(file,locpathT,defines,COMPILER,keepemptylines)
|
||||
return location_it
|
||||
end
|
||||
M.location = location
|
||||
---------------------- C writing functions
|
||||
|
||||
local function ImGui_f_implementation(def)
|
||||
local outtab = {}
|
||||
local ptret = def.retref and "&" or ""
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
local namespace = def.namespace and def.namespace.."::" or ""
|
||||
--namespace = def.is_static_function and namespace..def.stname.."::" or namespace
|
||||
if def.isvararg then
|
||||
local call_args = def.call_args:gsub("%.%.%.","args")
|
||||
table.insert(outtab," va_list args;\n")
|
||||
table.insert(outtab," va_start(args, fmt);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," "..def.ret.." ret = "..namespace..def.funcname.."V"..call_args..";\n")
|
||||
else
|
||||
table.insert(outtab," "..namespace..def.funcname.."V"..call_args..";\n")
|
||||
end
|
||||
table.insert(outtab," va_end(args);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," return ret;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args).."\n")
|
||||
table.insert(outtab, "{\n")
|
||||
local returnword = "return "
|
||||
if def.ret=="void" then returnword = "" end
|
||||
table.insert(outtab, " "..returnword..def.ov_cimguiname..paramListWithoutDots(def.call_args_old)..";\n")
|
||||
table.insert(outtab, "}\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
elseif def.nonUDT then
|
||||
if def.nonUDT == 1 then
|
||||
--table.insert(outtab," *pOut = "..namespace..def.funcname..def.call_args..";\n")
|
||||
insert(outtab," return ConvertFromCPP_"..def.conv.."("..namespace..def.funcname..def.call_args..");\n")
|
||||
elseif def.nonUDT == 2 then
|
||||
insert(outtab," return reinterpret_cast<"..def.ret..">("..ptret..namespace..def.funcname..def.call_args..");\n")
|
||||
elseif def.nonUDT == "string" then
|
||||
insert(outtab," static std::string str;\n")
|
||||
insert(outtab," str.assign("..ptret.."self->"..def.funcname..def.call_args..");\n")
|
||||
insert(outtab," return str.c_str();\n")
|
||||
elseif def.nonUDT == "opaque" then
|
||||
insert(outtab," static auto opq = "..ptret..namespace..def.funcname..def.call_args..";\n")
|
||||
insert(outtab," opq = "..ptret..namespace..def.funcname..def.call_args..";\n")
|
||||
insert(outtab," return &opq;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
else --standard ImGui
|
||||
table.insert(outtab," return "..ptret..namespace..def.funcname..def.call_args..";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
end
|
||||
--table.insert(outtab,"}\n")
|
||||
return table.concat(outtab, "")
|
||||
end
|
||||
local function struct_f_implementation(def)
|
||||
local outtab = {}
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
local ptret = def.retref and "&" or ""
|
||||
|
||||
local imgui_stname = def.stname
|
||||
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
if def.isvararg then
|
||||
local call_args = def.call_args:gsub("%.%.%.","args")
|
||||
table.insert(outtab," va_list args;\n")
|
||||
table.insert(outtab," va_start(args, fmt);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," "..def.ret.." ret = self->"..def.funcname.."V"..call_args..";\n")
|
||||
else
|
||||
table.insert(outtab," self->"..def.funcname.."V"..call_args..";\n")
|
||||
end
|
||||
table.insert(outtab," va_end(args);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," return ret;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args).."\n")
|
||||
table.insert(outtab, "{\n")
|
||||
local returnword = "return "
|
||||
if def.ret=="void" then returnword = "" end
|
||||
table.insert(outtab, " "..returnword..def.ov_cimguiname.."(self,"..paramListWithoutDots(def.call_args_old):sub(2,-1)..";\n")
|
||||
table.insert(outtab, "}\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
elseif def.nonUDT then
|
||||
if def.nonUDT == 1 then
|
||||
--table.insert(outtab," *pOut = self->"..def.funcname..def.call_args..";\n")
|
||||
--local typret = (def.ret):gsub("const ","")
|
||||
insert(outtab," return ConvertFromCPP_"..def.conv.."(self->"..def.funcname..def.call_args..");\n")
|
||||
elseif def.nonUDT == 2 then
|
||||
insert(outtab," return reinterpret_cast<"..def.ret..">("..ptret.."self->"..def.funcname..def.call_args..");\n")
|
||||
elseif def.nonUDT == "string" then
|
||||
insert(outtab," static std::string str;\n")
|
||||
insert(outtab," str.assign("..ptret.."self->"..def.funcname..def.call_args..");\n")
|
||||
insert(outtab," return str.c_str();\n")
|
||||
elseif def.nonUDT == "opaque" then
|
||||
insert(outtab," static auto opq = "..ptret.."self->"..def.funcname..def.call_args..";\n")
|
||||
insert(outtab," opq = "..ptret.."self->"..def.funcname..def.call_args..";\n")
|
||||
insert(outtab," return &opq;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
else --standard struct
|
||||
table.insert(outtab," return "..ptret.."self->"..def.funcname..def.call_args..";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
end
|
||||
|
||||
return table.concat(outtab, "")
|
||||
end
|
||||
local function func_implementation(FP)
|
||||
|
||||
local outtab = {}
|
||||
for _,t in ipairs(FP.funcdefs) do
|
||||
repeat -- continue simulation
|
||||
if not t.cimguiname then break end
|
||||
local cimf = FP.defsT[t.cimguiname]
|
||||
local def = cimf[t.signature]
|
||||
assert(def)
|
||||
local custom
|
||||
if FP.custom_implementation then
|
||||
custom = FP.custom_implementation(outtab, def, FP)
|
||||
end
|
||||
local manual = FP.get_manuals(def)
|
||||
if not custom and not manual and not def.templated and not FP.get_skipped(def) --and not (FP.opaque_structs[def.stname] and not def.is_static_function)
|
||||
then
|
||||
if def.constructor then
|
||||
local tab = {}
|
||||
assert(def.stname ~= "","constructor without struct")
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
table.insert(tab,"CIMGUI_API "..def.stname.."* "..def.ov_cimguiname..(empty and "(void)" or def.args).."\n")
|
||||
table.insert(tab,"{\n")
|
||||
table.insert(tab," return IM_NEW("..def.stname..")"..def.call_args..";\n")
|
||||
table.insert(tab,"}\n")
|
||||
if FP.CONSTRUCTORS_GENERATION then
|
||||
table.insert(tab,"CIMGUI_API void "..def.ov_cimguiname.."_Construct("..def.stname.."* self"..(empty and "" or ","..def.args:sub(2,-2))..")\n")
|
||||
table.insert(tab,"{\n")
|
||||
table.insert(tab," IM_PLACEMENT_NEW(self)"..def.stname..def.call_args..";\n")
|
||||
table.insert(tab,"}\n")
|
||||
end
|
||||
table.insert(outtab, table.concat(tab, ""))
|
||||
elseif def.destructor then
|
||||
local tab = {}
|
||||
local args = "("..def.stname.."* self)"
|
||||
local fname = def.stname.."_destroy"
|
||||
table.insert(tab,"CIMGUI_API void "..fname..args.."\n")
|
||||
table.insert(tab,"{\n")
|
||||
table.insert(tab," IM_DELETE(self);\n")
|
||||
table.insert(tab,"}\n")
|
||||
table.insert(outtab, table.concat(tab, ""))
|
||||
elseif def.stname == "" or def.is_static_function then
|
||||
table.insert(outtab, ImGui_f_implementation(def))
|
||||
else -- stname
|
||||
table.insert(outtab, struct_f_implementation(def))
|
||||
end
|
||||
end
|
||||
if FP.custom_function_post then
|
||||
FP:custom_function_post(outtab, def)
|
||||
end
|
||||
until true
|
||||
end
|
||||
local conversors = FP:genConversors()
|
||||
local cimplem = conversors .. table.concat(outtab)
|
||||
return cimplem
|
||||
end
|
||||
|
||||
M.func_implementation = func_implementation
|
||||
local function table_do_sorted(t,f)
|
||||
local sorted = {}
|
||||
for k,v in pairs(t) do
|
||||
table.insert(sorted,k)
|
||||
end
|
||||
table.sort(sorted)
|
||||
for ii,k in ipairs(sorted) do
|
||||
f(k,t[k])
|
||||
end
|
||||
end
|
||||
M.table_do_sorted = table_do_sorted
|
||||
|
||||
local function func_header_generate_structs(FP)
|
||||
|
||||
local outtab = {}--"\n/////func_header_generate_structs\n"}
|
||||
M.prtable("embeded_structs",FP.embeded_structs)
|
||||
table_do_sorted(FP.embeded_structs,function(k,v)
|
||||
if not FP.typenames[k] then
|
||||
print("embeded",k,v)
|
||||
table.insert(outtab,"typedef "..v.." "..k..";\n")
|
||||
end
|
||||
end)
|
||||
|
||||
table_do_sorted(FP.embeded_enums,function(k,v) table.insert(outtab,"typedef "..v.." "..k..";\n") end)
|
||||
--table.insert(outtab, "\n//////////templates\n")
|
||||
table_do_sorted(FP.templates,function(ttype,v)
|
||||
--print("func_header_generate_structs",ttype)
|
||||
if not (ttype == "std::function") then
|
||||
table_do_sorted(v,function(ttypein,te)
|
||||
local ttype2 = ttype:gsub("::","_") --std::string
|
||||
table.insert(outtab,"typedef "..ttype.."<"..ttypein.."> "..ttype2.."_"..te..";\n")
|
||||
end)
|
||||
end
|
||||
end)
|
||||
--M.prtable("typenames",FP.typenames)
|
||||
table_do_sorted(FP.opaque_structs,function(k,v)
|
||||
if not FP.typenames[k] then
|
||||
table.insert(outtab,"typedef "..v.." "..k..";\n")
|
||||
--table.insert(outtab,"typedef const "..v.."* "..k.."_opq;\n")
|
||||
--table.insert(outtab,"typedef "..v.."* "..k.."_opq;\n")
|
||||
end
|
||||
end)
|
||||
--table.insert(outtab, "\n//////////end func header\n")
|
||||
return outtab
|
||||
end
|
||||
M.func_header_generate_structs = func_header_generate_structs
|
||||
|
||||
|
||||
local function func_header_generate_funcs(FP)
|
||||
|
||||
local outtab = {}
|
||||
|
||||
for _,t in ipairs(FP.funcdefs) do
|
||||
if t.cimguiname then
|
||||
local cimf = FP.defsT[t.cimguiname]
|
||||
local def = cimf[t.signature]
|
||||
assert(def,t.signature..t.cimguiname)
|
||||
local custom
|
||||
if FP.custom_header then
|
||||
custom = FP.custom_header(outtab, def)
|
||||
end
|
||||
local manual = FP.get_manuals(def)
|
||||
if not custom and not manual and not def.templated and not FP.get_skipped(def) --and not (FP.opaque_structs[def.stname] and not def.is_static_function)
|
||||
then
|
||||
local addcoment = "" --def.comment or ""
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
if def.constructor then
|
||||
assert(def.stname ~= "","constructor without struct")
|
||||
table.insert(outtab,"CIMGUI_API "..def.stname.."* "..def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
||||
if FP.CONSTRUCTORS_GENERATION then
|
||||
outtab[#outtab] = outtab[#outtab].."\nCIMGUI_API void "..def.ov_cimguiname.."_Construct("..def.stname.."* self"..(empty and "" or ","..def.args:sub(2,-2))..");\n"
|
||||
end
|
||||
elseif def.destructor then
|
||||
table.insert(outtab,"CIMGUI_API void "..def.ov_cimguiname..def.args..";"..addcoment.."\n")
|
||||
else --not constructor
|
||||
--local ret = FP.nP_ret[def.ret] or def.ret
|
||||
local ret = def.ret
|
||||
if def.stname == "" or def.is_static_function then --ImGui namespace or top level
|
||||
table.insert(outtab,"CIMGUI_API "..ret.." ".. def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
||||
if def.isvararg then
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args)..";\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
end
|
||||
else
|
||||
table.insert(outtab,"CIMGUI_API "..ret.." "..def.ov_cimguiname..def.args..";"..addcoment.."\n")
|
||||
if def.isvararg then
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args)..";\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if FP.custom_function_post then
|
||||
FP:custom_function_post(outtab, def)
|
||||
end
|
||||
else --not cimguiname
|
||||
table.insert(outtab,t.comment:gsub("%%","%%%%").."\n")-- %% substitution for gsub
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return outtab
|
||||
end
|
||||
M.func_header_generate_funcs = func_header_generate_funcs
|
||||
|
||||
local function func_header_generate(FP)
|
||||
|
||||
local outtab = func_header_generate_structs(FP)
|
||||
table.insert(outtab, 1, "\n#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
|
||||
table.insert(outtab,"#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
|
||||
|
||||
local outtabf = func_header_generate_funcs(FP)
|
||||
outtabf = table.concat(outtabf)
|
||||
assert(type(outtabf)=="string")
|
||||
--outtabf = M.header_subs_nonPOD(FP,outtabf)
|
||||
local cfuncsstr = table.concat(outtab)..outtabf
|
||||
cfuncsstr = cfuncsstr:gsub("\n+","\n") --several empty lines to one empty line
|
||||
|
||||
return cfuncsstr
|
||||
end
|
||||
|
||||
M.func_header_generate = func_header_generate
|
||||
function M.GetScriptArgs(defines,...)
|
||||
assert(_VERSION=='Lua 5.1',"Must use LuaJIT")
|
||||
assert(bit,"Must use LuaJIT")
|
||||
@@ -4279,9 +3623,9 @@ function M.GetScriptArgs(defines,...)
|
||||
|
||||
return COMPILER, CPRE, INTERNAL_GENERATION,COMMENTS_GENERATION
|
||||
end
|
||||
--[=[
|
||||
-- tests
|
||||
|
||||
---------------------- tests
|
||||
--[=[
|
||||
local code = [[
|
||||
|
||||
int pedro;
|
||||
@@ -4296,7 +3640,7 @@ uno,
|
||||
dos
|
||||
};
|
||||
|
||||
]]
|
||||
]]
|
||||
local parser = M.Parser()
|
||||
--for line in code:gmatch("[^\n]+") do
|
||||
for line in code:gmatch'(.-)\r?\n' do
|
||||
@@ -4304,22 +3648,24 @@ for line in code:gmatch'(.-)\r?\n' do
|
||||
parser:insert(line,"11")
|
||||
end
|
||||
parser:do_parse()
|
||||
M.prtable(parser)
|
||||
--M.prtable(parser)
|
||||
M.prtable(parser:gen_structs_and_enums_table())
|
||||
--]=]
|
||||
|
||||
--print(clean_spaces[[ImVec2 ArcFastVtx[12 * 1];]])
|
||||
|
||||
--[=[
|
||||
local code = [[ImU32 Storage[(BITCOUNT + 31) >> 5];]]
|
||||
--local code = [[ImU32 Storage[37 + 2];]]
|
||||
local parser = M.Parser()
|
||||
parser:insert(code,"11")
|
||||
--parser:do_parse()
|
||||
--M.prtable(parser)
|
||||
local tab={}
|
||||
print(type(code),code)
|
||||
print(clean_spaces(code))
|
||||
parser:parse_struct_line(code,tab)
|
||||
M.prtable(tab)
|
||||
parser:do_parse()
|
||||
M.prtable(parser)
|
||||
-- local tab={}
|
||||
-- print(type(code),code)
|
||||
-- print(clean_spaces(code))
|
||||
-- parser:parse_struct_line(code,tab,"")
|
||||
-- M.prtable(tab)
|
||||
--]=]
|
||||
|
||||
|
||||
|
||||
619
generator/cpp2ffi_extra.lua
Normal file
619
generator/cpp2ffi_extra.lua
Normal file
@@ -0,0 +1,619 @@
|
||||
local insert = table.insert
|
||||
|
||||
local function ToStr(t,dometatables)
|
||||
local function basicToStr (o)
|
||||
if type(o) == "number" or type(o)=="boolean" then
|
||||
return tostring(o)
|
||||
elseif type(o) == "string" then
|
||||
return string.format("%q", o)
|
||||
else
|
||||
return tostring(o) --"nil"
|
||||
end
|
||||
end
|
||||
local strTG = {}
|
||||
--local basicToStr= basicSerialize --tostring
|
||||
if type(t) ~="table" then return basicToStr(t) end
|
||||
local recG = 0
|
||||
local nameG="SELF"..recG
|
||||
local ancest ={}
|
||||
local function _ToStr(t,strT,rec,name)
|
||||
if ancest[t] then
|
||||
strT[#strT + 1]=ancest[t]
|
||||
return
|
||||
end
|
||||
rec = rec + 1
|
||||
ancest[t]=name
|
||||
strT[#strT + 1]='{'
|
||||
local count=0
|
||||
-------------
|
||||
--if t.name then strT[#strT + 1]=string.rep("\t",rec).."name:"..tostring(t.name) end
|
||||
----------------
|
||||
for k,v in pairs(t) do
|
||||
count=count+1
|
||||
strT[#strT + 1]="\n"
|
||||
local kstr
|
||||
if type(k) == "table" then
|
||||
local name2=string.format("%s.KEY%d",name,count)
|
||||
strT[#strT + 1]=string.rep("\t",rec).."["
|
||||
local strTK = {}
|
||||
_ToStr(k,strTK,rec,name2)
|
||||
kstr=table.concat(strTK)
|
||||
strT[#strT + 1]=kstr.."]="
|
||||
else
|
||||
kstr = basicToStr(k)
|
||||
strT[#strT + 1]=string.rep("\t",rec).."["..kstr.."]="
|
||||
end
|
||||
|
||||
if type(v) == "table" then
|
||||
local name2=string.format("%s[%s]",name,kstr)
|
||||
_ToStr(v,strT,rec,name2)
|
||||
else
|
||||
strT[#strT + 1]=basicToStr(v)
|
||||
end
|
||||
end
|
||||
if dometatables then
|
||||
local mt = getmetatable(t)
|
||||
if mt then
|
||||
local namemt = string.format("%s.METATABLE",name)
|
||||
local strMT = {}
|
||||
_ToStr(mt,strMT,rec,namemt)
|
||||
local metastr=table.concat(strMT)
|
||||
strT[#strT + 1] = "\n"..string.rep("\t",rec).."[METATABLE]="..metastr
|
||||
end
|
||||
end
|
||||
strT[#strT + 1]='}'
|
||||
rec = rec - 1
|
||||
return
|
||||
end
|
||||
_ToStr(t,strTG,recG,nameG)
|
||||
return table.concat(strTG)
|
||||
end
|
||||
|
||||
local function prtable(...)
|
||||
for i=1, select('#', ...) do
|
||||
local t = select(i, ...)
|
||||
print(ToStr(t))
|
||||
print("\n")
|
||||
end
|
||||
end
|
||||
|
||||
-- more compact serialization
|
||||
local function basicSerialize (o)
|
||||
if type(o) == "number" then
|
||||
return string.format("%.17g", o)
|
||||
elseif type(o)=="boolean" then
|
||||
return tostring(o)
|
||||
elseif type(o) == "string" then
|
||||
return string.format("%q", o)
|
||||
elseif pcall(function() return o.__serialize end) then
|
||||
return o.__serialize(o)
|
||||
elseif type(o)=="cdata" then
|
||||
return cdataSerialize(o)
|
||||
else
|
||||
return tostring(o) --"nil"
|
||||
end
|
||||
end
|
||||
-- very readable and now suited for cyclic tables
|
||||
local kw = {['and'] = true, ['break'] = true, ['do'] = true, ['else'] = true,
|
||||
['elseif'] = true, ['end'] = true, ['false'] = true, ['for'] = true,
|
||||
['function'] = true, ['goto'] = true, ['if'] = true, ['in'] = true,
|
||||
['local'] = true, ['nil'] = true, ['not'] = true, ['or'] = true,
|
||||
['repeat'] = true, ['return'] = true, ['then'] = true, ['true'] = true,
|
||||
['until'] = true, ['while'] = true}
|
||||
function tb2st_serialize(t,options)
|
||||
options = options or {}
|
||||
local function sorter(a,b)
|
||||
if type(a)==type(b) then
|
||||
return a<b
|
||||
elseif type(a)=="number" then
|
||||
return true
|
||||
else
|
||||
assert(type(b)=="number")
|
||||
return false
|
||||
end
|
||||
end
|
||||
local function serialize_key(val, dodot, pretty)
|
||||
local dot = dodot and "." or ""
|
||||
if type(val)=="string" then
|
||||
if val:match '^[_%a][_%w]*$' and not kw[val] then
|
||||
return dot..tostring(val)
|
||||
else
|
||||
return "[\""..tostring(val).."\"]"
|
||||
end
|
||||
elseif (not pretty) and (not dodot) and (type(val) == "number") and (math.floor(val)==val) then
|
||||
return --array index
|
||||
else
|
||||
return "["..tostring(val).."]"
|
||||
end
|
||||
end
|
||||
local function serialize_key_name(val)
|
||||
return serialize_key(val, true)
|
||||
end
|
||||
local insert = table.insert
|
||||
local function _tb2st(t,saved,sref,level,name)
|
||||
saved = saved or {} -- initial value
|
||||
level = level or 0
|
||||
sref = sref or {}
|
||||
name = name or "t"
|
||||
if type(t)=="table" then
|
||||
if saved[t] then
|
||||
sref[#sref+1] = {saved[t],name}
|
||||
return"nil"
|
||||
else
|
||||
saved[t] = name
|
||||
|
||||
local ordered_keys = {}
|
||||
for k,v in pairs(t) do
|
||||
insert(ordered_keys,k)
|
||||
end
|
||||
table.sort(ordered_keys,sorter)
|
||||
|
||||
local str2 = {}
|
||||
insert(str2,"{")
|
||||
if options.pretty then insert(str2,"\n") end
|
||||
for _,k in ipairs(ordered_keys) do
|
||||
if options.pretty then insert(str2,(" "):rep(level+1)) end
|
||||
local v = t[k]
|
||||
local kser = serialize_key(k, nil, options.pretty)
|
||||
insert(str2, (kser and (kser .."=") or ""))
|
||||
if type(v)~="table" then
|
||||
insert(str2, basicSerialize(v))
|
||||
else
|
||||
local name2 = name .. serialize_key_name(k)
|
||||
insert(str2,_tb2st(v,saved,sref,level+1,name2))
|
||||
end
|
||||
if options.pretty then insert(str2,",\n") else insert(str2, ",") end
|
||||
end
|
||||
str2[#str2] = "}"
|
||||
if level == 0 then
|
||||
--insert(str2, 1,"local ffi = require'ffi'\nlocal t=")
|
||||
insert(str2, 1,"local t=")
|
||||
for i,v in ipairs(sref) do
|
||||
insert(str2, "\n"..v[2].."="..v[1])
|
||||
end
|
||||
insert(str2,"\n return t")
|
||||
end
|
||||
return table.concat(str2)
|
||||
end
|
||||
else
|
||||
return basicSerialize(t)
|
||||
end
|
||||
end
|
||||
return(_tb2st(t))
|
||||
end
|
||||
local serializeTableF = function(t) return tb2st_serialize(t,{pretty=true}) end --new serialization more compact
|
||||
|
||||
local function deepcopy(object)
|
||||
local lookup_table = {}
|
||||
local function _copy(object)
|
||||
--assert(object~=REST)
|
||||
if type(object) ~= "table" then
|
||||
return object
|
||||
elseif lookup_table[object] then
|
||||
return lookup_table[object]
|
||||
end
|
||||
local new_table = {}
|
||||
lookup_table[object] = new_table
|
||||
for index, value in pairs(object) do
|
||||
new_table[_copy(index)] = _copy(value)
|
||||
end
|
||||
return setmetatable(new_table, getmetatable(object))
|
||||
end
|
||||
return _copy(object)
|
||||
end
|
||||
|
||||
local function table_do_sorted(t,f)
|
||||
local sorted = {}
|
||||
for k,v in pairs(t) do
|
||||
table.insert(sorted,k)
|
||||
end
|
||||
table.sort(sorted)
|
||||
for ii,k in ipairs(sorted) do
|
||||
f(k,t[k])
|
||||
end
|
||||
end
|
||||
|
||||
----------------------------
|
||||
local function save_data(filename,...)
|
||||
local file,err = io.open(filename,"w")
|
||||
if not file then error(err) end
|
||||
for i=1, select('#', ...) do
|
||||
local data = select(i, ...)
|
||||
file:write(data)
|
||||
end
|
||||
file:close()
|
||||
end
|
||||
|
||||
local function read_data(filename)
|
||||
local hfile,err = io.open(filename,"r")
|
||||
if not hfile then error(err) end
|
||||
local hstrfile = hfile:read"*a"
|
||||
hfile:close()
|
||||
return hstrfile
|
||||
end
|
||||
|
||||
local function copyfile(src,dst,blocksize)
|
||||
blocksize = blocksize or 1024*4
|
||||
print( "copyfile", src, dst)
|
||||
local srcf, err = io.open(src,"rb")
|
||||
if not srcf then error(err) end
|
||||
local dstf, err = io.open(dst,"wb")
|
||||
if not dstf then error(err) end
|
||||
while true do
|
||||
local data = srcf:read(blocksize)
|
||||
if not data then break end
|
||||
dstf:write(data)
|
||||
end
|
||||
srcf:close()
|
||||
dstf:close()
|
||||
end
|
||||
|
||||
local function paramListWithoutDots(params)
|
||||
if not params then return nil end
|
||||
local i, j = string.find(params, "%.%.%.")
|
||||
while i > 1 do
|
||||
i = i - 1
|
||||
local c = string.sub(params,i,i)
|
||||
if c == "," then
|
||||
return string.sub(params, 1, i-1) .. params:sub(j+1)
|
||||
elseif c == "(" then
|
||||
return string.sub(params, 1, i) .. params:sub(j+1)
|
||||
end
|
||||
end
|
||||
|
||||
error("paramListWithoutDots failed")
|
||||
return "()"
|
||||
end
|
||||
|
||||
-------------------------------json saving
|
||||
--avoid mixed tables (with string and integer keys)
|
||||
local function json_prepare(defs)
|
||||
--delete signatures in function
|
||||
for k,def in pairs(defs) do
|
||||
for k2,v in pairs(def) do
|
||||
if type(k2)=="string" then
|
||||
def[k2] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
return defs
|
||||
end
|
||||
|
||||
local function save_output(self)
|
||||
--add VARGS0
|
||||
local defsVARG = {}
|
||||
for k,defs in pairs(self.defsT) do
|
||||
for i, def in ipairs(defs) do
|
||||
if def.isvararg then
|
||||
--print("vararg",k,#def)
|
||||
local def1 = deepcopy(def)
|
||||
def1.isvararg = nil
|
||||
def1.isVARG0 = true
|
||||
def1.argsT[#def1.argsT] = nil
|
||||
def1.args = paramListWithoutDots(def1.args)
|
||||
def1.call_args = paramListWithoutDots(def1.call_args)
|
||||
def1.call_args_conv = paramListWithoutDots(def1.call_args_conv)
|
||||
def1.signature = paramListWithoutDots(def1.signature)
|
||||
def1.cimguiname = def1.cimguiname.."0"
|
||||
def1.ov_cimguiname = def1.ov_cimguiname.."0"
|
||||
defsVARG[k.."0"] = defsVARG[k.."0"] or {}
|
||||
table.insert(defsVARG[k.."0"], def1)
|
||||
end
|
||||
end
|
||||
end
|
||||
for k,def in pairs(defsVARG) do
|
||||
self.defsT[k] = def
|
||||
end
|
||||
--add manual not present in module
|
||||
for k,v in pairs(self.manuals) do
|
||||
if not self.defsT[k] then
|
||||
--print("add manual",k)
|
||||
self.defsT[k] = {v}
|
||||
else
|
||||
--print("skipped manual",k)
|
||||
end
|
||||
end
|
||||
---------- delete call_args_conv
|
||||
-- for k,defs in pairs(self.defsT) do
|
||||
-- for i, def in ipairs(defs) do
|
||||
-- def.call_args_conv = nil
|
||||
-- end
|
||||
-- end
|
||||
----------------------
|
||||
save_data("./output/overloads.txt",self.overloadstxt)
|
||||
save_data("./output/definitions.lua",serializeTableF(self.defsT))
|
||||
save_data("./output/structs_and_enums.lua",serializeTableF(self.structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.lua",serializeTableF(self.typedefs_dict))
|
||||
save_data("./output/constants.lua",serializeTableF(self.constants))
|
||||
|
||||
local json = require"json"
|
||||
local json_opts = {dict_on_empty={defaults=true}}
|
||||
save_data("./output/definitions.json",json.encode(json_prepare(self.defsT),json_opts))
|
||||
save_data("./output/structs_and_enums.json",json.encode(self.structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.json",json.encode(self.typedefs_dict))
|
||||
save_data("./output/constants.json",json.encode(self.constants))
|
||||
|
||||
local modulename = self.modulename
|
||||
copyfile("./output/"..modulename..".h", "../"..modulename..".h")
|
||||
copyfile("./output/"..modulename..".cpp", "../"..modulename..".cpp")
|
||||
os.remove("./output/"..modulename..".h")
|
||||
os.remove("./output/"..modulename..".cpp")
|
||||
end
|
||||
---------------------- C writing functions
|
||||
local function func_header_generate_structs(FP)
|
||||
|
||||
local outtab = {}--"\n/////func_header_generate_structs\n"}
|
||||
prtable("embeded_structs",FP.embeded_structs)
|
||||
table_do_sorted(FP.embeded_structs,function(k,v)
|
||||
if not FP.typenames[k] then
|
||||
print("embeded",k,v)
|
||||
table.insert(outtab,"typedef "..v.." "..k..";\n")
|
||||
end
|
||||
end)
|
||||
|
||||
table_do_sorted(FP.embeded_enums,function(k,v) table.insert(outtab,"typedef "..v.." "..k..";\n") end)
|
||||
--table.insert(outtab, "\n//////////templates\n")
|
||||
table_do_sorted(FP.templates,function(ttype,v)
|
||||
--print("func_header_generate_structs",ttype)
|
||||
if not (ttype == "std::function") then
|
||||
table_do_sorted(v,function(ttypein,te)
|
||||
local ttype2 = ttype:gsub("::","_") --std::string
|
||||
table.insert(outtab,"typedef "..ttype.."<"..ttypein.."> "..ttype2.."_"..te..";\n")
|
||||
end)
|
||||
end
|
||||
end)
|
||||
--M.prtable("typenames",FP.typenames)
|
||||
table_do_sorted(FP.opaque_structs,function(k,v)
|
||||
if not FP.typenames[k] then
|
||||
table.insert(outtab,"typedef "..v.." "..k..";\n")
|
||||
--table.insert(outtab,"typedef const "..v.."* "..k.."_opq;\n")
|
||||
--table.insert(outtab,"typedef "..v.."* "..k.."_opq;\n")
|
||||
end
|
||||
end)
|
||||
--table.insert(outtab, "\n//////////end func header\n")
|
||||
return outtab
|
||||
end
|
||||
|
||||
local function func_header_generate_funcs(FP)
|
||||
|
||||
local outtab = {}
|
||||
|
||||
for _,t in ipairs(FP.funcdefs) do
|
||||
if t.cimguiname then
|
||||
local cimf = FP.defsT[t.cimguiname]
|
||||
local def = cimf[t.signature]
|
||||
assert(def,t.signature..t.cimguiname)
|
||||
local custom
|
||||
if FP.custom_header then
|
||||
custom = FP.custom_header(outtab, def)
|
||||
end
|
||||
local manual = FP.get_manuals(def)
|
||||
if not custom and not manual and not def.templated and not FP.get_skipped(def) --and not (FP.opaque_structs[def.stname] and not def.is_static_function)
|
||||
then
|
||||
local addcoment = "" --def.comment or ""
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
if def.constructor then
|
||||
assert(def.stname ~= "","constructor without struct")
|
||||
table.insert(outtab,"CIMGUI_API "..def.stname.."* "..def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
||||
if FP.CONSTRUCTORS_GENERATION then
|
||||
outtab[#outtab] = outtab[#outtab].."\nCIMGUI_API void "..def.ov_cimguiname.."_Construct("..def.stname.."* self"..(empty and "" or ","..def.args:sub(2,-2))..");\n"
|
||||
end
|
||||
elseif def.destructor then
|
||||
table.insert(outtab,"CIMGUI_API void "..def.ov_cimguiname..def.args..";"..addcoment.."\n")
|
||||
else --not constructor
|
||||
--local ret = FP.nP_ret[def.ret] or def.ret
|
||||
local ret = def.ret
|
||||
if def.stname == "" or def.is_static_function then --ImGui namespace or top level
|
||||
table.insert(outtab,"CIMGUI_API "..ret.." ".. def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
||||
if def.isvararg then
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args)..";\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
end
|
||||
else
|
||||
table.insert(outtab,"CIMGUI_API "..ret.." "..def.ov_cimguiname..def.args..";"..addcoment.."\n")
|
||||
if def.isvararg then
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args)..";\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if FP.custom_function_post then
|
||||
FP:custom_function_post(outtab, def)
|
||||
end
|
||||
else --not cimguiname
|
||||
table.insert(outtab,t.comment:gsub("%%","%%%%").."\n")-- %% substitution for gsub
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return outtab
|
||||
end
|
||||
|
||||
local function func_header_generate(FP)
|
||||
|
||||
local outtab = func_header_generate_structs(FP)
|
||||
table.insert(outtab, 1, "\n#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
|
||||
table.insert(outtab,"#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
|
||||
|
||||
local outtabf = func_header_generate_funcs(FP)
|
||||
outtabf = table.concat(outtabf)
|
||||
assert(type(outtabf)=="string")
|
||||
--outtabf = M.header_subs_nonPOD(FP,outtabf)
|
||||
local cfuncsstr = table.concat(outtab)..outtabf
|
||||
cfuncsstr = cfuncsstr:gsub("\n+","\n") --several empty lines to one empty line
|
||||
|
||||
return cfuncsstr
|
||||
end
|
||||
|
||||
local function ImGui_f_implementation(def)
|
||||
local outtab = {}
|
||||
local ptret = def.retref and "&" or ""
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
local namespace = def.namespace and def.namespace.."::" or ""
|
||||
--namespace = def.is_static_function and namespace..def.stname.."::" or namespace
|
||||
local call_args_conv = def.call_args_conv or def.call_args
|
||||
if def.isvararg then
|
||||
local call_args_conv = call_args_conv:gsub("%.%.%.","args")
|
||||
table.insert(outtab," va_list args;\n")
|
||||
table.insert(outtab," va_start(args, fmt);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," "..def.ret.." ret = "..namespace..def.funcname.."V"..call_args_conv..";\n")
|
||||
else
|
||||
table.insert(outtab," "..namespace..def.funcname.."V"..call_args_conv..";\n")
|
||||
end
|
||||
table.insert(outtab," va_end(args);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," return ret;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args).."\n")
|
||||
table.insert(outtab, "{\n")
|
||||
local returnword = "return "
|
||||
if def.ret=="void" then returnword = "" end
|
||||
table.insert(outtab, " "..returnword..def.ov_cimguiname..paramListWithoutDots(def.call_args)..";\n")
|
||||
table.insert(outtab, "}\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
elseif def.nonUDT then
|
||||
if def.nonUDT == 1 then
|
||||
insert(outtab," return ConvertFromCPP_"..def.conv.."("..namespace..def.funcname..call_args_conv..");\n")
|
||||
elseif def.nonUDT == 2 then
|
||||
insert(outtab," return reinterpret_cast<"..def.ret..">("..ptret..namespace..def.funcname..call_args_conv..");\n")
|
||||
elseif def.nonUDT == "string" then
|
||||
insert(outtab," static std::string str;\n")
|
||||
insert(outtab," str.assign("..ptret.."self->"..def.funcname..call_args_conv..");\n")
|
||||
insert(outtab," return str.c_str();\n")
|
||||
elseif def.nonUDT == "opaque" then
|
||||
insert(outtab," static auto opq = "..ptret..namespace..def.funcname..call_args_conv..";\n")
|
||||
insert(outtab," opq = "..ptret..namespace..def.funcname..call_args_conv..";\n")
|
||||
insert(outtab," return &opq;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
else --standard ImGui
|
||||
table.insert(outtab," return "..ptret..namespace..def.funcname..call_args_conv..";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
end
|
||||
--table.insert(outtab,"}\n")
|
||||
return table.concat(outtab, "")
|
||||
end
|
||||
local function struct_f_implementation(def)
|
||||
local outtab = {}
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
local ptret = def.retref and "&" or ""
|
||||
|
||||
local imgui_stname = def.stname
|
||||
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
local call_args_conv = def.call_args_conv or def.call_args
|
||||
if def.isvararg then
|
||||
local call_args_conv = call_args_conv:gsub("%.%.%.","args")
|
||||
table.insert(outtab," va_list args;\n")
|
||||
table.insert(outtab," va_start(args, fmt);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," "..def.ret.." ret = self->"..def.funcname.."V"..call_args_conv..";\n")
|
||||
else
|
||||
table.insert(outtab," self->"..def.funcname.."V"..call_args_conv..";\n")
|
||||
end
|
||||
table.insert(outtab," va_end(args);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," return ret;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
-- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#.
|
||||
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
|
||||
table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args).."\n")
|
||||
table.insert(outtab, "{\n")
|
||||
local returnword = "return "
|
||||
if def.ret=="void" then returnword = "" end
|
||||
table.insert(outtab, " "..returnword..def.ov_cimguiname.."(self,"..paramListWithoutDots(def.call_args):sub(2,-1)..";\n")
|
||||
table.insert(outtab, "}\n")
|
||||
table.insert(outtab, "#endif\n")
|
||||
elseif def.nonUDT then
|
||||
if def.nonUDT == 1 then
|
||||
insert(outtab," return ConvertFromCPP_"..def.conv.."(self->"..def.funcname..call_args_conv..");\n")
|
||||
elseif def.nonUDT == 2 then
|
||||
insert(outtab," return reinterpret_cast<"..def.ret..">("..ptret.."self->"..def.funcname..call_args_conv..");\n")
|
||||
elseif def.nonUDT == "string" then
|
||||
insert(outtab," static std::string str;\n")
|
||||
insert(outtab," str.assign("..ptret.."self->"..def.funcname..call_args_conv..");\n")
|
||||
insert(outtab," return str.c_str();\n")
|
||||
elseif def.nonUDT == "opaque" then
|
||||
insert(outtab," static auto opq = "..ptret.."self->"..def.funcname..call_args_conv..";\n")
|
||||
insert(outtab," opq = "..ptret.."self->"..def.funcname..call_args_conv..";\n")
|
||||
insert(outtab," return &opq;\n")
|
||||
end
|
||||
table.insert(outtab,"}\n")
|
||||
else --standard struct
|
||||
table.insert(outtab," return "..ptret.."self->"..def.funcname..call_args_conv..";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
end
|
||||
|
||||
return table.concat(outtab, "")
|
||||
end
|
||||
|
||||
local function func_implementation(FP)
|
||||
|
||||
local outtab = {}
|
||||
for _,t in ipairs(FP.funcdefs) do
|
||||
repeat -- continue simulation
|
||||
if not t.cimguiname then break end
|
||||
local cimf = FP.defsT[t.cimguiname]
|
||||
local def = cimf[t.signature]
|
||||
assert(def)
|
||||
local custom
|
||||
if FP.custom_implementation then
|
||||
custom = FP.custom_implementation(outtab, def, FP)
|
||||
end
|
||||
local manual = FP.get_manuals(def)
|
||||
if not custom and not manual and not def.templated and not FP.get_skipped(def) --and not (FP.opaque_structs[def.stname] and not def.is_static_function)
|
||||
then
|
||||
local call_args_conv = def.call_args_conv or def.call_args
|
||||
if def.constructor then
|
||||
local tab = {}
|
||||
assert(def.stname ~= "","constructor without struct")
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
table.insert(tab,"CIMGUI_API "..def.stname.."* "..def.ov_cimguiname..(empty and "(void)" or def.args).."\n")
|
||||
table.insert(tab,"{\n")
|
||||
table.insert(tab," return IM_NEW("..def.stname..")"..call_args_conv..";\n")
|
||||
table.insert(tab,"}\n")
|
||||
if FP.CONSTRUCTORS_GENERATION then
|
||||
table.insert(tab,"CIMGUI_API void "..def.ov_cimguiname.."_Construct("..def.stname.."* self"..(empty and "" or ","..def.args:sub(2,-2))..")\n")
|
||||
table.insert(tab,"{\n")
|
||||
table.insert(tab," IM_PLACEMENT_NEW(self)"..def.stname..call_args_conv..";\n")
|
||||
table.insert(tab,"}\n")
|
||||
end
|
||||
table.insert(outtab, table.concat(tab, ""))
|
||||
elseif def.destructor then
|
||||
local tab = {}
|
||||
local args = "("..def.stname.."* self)"
|
||||
local fname = def.stname.."_destroy"
|
||||
table.insert(tab,"CIMGUI_API void "..fname..args.."\n")
|
||||
table.insert(tab,"{\n")
|
||||
table.insert(tab," IM_DELETE(self);\n")
|
||||
table.insert(tab,"}\n")
|
||||
table.insert(outtab, table.concat(tab, ""))
|
||||
elseif def.stname == "" or def.is_static_function then
|
||||
table.insert(outtab, ImGui_f_implementation(def))
|
||||
else -- stname
|
||||
table.insert(outtab, struct_f_implementation(def))
|
||||
end
|
||||
end
|
||||
if FP.custom_function_post then
|
||||
FP:custom_function_post(outtab, def)
|
||||
end
|
||||
until true
|
||||
end
|
||||
local conversors = FP:genConversors()
|
||||
local cimplem = conversors .. table.concat(outtab)
|
||||
return cimplem
|
||||
end
|
||||
|
||||
return {func_implementation = func_implementation, save_output = save_output, save_data = save_data, read_data = read_data, copyfile = copyfile, func_header_generate = func_header_generate, prtable = prtable, table_do_sorted = table_do_sorted, save_output = save_output, deepcopy = deepcopy, serializeTableF = serializeTableF, func_header_generate_structs = func_header_generate_structs}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,unsigned int c)",
|
||||
"call_args": "(window,c)",
|
||||
"call_args_old": "(window,c)",
|
||||
"cimguiname": "ImGui_ImplGlfw_CharCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_CharCallback",
|
||||
@@ -40,7 +39,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,int entered)",
|
||||
"call_args": "(window,entered)",
|
||||
"call_args_old": "(window,entered)",
|
||||
"cimguiname": "ImGui_ImplGlfw_CursorEnterCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_CursorEnterCallback",
|
||||
@@ -70,7 +68,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,double x,double y)",
|
||||
"call_args": "(window,x,y)",
|
||||
"call_args_old": "(window,x,y)",
|
||||
"cimguiname": "ImGui_ImplGlfw_CursorPosCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_CursorPosCallback",
|
||||
@@ -92,7 +89,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWmonitor* monitor)",
|
||||
"call_args": "(monitor)",
|
||||
"call_args_old": "(monitor)",
|
||||
"cimguiname": "ImGui_ImplGlfw_GetContentScaleForMonitor",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_GetContentScaleForMonitor",
|
||||
@@ -114,7 +110,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplGlfw_GetContentScaleForWindow",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_GetContentScaleForWindow",
|
||||
@@ -140,7 +135,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,bool install_callbacks)",
|
||||
"call_args": "(window,install_callbacks)",
|
||||
"call_args_old": "(window,install_callbacks)",
|
||||
"cimguiname": "ImGui_ImplGlfw_InitForOpenGL",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_InitForOpenGL",
|
||||
@@ -166,7 +160,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,bool install_callbacks)",
|
||||
"call_args": "(window,install_callbacks)",
|
||||
"call_args_old": "(window,install_callbacks)",
|
||||
"cimguiname": "ImGui_ImplGlfw_InitForOther",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_InitForOther",
|
||||
@@ -192,7 +185,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,bool install_callbacks)",
|
||||
"call_args": "(window,install_callbacks)",
|
||||
"call_args_old": "(window,install_callbacks)",
|
||||
"cimguiname": "ImGui_ImplGlfw_InitForVulkan",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_InitForVulkan",
|
||||
@@ -214,7 +206,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplGlfw_InstallCallbacks",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_InstallCallbacks",
|
||||
@@ -252,7 +243,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,int key,int scancode,int action,int mods)",
|
||||
"call_args": "(window,key,scancode,action,mods)",
|
||||
"call_args_old": "(window,key,scancode,action,mods)",
|
||||
"cimguiname": "ImGui_ImplGlfw_KeyCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_KeyCallback",
|
||||
@@ -278,7 +268,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWmonitor* monitor,int event)",
|
||||
"call_args": "(monitor,event)",
|
||||
"call_args_old": "(monitor,event)",
|
||||
"cimguiname": "ImGui_ImplGlfw_MonitorCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_MonitorCallback",
|
||||
@@ -312,7 +301,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,int button,int action,int mods)",
|
||||
"call_args": "(window,button,action,mods)",
|
||||
"call_args_old": "(window,button,action,mods)",
|
||||
"cimguiname": "ImGui_ImplGlfw_MouseButtonCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_MouseButtonCallback",
|
||||
@@ -329,7 +317,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplGlfw_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_NewFrame",
|
||||
@@ -351,7 +338,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplGlfw_RestoreCallbacks",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_RestoreCallbacks",
|
||||
@@ -381,7 +367,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,double xoffset,double yoffset)",
|
||||
"call_args": "(window,xoffset,yoffset)",
|
||||
"call_args_old": "(window,xoffset,yoffset)",
|
||||
"cimguiname": "ImGui_ImplGlfw_ScrollCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_ScrollCallback",
|
||||
@@ -403,7 +388,6 @@
|
||||
],
|
||||
"argsoriginal": "(bool chain_for_all_windows)",
|
||||
"call_args": "(chain_for_all_windows)",
|
||||
"call_args_old": "(chain_for_all_windows)",
|
||||
"cimguiname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
|
||||
@@ -420,7 +404,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplGlfw_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_Shutdown",
|
||||
@@ -442,7 +425,6 @@
|
||||
],
|
||||
"argsoriginal": "(int milliseconds)",
|
||||
"call_args": "(milliseconds)",
|
||||
"call_args_old": "(milliseconds)",
|
||||
"cimguiname": "ImGui_ImplGlfw_Sleep",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_Sleep",
|
||||
@@ -468,7 +450,6 @@
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,int focused)",
|
||||
"call_args": "(window,focused)",
|
||||
"call_args_old": "(window,focused)",
|
||||
"cimguiname": "ImGui_ImplGlfw_WindowFocusCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_WindowFocusCallback",
|
||||
@@ -485,7 +466,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
@@ -502,7 +482,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
@@ -519,7 +498,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_Init",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_Init",
|
||||
@@ -536,7 +514,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_NewFrame",
|
||||
@@ -558,7 +535,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImDrawData* draw_data)",
|
||||
"call_args": "(draw_data)",
|
||||
"call_args_old": "(draw_data)",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_RenderDrawData",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_RenderDrawData",
|
||||
@@ -575,7 +551,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_Shutdown",
|
||||
@@ -597,7 +572,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImTextureData* tex)",
|
||||
"call_args": "(tex)",
|
||||
"call_args_old": "(tex)",
|
||||
"cimguiname": "ImGui_ImplOpenGL2_UpdateTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_UpdateTexture",
|
||||
@@ -614,7 +588,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_CreateDeviceObjects",
|
||||
@@ -631,7 +604,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_DestroyDeviceObjects",
|
||||
@@ -648,7 +620,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_GetRenderState",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_GetRenderState",
|
||||
@@ -670,7 +641,6 @@
|
||||
],
|
||||
"argsoriginal": "(const char* glsl_version=nullptr)",
|
||||
"call_args": "(glsl_version)",
|
||||
"call_args_old": "(glsl_version)",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_Init",
|
||||
"defaults": {
|
||||
"glsl_version": "nullptr"
|
||||
@@ -689,7 +659,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_NewFrame",
|
||||
@@ -711,7 +680,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImDrawData* draw_data)",
|
||||
"call_args": "(draw_data)",
|
||||
"call_args_old": "(draw_data)",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_RenderDrawData",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_RenderDrawData",
|
||||
@@ -728,7 +696,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_Shutdown",
|
||||
@@ -750,7 +717,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImTextureData* tex)",
|
||||
"call_args": "(tex)",
|
||||
"call_args_old": "(tex)",
|
||||
"cimguiname": "ImGui_ImplOpenGL3_UpdateTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL3_UpdateTexture",
|
||||
@@ -772,7 +738,6 @@
|
||||
],
|
||||
"argsoriginal": "(int display_index)",
|
||||
"call_args": "(display_index)",
|
||||
"call_args_old": "(display_index)",
|
||||
"cimguiname": "ImGui_ImplSDL2_GetContentScaleForDisplay",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_GetContentScaleForDisplay",
|
||||
@@ -794,7 +759,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL2_GetContentScaleForWindow",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_GetContentScaleForWindow",
|
||||
@@ -816,7 +780,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL2_InitForD3D",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_InitForD3D",
|
||||
@@ -838,7 +801,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL2_InitForMetal",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_InitForMetal",
|
||||
@@ -864,7 +826,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window,void* sdl_gl_context)",
|
||||
"call_args": "(window,sdl_gl_context)",
|
||||
"call_args_old": "(window,sdl_gl_context)",
|
||||
"cimguiname": "ImGui_ImplSDL2_InitForOpenGL",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_InitForOpenGL",
|
||||
@@ -886,7 +847,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL2_InitForOther",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_InitForOther",
|
||||
@@ -912,7 +872,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window,SDL_Renderer* renderer)",
|
||||
"call_args": "(window,renderer)",
|
||||
"call_args_old": "(window,renderer)",
|
||||
"cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_InitForSDLRenderer",
|
||||
@@ -934,7 +893,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL2_InitForVulkan",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_InitForVulkan",
|
||||
@@ -951,7 +909,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplSDL2_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_NewFrame",
|
||||
@@ -973,7 +930,6 @@
|
||||
],
|
||||
"argsoriginal": "(const SDL_Event* event)",
|
||||
"call_args": "(event)",
|
||||
"call_args_old": "(event)",
|
||||
"cimguiname": "ImGui_ImplSDL2_ProcessEvent",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_ProcessEvent",
|
||||
@@ -1003,7 +959,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImGui_ImplSDL2_GamepadMode mode,struct _SDL_GameController** manual_gamepads_array=nullptr,int manual_gamepads_count=-1)",
|
||||
"call_args": "(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
"call_args_old": "(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
"cimguiname": "ImGui_ImplSDL2_SetGamepadMode",
|
||||
"defaults": {
|
||||
"manual_gamepads_array": "nullptr",
|
||||
@@ -1028,7 +983,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImGui_ImplSDL2_MouseCaptureMode mode)",
|
||||
"call_args": "(mode)",
|
||||
"call_args_old": "(mode)",
|
||||
"cimguiname": "ImGui_ImplSDL2_SetMouseCaptureMode",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_SetMouseCaptureMode",
|
||||
@@ -1045,7 +999,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplSDL2_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL2_Shutdown",
|
||||
@@ -1067,7 +1020,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForD3D",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForD3D",
|
||||
@@ -1089,7 +1041,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForMetal",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForMetal",
|
||||
@@ -1115,7 +1066,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window,void* sdl_gl_context)",
|
||||
"call_args": "(window,sdl_gl_context)",
|
||||
"call_args_old": "(window,sdl_gl_context)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForOpenGL",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForOpenGL",
|
||||
@@ -1137,7 +1087,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForOther",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForOther",
|
||||
@@ -1159,7 +1108,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForSDLGPU",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForSDLGPU",
|
||||
@@ -1185,7 +1133,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window,SDL_Renderer* renderer)",
|
||||
"call_args": "(window,renderer)",
|
||||
"call_args_old": "(window,renderer)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForSDLRenderer",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForSDLRenderer",
|
||||
@@ -1207,7 +1154,6 @@
|
||||
],
|
||||
"argsoriginal": "(SDL_Window* window)",
|
||||
"call_args": "(window)",
|
||||
"call_args_old": "(window)",
|
||||
"cimguiname": "ImGui_ImplSDL3_InitForVulkan",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_InitForVulkan",
|
||||
@@ -1224,7 +1170,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplSDL3_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_NewFrame",
|
||||
@@ -1246,7 +1191,6 @@
|
||||
],
|
||||
"argsoriginal": "(const SDL_Event* event)",
|
||||
"call_args": "(event)",
|
||||
"call_args_old": "(event)",
|
||||
"cimguiname": "ImGui_ImplSDL3_ProcessEvent",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_ProcessEvent",
|
||||
@@ -1276,7 +1220,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImGui_ImplSDL3_GamepadMode mode,SDL_Gamepad** manual_gamepads_array=nullptr,int manual_gamepads_count=-1)",
|
||||
"call_args": "(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
"call_args_old": "(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
"cimguiname": "ImGui_ImplSDL3_SetGamepadMode",
|
||||
"defaults": {
|
||||
"manual_gamepads_array": "nullptr",
|
||||
@@ -1301,7 +1244,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImGui_ImplSDL3_MouseCaptureMode mode)",
|
||||
"call_args": "(mode)",
|
||||
"call_args_old": "(mode)",
|
||||
"cimguiname": "ImGui_ImplSDL3_SetMouseCaptureMode",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_SetMouseCaptureMode",
|
||||
@@ -1318,7 +1260,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplSDL3_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplSDL3_Shutdown",
|
||||
@@ -1376,7 +1317,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkInstance instance,VkPhysicalDevice physical_device,VkDevice device,ImGui_ImplVulkanH_Window* wd,uint32_t queue_family,const VkAllocationCallbacks* allocator,int w,int h,uint32_t min_image_count,VkImageUsageFlags image_usage)",
|
||||
"call_args": "(instance,physical_device,device,wd,queue_family,allocator,w,h,min_image_count,image_usage)",
|
||||
"call_args_old": "(instance,physical_device,device,wd,queue_family,allocator,w,h,min_image_count,image_usage)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
@@ -1410,7 +1350,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator)",
|
||||
"call_args": "(instance,device,wd,allocator)",
|
||||
"call_args_old": "(instance,device,wd,allocator)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_DestroyWindow",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_DestroyWindow",
|
||||
@@ -1432,7 +1371,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkPresentModeKHR present_mode)",
|
||||
"call_args": "(present_mode)",
|
||||
"call_args_old": "(present_mode)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
@@ -1454,7 +1392,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImGuiViewport* viewport)",
|
||||
"call_args": "(viewport)",
|
||||
"call_args_old": "(viewport)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
@@ -1476,7 +1413,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkInstance instance)",
|
||||
"call_args": "(instance)",
|
||||
"call_args_old": "(instance)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
@@ -1510,7 +1446,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count)",
|
||||
"call_args": "(physical_device,surface,request_modes,request_modes_count)",
|
||||
"call_args_old": "(physical_device,surface,request_modes,request_modes_count)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectPresentMode",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectPresentMode",
|
||||
@@ -1532,7 +1467,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkPhysicalDevice physical_device)",
|
||||
"call_args": "(physical_device)",
|
||||
"call_args_old": "(physical_device)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
@@ -1570,7 +1504,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space)",
|
||||
"call_args": "(physical_device,surface,request_formats,request_formats_count,request_color_space)",
|
||||
"call_args_old": "(physical_device,surface,request_formats,request_formats_count,request_color_space)",
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
@@ -1587,7 +1520,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
|
||||
"constructor": true,
|
||||
"defaults": {},
|
||||
@@ -1634,7 +1566,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkImageView image_view,VkImageLayout image_layout)",
|
||||
"call_args": "(image_view,image_layout)",
|
||||
"call_args_old": "(image_view,image_layout)",
|
||||
"cimguiname": "ImGui_ImplVulkan_AddTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_AddTexture",
|
||||
@@ -1656,7 +1587,6 @@
|
||||
],
|
||||
"argsoriginal": "(const ImGui_ImplVulkan_PipelineInfo* info)",
|
||||
"call_args": "(info)",
|
||||
"call_args_old": "(info)",
|
||||
"cimguiname": "ImGui_ImplVulkan_CreateMainPipeline",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_CreateMainPipeline",
|
||||
@@ -1678,7 +1608,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImGui_ImplVulkan_InitInfo* info)",
|
||||
"call_args": "(info)",
|
||||
"call_args_old": "(info)",
|
||||
"cimguiname": "ImGui_ImplVulkan_Init",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_Init",
|
||||
@@ -1708,7 +1637,6 @@
|
||||
],
|
||||
"argsoriginal": "(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data=nullptr)",
|
||||
"call_args": "(api_version,user_data),user_data)",
|
||||
"call_args_old": "(api_version,user_data),user_data)",
|
||||
"cimguiname": "ImGui_ImplVulkan_LoadFunctions",
|
||||
"defaults": {
|
||||
"user_data": "nullptr"
|
||||
@@ -1727,7 +1655,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplVulkan_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_NewFrame",
|
||||
@@ -1749,7 +1676,6 @@
|
||||
],
|
||||
"argsoriginal": "(VkDescriptorSet descriptor_set)",
|
||||
"call_args": "(descriptor_set)",
|
||||
"call_args_old": "(descriptor_set)",
|
||||
"cimguiname": "ImGui_ImplVulkan_RemoveTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_RemoveTexture",
|
||||
@@ -1779,7 +1705,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline=0ULL)",
|
||||
"call_args": "(draw_data,command_buffer,pipeline)",
|
||||
"call_args_old": "(draw_data,command_buffer,pipeline)",
|
||||
"cimguiname": "ImGui_ImplVulkan_RenderDrawData",
|
||||
"defaults": {
|
||||
"pipeline": "0ULL"
|
||||
@@ -1803,7 +1728,6 @@
|
||||
],
|
||||
"argsoriginal": "(uint32_t min_image_count)",
|
||||
"call_args": "(min_image_count)",
|
||||
"call_args_old": "(min_image_count)",
|
||||
"cimguiname": "ImGui_ImplVulkan_SetMinImageCount",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_SetMinImageCount",
|
||||
@@ -1820,7 +1744,6 @@
|
||||
"argsT": [],
|
||||
"argsoriginal": "()",
|
||||
"call_args": "()",
|
||||
"call_args_old": "()",
|
||||
"cimguiname": "ImGui_ImplVulkan_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_Shutdown",
|
||||
@@ -1842,7 +1765,6 @@
|
||||
],
|
||||
"argsoriginal": "(ImTextureData* tex)",
|
||||
"call_args": "(tex)",
|
||||
"call_args_old": "(tex)",
|
||||
"cimguiname": "ImGui_ImplVulkan_UpdateTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_UpdateTexture",
|
||||
|
||||
@@ -11,7 +11,6 @@ local t={
|
||||
type="unsigned int"}},
|
||||
argsoriginal="(GLFWwindow* window,unsigned int c)",
|
||||
call_args="(window,c)",
|
||||
call_args_old="(window,c)",
|
||||
cimguiname="ImGui_ImplGlfw_CharCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_CharCallback",
|
||||
@@ -33,7 +32,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(GLFWwindow* window,int entered)",
|
||||
call_args="(window,entered)",
|
||||
call_args_old="(window,entered)",
|
||||
cimguiname="ImGui_ImplGlfw_CursorEnterCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_CursorEnterCallback",
|
||||
@@ -58,7 +56,6 @@ local t={
|
||||
type="double"}},
|
||||
argsoriginal="(GLFWwindow* window,double x,double y)",
|
||||
call_args="(window,x,y)",
|
||||
call_args_old="(window,x,y)",
|
||||
cimguiname="ImGui_ImplGlfw_CursorPosCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_CursorPosCallback",
|
||||
@@ -77,7 +74,6 @@ local t={
|
||||
type="GLFWmonitor*"}},
|
||||
argsoriginal="(GLFWmonitor* monitor)",
|
||||
call_args="(monitor)",
|
||||
call_args_old="(monitor)",
|
||||
cimguiname="ImGui_ImplGlfw_GetContentScaleForMonitor",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_GetContentScaleForMonitor",
|
||||
@@ -96,7 +92,6 @@ local t={
|
||||
type="GLFWwindow*"}},
|
||||
argsoriginal="(GLFWwindow* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplGlfw_GetContentScaleForWindow",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_GetContentScaleForWindow",
|
||||
@@ -118,7 +113,6 @@ local t={
|
||||
type="bool"}},
|
||||
argsoriginal="(GLFWwindow* window,bool install_callbacks)",
|
||||
call_args="(window,install_callbacks)",
|
||||
call_args_old="(window,install_callbacks)",
|
||||
cimguiname="ImGui_ImplGlfw_InitForOpenGL",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_InitForOpenGL",
|
||||
@@ -140,7 +134,6 @@ local t={
|
||||
type="bool"}},
|
||||
argsoriginal="(GLFWwindow* window,bool install_callbacks)",
|
||||
call_args="(window,install_callbacks)",
|
||||
call_args_old="(window,install_callbacks)",
|
||||
cimguiname="ImGui_ImplGlfw_InitForOther",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_InitForOther",
|
||||
@@ -162,7 +155,6 @@ local t={
|
||||
type="bool"}},
|
||||
argsoriginal="(GLFWwindow* window,bool install_callbacks)",
|
||||
call_args="(window,install_callbacks)",
|
||||
call_args_old="(window,install_callbacks)",
|
||||
cimguiname="ImGui_ImplGlfw_InitForVulkan",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_InitForVulkan",
|
||||
@@ -181,7 +173,6 @@ local t={
|
||||
type="GLFWwindow*"}},
|
||||
argsoriginal="(GLFWwindow* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplGlfw_InstallCallbacks",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_InstallCallbacks",
|
||||
@@ -212,7 +203,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(GLFWwindow* window,int key,int scancode,int action,int mods)",
|
||||
call_args="(window,key,scancode,action,mods)",
|
||||
call_args_old="(window,key,scancode,action,mods)",
|
||||
cimguiname="ImGui_ImplGlfw_KeyCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_KeyCallback",
|
||||
@@ -234,7 +224,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(GLFWmonitor* monitor,int event)",
|
||||
call_args="(monitor,event)",
|
||||
call_args_old="(monitor,event)",
|
||||
cimguiname="ImGui_ImplGlfw_MonitorCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_MonitorCallback",
|
||||
@@ -262,7 +251,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(GLFWwindow* window,int button,int action,int mods)",
|
||||
call_args="(window,button,action,mods)",
|
||||
call_args_old="(window,button,action,mods)",
|
||||
cimguiname="ImGui_ImplGlfw_MouseButtonCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_MouseButtonCallback",
|
||||
@@ -278,7 +266,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplGlfw_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_NewFrame",
|
||||
@@ -297,7 +284,6 @@ local t={
|
||||
type="GLFWwindow*"}},
|
||||
argsoriginal="(GLFWwindow* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplGlfw_RestoreCallbacks",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_RestoreCallbacks",
|
||||
@@ -322,7 +308,6 @@ local t={
|
||||
type="double"}},
|
||||
argsoriginal="(GLFWwindow* window,double xoffset,double yoffset)",
|
||||
call_args="(window,xoffset,yoffset)",
|
||||
call_args_old="(window,xoffset,yoffset)",
|
||||
cimguiname="ImGui_ImplGlfw_ScrollCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_ScrollCallback",
|
||||
@@ -341,7 +326,6 @@ local t={
|
||||
type="bool"}},
|
||||
argsoriginal="(bool chain_for_all_windows)",
|
||||
call_args="(chain_for_all_windows)",
|
||||
call_args_old="(chain_for_all_windows)",
|
||||
cimguiname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
|
||||
@@ -357,7 +341,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplGlfw_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_Shutdown",
|
||||
@@ -376,7 +359,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(int milliseconds)",
|
||||
call_args="(milliseconds)",
|
||||
call_args_old="(milliseconds)",
|
||||
cimguiname="ImGui_ImplGlfw_Sleep",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_Sleep",
|
||||
@@ -398,7 +380,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(GLFWwindow* window,int focused)",
|
||||
call_args="(window,focused)",
|
||||
call_args_old="(window,focused)",
|
||||
cimguiname="ImGui_ImplGlfw_WindowFocusCallback",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplGlfw_WindowFocusCallback",
|
||||
@@ -414,7 +395,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
@@ -430,7 +410,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
@@ -446,7 +425,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL2_Init",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_Init",
|
||||
@@ -462,7 +440,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL2_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_NewFrame",
|
||||
@@ -481,7 +458,6 @@ local t={
|
||||
type="ImDrawData*"}},
|
||||
argsoriginal="(ImDrawData* draw_data)",
|
||||
call_args="(draw_data)",
|
||||
call_args_old="(draw_data)",
|
||||
cimguiname="ImGui_ImplOpenGL2_RenderDrawData",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_RenderDrawData",
|
||||
@@ -497,7 +473,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL2_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_Shutdown",
|
||||
@@ -516,7 +491,6 @@ local t={
|
||||
type="ImTextureData*"}},
|
||||
argsoriginal="(ImTextureData* tex)",
|
||||
call_args="(tex)",
|
||||
call_args_old="(tex)",
|
||||
cimguiname="ImGui_ImplOpenGL2_UpdateTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_UpdateTexture",
|
||||
@@ -532,7 +506,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL3_CreateDeviceObjects",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_CreateDeviceObjects",
|
||||
@@ -548,7 +521,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL3_DestroyDeviceObjects",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_DestroyDeviceObjects",
|
||||
@@ -564,7 +536,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL3_GetRenderState",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_GetRenderState",
|
||||
@@ -583,7 +554,6 @@ local t={
|
||||
type="const char*"}},
|
||||
argsoriginal="(const char* glsl_version=nullptr)",
|
||||
call_args="(glsl_version)",
|
||||
call_args_old="(glsl_version)",
|
||||
cimguiname="ImGui_ImplOpenGL3_Init",
|
||||
defaults={
|
||||
glsl_version="nullptr"},
|
||||
@@ -600,7 +570,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL3_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_NewFrame",
|
||||
@@ -619,7 +588,6 @@ local t={
|
||||
type="ImDrawData*"}},
|
||||
argsoriginal="(ImDrawData* draw_data)",
|
||||
call_args="(draw_data)",
|
||||
call_args_old="(draw_data)",
|
||||
cimguiname="ImGui_ImplOpenGL3_RenderDrawData",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_RenderDrawData",
|
||||
@@ -635,7 +603,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplOpenGL3_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_Shutdown",
|
||||
@@ -654,7 +621,6 @@ local t={
|
||||
type="ImTextureData*"}},
|
||||
argsoriginal="(ImTextureData* tex)",
|
||||
call_args="(tex)",
|
||||
call_args_old="(tex)",
|
||||
cimguiname="ImGui_ImplOpenGL3_UpdateTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL3_UpdateTexture",
|
||||
@@ -673,7 +639,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(int display_index)",
|
||||
call_args="(display_index)",
|
||||
call_args_old="(display_index)",
|
||||
cimguiname="ImGui_ImplSDL2_GetContentScaleForDisplay",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_GetContentScaleForDisplay",
|
||||
@@ -692,7 +657,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL2_GetContentScaleForWindow",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_GetContentScaleForWindow",
|
||||
@@ -711,7 +675,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL2_InitForD3D",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_InitForD3D",
|
||||
@@ -730,7 +693,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL2_InitForMetal",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_InitForMetal",
|
||||
@@ -752,7 +714,6 @@ local t={
|
||||
type="void*"}},
|
||||
argsoriginal="(SDL_Window* window,void* sdl_gl_context)",
|
||||
call_args="(window,sdl_gl_context)",
|
||||
call_args_old="(window,sdl_gl_context)",
|
||||
cimguiname="ImGui_ImplSDL2_InitForOpenGL",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_InitForOpenGL",
|
||||
@@ -771,7 +732,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL2_InitForOther",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_InitForOther",
|
||||
@@ -793,7 +753,6 @@ local t={
|
||||
type="SDL_Renderer*"}},
|
||||
argsoriginal="(SDL_Window* window,SDL_Renderer* renderer)",
|
||||
call_args="(window,renderer)",
|
||||
call_args_old="(window,renderer)",
|
||||
cimguiname="ImGui_ImplSDL2_InitForSDLRenderer",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_InitForSDLRenderer",
|
||||
@@ -812,7 +771,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL2_InitForVulkan",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_InitForVulkan",
|
||||
@@ -828,7 +786,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplSDL2_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_NewFrame",
|
||||
@@ -847,7 +804,6 @@ local t={
|
||||
type="const SDL_Event*"}},
|
||||
argsoriginal="(const SDL_Event* event)",
|
||||
call_args="(event)",
|
||||
call_args_old="(event)",
|
||||
cimguiname="ImGui_ImplSDL2_ProcessEvent",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_ProcessEvent",
|
||||
@@ -872,7 +828,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(ImGui_ImplSDL2_GamepadMode mode,struct _SDL_GameController** manual_gamepads_array=nullptr,int manual_gamepads_count=-1)",
|
||||
call_args="(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
call_args_old="(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
cimguiname="ImGui_ImplSDL2_SetGamepadMode",
|
||||
defaults={
|
||||
manual_gamepads_array="nullptr",
|
||||
@@ -893,7 +848,6 @@ local t={
|
||||
type="ImGui_ImplSDL2_MouseCaptureMode"}},
|
||||
argsoriginal="(ImGui_ImplSDL2_MouseCaptureMode mode)",
|
||||
call_args="(mode)",
|
||||
call_args_old="(mode)",
|
||||
cimguiname="ImGui_ImplSDL2_SetMouseCaptureMode",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_SetMouseCaptureMode",
|
||||
@@ -909,7 +863,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplSDL2_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL2_Shutdown",
|
||||
@@ -928,7 +881,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForD3D",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForD3D",
|
||||
@@ -947,7 +899,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForMetal",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForMetal",
|
||||
@@ -969,7 +920,6 @@ local t={
|
||||
type="void*"}},
|
||||
argsoriginal="(SDL_Window* window,void* sdl_gl_context)",
|
||||
call_args="(window,sdl_gl_context)",
|
||||
call_args_old="(window,sdl_gl_context)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForOpenGL",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForOpenGL",
|
||||
@@ -988,7 +938,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForOther",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForOther",
|
||||
@@ -1007,7 +956,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForSDLGPU",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForSDLGPU",
|
||||
@@ -1029,7 +977,6 @@ local t={
|
||||
type="SDL_Renderer*"}},
|
||||
argsoriginal="(SDL_Window* window,SDL_Renderer* renderer)",
|
||||
call_args="(window,renderer)",
|
||||
call_args_old="(window,renderer)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForSDLRenderer",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForSDLRenderer",
|
||||
@@ -1048,7 +995,6 @@ local t={
|
||||
type="SDL_Window*"}},
|
||||
argsoriginal="(SDL_Window* window)",
|
||||
call_args="(window)",
|
||||
call_args_old="(window)",
|
||||
cimguiname="ImGui_ImplSDL3_InitForVulkan",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_InitForVulkan",
|
||||
@@ -1064,7 +1010,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplSDL3_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_NewFrame",
|
||||
@@ -1083,7 +1028,6 @@ local t={
|
||||
type="const SDL_Event*"}},
|
||||
argsoriginal="(const SDL_Event* event)",
|
||||
call_args="(event)",
|
||||
call_args_old="(event)",
|
||||
cimguiname="ImGui_ImplSDL3_ProcessEvent",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_ProcessEvent",
|
||||
@@ -1108,7 +1052,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(ImGui_ImplSDL3_GamepadMode mode,SDL_Gamepad** manual_gamepads_array=nullptr,int manual_gamepads_count=-1)",
|
||||
call_args="(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
call_args_old="(mode,manual_gamepads_array,manual_gamepads_count)",
|
||||
cimguiname="ImGui_ImplSDL3_SetGamepadMode",
|
||||
defaults={
|
||||
manual_gamepads_array="nullptr",
|
||||
@@ -1129,7 +1072,6 @@ local t={
|
||||
type="ImGui_ImplSDL3_MouseCaptureMode"}},
|
||||
argsoriginal="(ImGui_ImplSDL3_MouseCaptureMode mode)",
|
||||
call_args="(mode)",
|
||||
call_args_old="(mode)",
|
||||
cimguiname="ImGui_ImplSDL3_SetMouseCaptureMode",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_SetMouseCaptureMode",
|
||||
@@ -1145,7 +1087,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplSDL3_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplSDL3_Shutdown",
|
||||
@@ -1191,7 +1132,6 @@ local t={
|
||||
type="VkImageUsageFlags"}},
|
||||
argsoriginal="(VkInstance instance,VkPhysicalDevice physical_device,VkDevice device,ImGui_ImplVulkanH_Window* wd,uint32_t queue_family,const VkAllocationCallbacks* allocator,int w,int h,uint32_t min_image_count,VkImageUsageFlags image_usage)",
|
||||
call_args="(instance,physical_device,device,wd,queue_family,allocator,w,h,min_image_count,image_usage)",
|
||||
call_args_old="(instance,physical_device,device,wd,queue_family,allocator,w,h,min_image_count,image_usage)",
|
||||
cimguiname="ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
@@ -1219,7 +1159,6 @@ local t={
|
||||
type="const VkAllocationCallbacks*"}},
|
||||
argsoriginal="(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator)",
|
||||
call_args="(instance,device,wd,allocator)",
|
||||
call_args_old="(instance,device,wd,allocator)",
|
||||
cimguiname="ImGui_ImplVulkanH_DestroyWindow",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_DestroyWindow",
|
||||
@@ -1238,7 +1177,6 @@ local t={
|
||||
type="VkPresentModeKHR"}},
|
||||
argsoriginal="(VkPresentModeKHR present_mode)",
|
||||
call_args="(present_mode)",
|
||||
call_args_old="(present_mode)",
|
||||
cimguiname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
@@ -1257,7 +1195,6 @@ local t={
|
||||
type="ImGuiViewport*"}},
|
||||
argsoriginal="(ImGuiViewport* viewport)",
|
||||
call_args="(viewport)",
|
||||
call_args_old="(viewport)",
|
||||
cimguiname="ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
@@ -1276,7 +1213,6 @@ local t={
|
||||
type="VkInstance"}},
|
||||
argsoriginal="(VkInstance instance)",
|
||||
call_args="(instance)",
|
||||
call_args_old="(instance)",
|
||||
cimguiname="ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
@@ -1304,7 +1240,6 @@ local t={
|
||||
type="int"}},
|
||||
argsoriginal="(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count)",
|
||||
call_args="(physical_device,surface,request_modes,request_modes_count)",
|
||||
call_args_old="(physical_device,surface,request_modes,request_modes_count)",
|
||||
cimguiname="ImGui_ImplVulkanH_SelectPresentMode",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectPresentMode",
|
||||
@@ -1323,7 +1258,6 @@ local t={
|
||||
type="VkPhysicalDevice"}},
|
||||
argsoriginal="(VkPhysicalDevice physical_device)",
|
||||
call_args="(physical_device)",
|
||||
call_args_old="(physical_device)",
|
||||
cimguiname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
@@ -1354,7 +1288,6 @@ local t={
|
||||
type="VkColorSpaceKHR"}},
|
||||
argsoriginal="(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space)",
|
||||
call_args="(physical_device,surface,request_formats,request_formats_count,request_color_space)",
|
||||
call_args_old="(physical_device,surface,request_formats,request_formats_count,request_color_space)",
|
||||
cimguiname="ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
@@ -1370,7 +1303,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
|
||||
constructor=true,
|
||||
defaults={},
|
||||
@@ -1410,7 +1342,6 @@ local t={
|
||||
type="VkImageLayout"}},
|
||||
argsoriginal="(VkImageView image_view,VkImageLayout image_layout)",
|
||||
call_args="(image_view,image_layout)",
|
||||
call_args_old="(image_view,image_layout)",
|
||||
cimguiname="ImGui_ImplVulkan_AddTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_AddTexture",
|
||||
@@ -1429,7 +1360,6 @@ local t={
|
||||
type="const ImGui_ImplVulkan_PipelineInfo*"}},
|
||||
argsoriginal="(const ImGui_ImplVulkan_PipelineInfo* info)",
|
||||
call_args="(info)",
|
||||
call_args_old="(info)",
|
||||
cimguiname="ImGui_ImplVulkan_CreateMainPipeline",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_CreateMainPipeline",
|
||||
@@ -1448,7 +1378,6 @@ local t={
|
||||
type="ImGui_ImplVulkan_InitInfo*"}},
|
||||
argsoriginal="(ImGui_ImplVulkan_InitInfo* info)",
|
||||
call_args="(info)",
|
||||
call_args_old="(info)",
|
||||
cimguiname="ImGui_ImplVulkan_Init",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_Init",
|
||||
@@ -1473,7 +1402,6 @@ local t={
|
||||
type="void*"}},
|
||||
argsoriginal="(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data=nullptr)",
|
||||
call_args="(api_version,user_data),user_data)",
|
||||
call_args_old="(api_version,user_data),user_data)",
|
||||
cimguiname="ImGui_ImplVulkan_LoadFunctions",
|
||||
defaults={
|
||||
user_data="nullptr"},
|
||||
@@ -1490,7 +1418,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplVulkan_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_NewFrame",
|
||||
@@ -1509,7 +1436,6 @@ local t={
|
||||
type="VkDescriptorSet"}},
|
||||
argsoriginal="(VkDescriptorSet descriptor_set)",
|
||||
call_args="(descriptor_set)",
|
||||
call_args_old="(descriptor_set)",
|
||||
cimguiname="ImGui_ImplVulkan_RemoveTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_RemoveTexture",
|
||||
@@ -1534,7 +1460,6 @@ local t={
|
||||
type="VkPipeline"}},
|
||||
argsoriginal="(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline=0ULL)",
|
||||
call_args="(draw_data,command_buffer,pipeline)",
|
||||
call_args_old="(draw_data,command_buffer,pipeline)",
|
||||
cimguiname="ImGui_ImplVulkan_RenderDrawData",
|
||||
defaults={
|
||||
pipeline="0ULL"},
|
||||
@@ -1554,7 +1479,6 @@ local t={
|
||||
type="uint32_t"}},
|
||||
argsoriginal="(uint32_t min_image_count)",
|
||||
call_args="(min_image_count)",
|
||||
call_args_old="(min_image_count)",
|
||||
cimguiname="ImGui_ImplVulkan_SetMinImageCount",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_SetMinImageCount",
|
||||
@@ -1570,7 +1494,6 @@ local t={
|
||||
argsT={},
|
||||
argsoriginal="()",
|
||||
call_args="()",
|
||||
call_args_old="()",
|
||||
cimguiname="ImGui_ImplVulkan_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_Shutdown",
|
||||
@@ -1589,7 +1512,6 @@ local t={
|
||||
type="ImTextureData*"}},
|
||||
argsoriginal="(ImTextureData* tex)",
|
||||
call_args="(tex)",
|
||||
call_args_old="(tex)",
|
||||
cimguiname="ImGui_ImplVulkan_UpdateTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_UpdateTexture",
|
||||
|
||||
Reference in New Issue
Block a user