mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 05:23:00 +01:00
IDL: Fixed functions that require _this.
This commit is contained in:
@@ -272,6 +272,21 @@ function converter.funcs(func)
|
||||
local first = ""
|
||||
local args = "("
|
||||
|
||||
if func.this ~= nil then
|
||||
|
||||
local thisType = func.this:gsub("const ", "")
|
||||
if thisType == "bgfx_encoder_t*" then
|
||||
thisType = "Encoder*"
|
||||
elseif thisType == "bgfx_attachment_t*" then
|
||||
thisType = "Attachment*"
|
||||
elseif thisType == "bgfx_vertex_decl_t*" then
|
||||
thisType = "VertexDecl*"
|
||||
end
|
||||
|
||||
args = args .. thisType .. " " .. "_this"
|
||||
first = ", "
|
||||
end
|
||||
|
||||
for _, arg in ipairs(func.args) do
|
||||
|
||||
local argtype = convert_type(arg)
|
||||
|
||||
Reference in New Issue
Block a user