Added C# bindings.

This commit is contained in:
Бранимир Караџић
2019-07-04 16:46:25 -07:00
parent 7184da2050
commit 7d047dfc5b
3 changed files with 1497 additions and 13 deletions

View File

@@ -66,16 +66,10 @@ newaction {
generate("temp.bgfx.idl.inl", "../src/bgfx.idl.inl", "\t")
generate("temp.defines.h", "../include/bgfx/defines.h", "\t")
os.exit()
end
}
newaction {
trigger = "c#-idl",
description = "Generate bgfx C# bindings.",
execute = function ()
local csidl = require "csharp"
do
local csgen = require "csharp"
csgen.write(csgen.gen(), "../bindings/cs/bgfx.cs")
end
os.exit()
end