jai port :D
This commit is contained in:
30
modules/ImGui/module.jai
Normal file
30
modules/ImGui/module.jai
Normal file
@@ -0,0 +1,30 @@
|
||||
// ImGui module for autosample — docking branch 1.92.7
|
||||
// Core bindings are auto-generated in windows.jai via generate.jai.
|
||||
// Backend and DockBuilder wrappers use C-linkage via imgui_backend_c.cpp.
|
||||
|
||||
ImVec2 :: Vector2;
|
||||
ImVec4 :: Vector4;
|
||||
ImColor :: Vector4;
|
||||
|
||||
ImVector :: struct (T: Type) {
|
||||
Size: s32;
|
||||
Capacity: s32;
|
||||
Data: *T;
|
||||
}
|
||||
|
||||
ImDrawCallback :: #type (parent_list: *ImDrawList, cmd: *ImDrawCmd) #c_call;
|
||||
|
||||
#scope_module
|
||||
|
||||
#import "Basic";
|
||||
#import "Math";
|
||||
|
||||
#if OS == .WINDOWS {
|
||||
imgui :: #library,no_dll "windows/ImGui";
|
||||
#load "windows.jai";
|
||||
#load "backend.jai";
|
||||
#library,system,link_always "user32";
|
||||
#library,system,link_always "gdi32";
|
||||
#library,system,link_always "dwmapi";
|
||||
#library,system,link_always "d3dcompiler";
|
||||
}
|
||||
Reference in New Issue
Block a user