Skip to content

Commit

Permalink
fix dub imgui deps and size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 15, 2025
1 parent b314238 commit 65b4bad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ subPackage {
dflags "-preview=all" "-i=sokol" "-i=shaders" "-i=handmade" "-i=cimgui"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
dflags "-P-I$HOME/.cache/zig/p/12200aded8c04f0f18420f41bd97392d67da33b74833e8474932ad58e2fedd2f905c/src" platform="posix"
dflags "-P-I$APPDATA\\Local\\zig\\p\\12200aded8c04f0f18420f41bd97392d67da33b74833e8474932ad58e2fedd2f905c\\src" platform="windows"
dflags "-P-I$HOME/.cache/zig/p/1220c640ad23d8800437166865e54f172c612fcfe6e000149a2b2af631c37b605f50/src" platform="posix"
dflags "-P-I$APPDATA\\Local\\zig\\p\\1220c640ad23d8800437166865e54f172c612fcfe6e000149a2b2af631c37b605f50\\src" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/bufferoffsets.d" "src/examples/instancing.d" "src/examples/offscreen.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/vertexpull.d" "src/examples/quad.d" "src/examples/noninterleaved.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/texcube.d" "src/examples/droptest.d" "src/examples/shapes.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact"
}
Expand All @@ -348,8 +348,8 @@ subPackage {
dflags "-preview=all" "-i=sokol" "-i=shaders" "-i=handmade" "-i=cimgui"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
dflags "-P-I$HOME/.cache/zig/p/12200aded8c04f0f18420f41bd97392d67da33b74833e8474932ad58e2fedd2f905c/src" platform="posix"
dflags "-P-I$APPDATA\\Local\\zig\\p\\12200aded8c04f0f18420f41bd97392d67da33b74833e8474932ad58e2fedd2f905c\\src" platform="windows"
dflags "-P-I$HOME/.cache/zig/p/1220c640ad23d8800437166865e54f172c612fcfe6e000149a2b2af631c37b605f50/src" platform="posix"
dflags "-P-I$APPDATA\\Local\\zig\\p\\1220c640ad23d8800437166865e54f172c612fcfe6e000149a2b2af631c37b605f50\\src" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/bufferoffsets.d" "src/examples/instancing.d" "src/examples/offscreen.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/vertexpull.d" "src/examples/quad.d" "src/examples/noninterleaved.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/texcube.d" "src/examples/imgui.d" "src/examples/shapes.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact"
}
3 changes: 3 additions & 0 deletions src/cimgui/cimgui.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module cimgui.cimgui;
// get dcimgui headers to module - @system (unsafe) functions by default
public import cimgui.dcimgui;

// replace object.size_t to cimgui.cimgui.size_t
version (Windows) alias size_t = cimgui.cimgui.size_t;

scope ImGuiContext_t* CreateContext(scope const(ImFontAtlas_t)* shared_font_atlas) @trusted
{
return igCreateContext(cast(ImFontAtlas_t*) shared_font_atlas);
Expand Down

0 comments on commit 65b4bad

Please sign in to comment.