Commit Graph

2262 Commits

Author SHA1 Message Date
Бранимир Караџић
6175aa2bb7 ImGui: Replaced helpers Push/PopEnabled with Begin/EndDisabled functionality from ImGui. 2025-10-22 17:08:31 -07:00
Бранимир Караџић
792417b695 Updated ImGui renderer. 2025-10-21 18:13:37 -07:00
Бранимир Караџић
2c057e331f Cleanup. 2025-10-21 18:11:24 -07:00
Бранимир Караџић
b0e9cbd110 Fixed crash. 2025-09-29 19:47:41 -07:00
Branimir Karadžić
5eeed00aaa Replaced use of dynamic StringT with FixedStringT. 2025-09-19 20:38:26 -07:00
Бранимир Караџић
e1f5938f4a ImGui: Disable id conflict highlight in release build. 2025-08-27 22:38:42 -07:00
Branimir Karadžić
6b8c1072aa Cleanup. 2025-08-23 20:53:26 -07:00
Branimir Karadžić
30331f4142 Fixed MSVC warnings. 2025-08-23 19:54:08 -07:00
Бранимир Караџић
cbe6789a93 Setup exception handler in examples. 2025-08-23 19:29:49 -07:00
Бранимир Караџић
23baae9e00 macOS: Fixed open dialog crash. 2025-07-26 08:05:18 -07:00
luzpaz
4109e14b43 Fix various typos (#3427)
Found via `codespell -q 3 -S "./3rdparty,*.ttf,*.bin,*.bin.h,./examples/common/imgui,./examples/common/font,./examples/runtime/text/sherlock_holmes_a_scandal_in_bohemia_arthur_conan_doyle.txt" -L attribut,ba,clude,conly,constan,dne,espace,hashin,hart,indext,inout,lod,nclude,reduct,retur,ser,sroll,statics,struc,te,tolen,truct,unknwn,usin,utput,varyin`
2025-05-28 19:12:06 +00:00
Бранимир Караџић
56dd9f4ae1 Rebuilt metal & spir-v shaders. 2025-05-10 19:58:27 -07:00
Hinageshi
42062ba0b5 18-ibl: Fix widgets id conflict (#3424) 2025-05-07 14:33:15 +00:00
Бранимир Караџић
1d7d9b049c Updated ImGui. 2025-05-03 10:26:58 -07:00
Бранимир Караџић
dd49a5742d X11: Fixed send modifier keys when no other keys are pressed. 2025-03-31 21:59:25 -07:00
Бранимир Караџић
fdf84449ef Rebuilt metal & spir-v shaders. 2025-03-14 22:05:19 -07:00
Бранимир Караџић
d06cb31b85 Fixed C++20 deprecated lambda capture. 2025-03-14 21:37:35 -07:00
Бранимир Караџић
860bafb23f Happy New Year! 2025-01-13 15:45:40 -08:00
Branimir Karadžić
571a031410 Fixed warning. 2024-12-28 17:24:58 -08:00
Бранимир Караџић
b9070d1ea9 Fixed build. 2024-12-21 19:37:14 -08:00
Бранимир Караџић
896c610b72 Removing alloca compat include. 2024-12-21 19:25:00 -08:00
Aaron Franke
40961806bd Format files to remove trailing spaces (#3384) 2024-12-09 22:01:16 -08:00
Бранимир Караџић
042ebe8814 Cleanup. 2024-12-07 22:49:45 -08:00
Бранимир Караџић
69acf28813 Cleanup. 2024-11-21 07:34:58 -08:00
Martijn Courteaux
01af383a6c Fix Vulkan swapchain invalidation issue. (#3379)
* Fix Vulkan swapchain invalidation issue.

* Always clamp render pass to frame buffer size.

* Fix formatting.
2024-11-21 07:29:24 -08:00
luzpaz
e9c9d711d7 Fix various typos (#3377)
Found via `codespell -q 3 -S "./3rdparty,*.ttf,*.bin,./examples/common/imgui,./examples/common/font" -L attribut,ba,clude,conly,constan,espace,hashin,indext,inout,lod,nclude,retur,ser,sroll,struc,te,truct,unknwn,usin,utput,varyin`
2024-11-16 08:03:12 -08:00
Бранимир Караџић
8dfef838fc Silent clang warnings. 2024-11-13 13:07:34 -08:00
Raziel Alphadios
e72525231a Fix compiling entry_noop (#3369) 2024-10-30 11:35:19 -07:00
Бранимир Караџић
0a5fe7024c Bump minimum GLFW version to 3.4. 2024-10-07 09:59:47 -07:00
Martijn Courteaux
e488a07f1b Support both X11 and Wayland in the same build. (#3360)
* Support both X11 and Wayland in the same build.

 - Works for both Vulkan and OpenGL.
 - Remove --with-wayland from genie options.
 - Vulkan loads all three extensions for surface creation instead of only one.
 - Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create
   a SwapChain with the given window size.
 - Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then
   recreating to make sure the window is released of its swapchain.
 - Fix dbgText glitch in example-22-windows.
 - Remove old X11-related dependencies for GLFW3.

* Formatting.
2024-10-05 14:33:22 -07:00
Martijn Courteaux
a6e372ead9 Dynamically load libwayland-egl.so.1 when dealing with Wayland to remove dependencies at program startup. (#3359) 2024-10-01 11:06:56 -07:00
Martijn Courteaux
3303b451a1 Properly support Wayland under EGL and Vulkan. (#3358) 2024-10-01 09:01:44 -07:00
Бранимир Караџић
f8b20616de Rebuilt spir-v shaders. 2024-09-28 10:14:37 -07:00
Бранимир Караџић
e4073f0259 Imgui: Add ability to link external STB libs. 2024-09-28 09:48:37 -07:00
Sandy
409fbc5d14 Replace ALooper_pollAll with ALooper_pollOnce (#3334) 2024-08-02 15:38:56 -07:00
Бранимир Караџић
e41cbebf16 Set define for USE_ENTRY. 2024-07-09 07:28:59 -07:00
Raziel Alphadios
500e03ffcb Change ImGuiKey_Mod* to new names ImGuiMod_* (#3322) 2024-07-09 07:17:35 -07:00
elvencache
74e7edccdc Fix issues with controller in entry_sdl.cpp. (#3321)
SDL2's concept of GameController is a like a PS or Xbox controller, two sticks, four face buttons, etc. These are the same as the bgfx example's Gamepad.

SDL also has a concept of Joystick, which could be anything, like a flight stick. Game Controllers are implemented by these lower level joystick's.

Entry SDL gets duplicate events, for both controller and the joystick implementing it. Game controller buttons are remapped to bgfx gamepad, but joystick buttons are not. This causes incorrect button presses.

Additionally, the joystick z axis behaves differently than game controller or bgfx gamepad. With at-rest value being negative, not zero.

Due to all of this, it seems like the best approach would be to ignore joystick events and only handle game controller events.

Also, minor additional fix to get handle's index when using it as array index. Fixes compilation in Visual Studio.
2024-07-07 18:52:23 -07:00
Бранимир Караџић
4c74c06661 Cleanup. 2024-06-15 20:23:44 -07:00
Бранимир Караџић
acfad63e8f Cleanup. 2024-06-15 16:53:08 -07:00
Branimir Karadžić
d1feabe319 Rebuilt shaders. 2024-06-15 14:47:08 -07:00
Oskar Kwaśniewski
3195593d8d feat: base visionOS bgfx implementation (#3289)
Co-authored-by: mani3xis <mariusz.pas+dev@protonmail.com>

fix: properly set storageMode

cleanup: remove unused variables

fix crash while releasing m_drawable on visionOS

fix: remove unused timing variable

fix: file name cases, cleanup

feat: integrate visionOS into bgfx examples
2024-06-03 08:14:53 -07:00
Бранимир Караџић
00fa5ad179 Updated SPIR-V shaders. 2024-05-27 22:32:47 -07:00
Бранимир Караџић
da5f27f9ce X11: Workaround DISPLAY not being set. 2024-05-25 09:10:05 -07:00
Бранимир Караџић
9d9ca4f8f6 Cleanup. 2024-05-02 20:00:58 -07:00
Aleksandr Bazhin
1138cc0cc9 Examples: change order of calls in loadTexture() (#3281)
Fixes possible concurrency issue - makes code usable in a multithreaded environment. imageReleasCb releases imageContainer after bgfx::createTexture...() is called. If bgfx::frame() is called from another thread, the release can happen before imageContainer is used in bgfx::calcTextureSize(), leading to a crash. Although loadTexture() is not used in multithreaded environment in the examples, calling bgfx::calcTextureSize() before bgfx::createTexture...() is a better reference for users.
2024-04-24 21:25:35 -07:00
Бранимир Караџић
932302d8f4 Compute: Rename Write Only suffix _WR to _WO. 2024-04-18 10:07:40 -07:00
Бранимир Караџић
2ad67a4dfd Cleanup. 2024-03-29 16:36:55 -07:00
Branimir Karadžić
dc2bb19519 Cleanup. 2024-03-27 19:59:59 -07:00
pheonix
0b049d4897 Use bx::bit_cast where appropriate for type punning, applying packed struct for arrays when necessary (#3212) 2024-02-24 15:47:04 -08:00