imgui-bindings 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README.md +1 -1
- data/lib/imgui.aarch64.so +0 -0
- data/lib/imgui.arm64.dylib +0 -0
- data/lib/imgui.dll +0 -0
- data/lib/imgui.rb +13276 -13183
- data/lib/imgui.x86_64.dylib +0 -0
- data/lib/imgui.x86_64.so +0 -0
- data/lib/imgui_impl_raylib.rb +9 -17
- metadata +1 -1
data/lib/imgui.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/imgui.x86_64.so
CHANGED
|
Binary file
|
data/lib/imgui_impl_raylib.rb
CHANGED
|
@@ -94,16 +94,10 @@ module ImGui
|
|
|
94
94
|
texture[:format] = Raylib::PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
rec[:x] = r[:x].to_f
|
|
102
|
-
rec[:y] = r[:y].to_f
|
|
103
|
-
rec[:width] = r[:w].to_f
|
|
104
|
-
rec[:height] = r[:h].to_f
|
|
105
|
-
Raylib.UpdateTextureRec(texture, rec, tex.GetPixelsAt(r[:x], r[:y]))
|
|
106
|
-
end
|
|
97
|
+
# Raylib.UpdateTextureRec has no row-pitch argument, so sub-rect updates
|
|
98
|
+
# sourced from a larger atlas can sample incorrect rows and corrupt glyphs.
|
|
99
|
+
# Uploading the full atlas keeps texture data consistent across backends.
|
|
100
|
+
Raylib.UpdateTexture(texture, tex.GetPixels())
|
|
107
101
|
tex.SetStatus(ImTextureStatus_OK)
|
|
108
102
|
|
|
109
103
|
when ImTextureStatus_WantDestroy
|
|
@@ -491,13 +485,11 @@ module ImGui
|
|
|
491
485
|
if mode == Raylib::CAMERA_CUSTOM
|
|
492
486
|
# no-op
|
|
493
487
|
elsif mode == Raylib::CAMERA_ORBITAL
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
camera_data[:position] = Raylib.Vector3Add(camera_data[:target], view)
|
|
500
|
-
end
|
|
488
|
+
rotation = Raylib.MatrixRotate(Raylib.GetCameraUp(camera_ptr), camera_orbital_speed)
|
|
489
|
+
view = Raylib.Vector3Subtract(Raylib::Camera.new(camera_ptr)[:position], Raylib::Camera.new(camera_ptr)[:target])
|
|
490
|
+
view = Raylib.Vector3Transform(view, rotation)
|
|
491
|
+
camera_data = Raylib::Camera.new(camera_ptr)
|
|
492
|
+
camera_data[:position] = Raylib.Vector3Add(camera_data[:target], view)
|
|
501
493
|
else
|
|
502
494
|
if !block_keyboard_controls
|
|
503
495
|
if Raylib.IsKeyDown(Raylib::KEY_DOWN)
|