Commit Graph
514 Commits
Author SHA1 Message Date
Branimir Karadžić 227eac0d75 Metal: Fixed occlusion queries and depth texture data, added HDR10 and unretained command buffers. Closes #2356, #2017, #1827, #2974, #3642. (#4060) 2026-10-17 07:10:37 +00:00
Branimir Karadžić a7c0e5b426 Main window rebinding: every renderer follows a new nwh, entry on every platform (#4056) 2026-10-16 10:35:20 -07:00
Thomas Edvalson 99b7977fe2 Android: restore main-window EGL surface recreation (#4055)
Use the main swap-chain native window on Android EGL reset so a replacement ANativeWindow can receive a new EGLSurface without destroying the existing EGLContext and GPU resources.

Forward native-window lifecycle events through the Android example event queue and include the current window in its reset descriptor. Document Android main-window rebinding support.

Restores the intent of #796 after the example harness platform-data removal (72cbe8327) and swap-chain API refactor (#3959).
2026-10-16 08:47:05 -07:00
Branimir Karadžić a2191968ff macOS: Fixed Cmd+Q not quitting, and terminate called off the main thread. Closes #2655. (#4053) 2026-10-15 05:05:17 +00:00
Branimir Karadžić 537d53f145 Tools: Use UTF-8 command line arguments on Windows. (#4030) 2026-10-07 20:05:42 -07:00
Branimir Karadžić d79de7ac63 examples: Added --fixed-fps and --screenshot for deterministic captures. (#3998) 2026-09-25 15:29:53 -07:00
Branimir Karadžić 2e51cb6aa9 Added depth control, sample mask, and read-only depth/stencil attachments. (#3971) 2026-09-11 05:22:53 +00:00
Branimir Karadžić 01dbbbc08c Added swap-chain. (#3959) 2026-09-05 01:44:33 +00:00
Branimir Karadžić ad4a0173d6 X11: Fixed keyboard input after layout switch. (#3958) 2026-09-04 22:22:03 +00:00
Branimir Karadžić fcdc7116a6 X11: Implemented fullscreen toggle, fixed exit segfault. (#3957) 2026-09-04 04:07:56 +00:00
Branimir Karadžić 87ec6b86c6 Fix API selection in standalone example. (#3944) 2026-08-30 23:29:36 +00:00
Branimir Karadžić 6d0d15f2a5 Entry: Fixed keymapings. (#3917) 2026-08-21 23:07:36 -07:00
Branimir Karadžić f0ff45697b Fix include paths. (#3849) 2026-07-25 12:44:29 -07:00
Branimir Karadžić 80bee4959c Added example name to title bar. Added WebGPU vendor info. (#3820) 2026-07-12 04:07:10 +00:00
Branimir Karadžić f671eb83bf Removed bgfx/platform.h (#3761) 2026-06-16 04:10:12 +00:00
Branimir Karadžić 65f9425d8c Updated to new SIMD. (#3699) 2026-05-03 18:51:10 +00:00
Branimir Karadžić 331783cf9a Renamed bx::uint32_min/max/clamp/cntlz/cnttz/mod to typed equivalents. (#3692) 2026-04-27 04:19:08 +00:00
Branimir Karadžić 6c820091e4 macOS: Fixed deprecated warning. (#3672) 2026-04-19 01:36:19 +00:00
Branimir Karadžić 0499759e8c Fixed runtime renderer selection. (#3637) 2026-03-21 16:57:04 +00:00
Branimir Karadžić 4baed6e076 Happy New Year! (#3550) 2026-01-14 16:26:51 +00:00
Branimir Karadžić 3ddf1ed032 Added FrameTime. (#3521) 2025-12-24 04:03:52 +00:00
Branimir Karadžić f510ab6db8 Cleanup. (#3501) 2025-11-20 03:13:42 +00:00
Бранимир Караџић 5e71b83296 macOS: Fixed console apps. 2025-11-03 14:02:38 -08:00
Бранимир Караџић e113d598ae Entry: Fixed file path. 2025-11-02 21:30:56 -08: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
Бранимир Караџић 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
Бранимир Караџић dd49a5742d X11: Fixed send modifier keys when no other keys are pressed. 2025-03-31 21:59:25 -07:00
Бранимир Караџић 860bafb23f Happy New Year! 2025-01-13 15:45:40 -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
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
Sandy 409fbc5d14 Replace ALooper_pollAll with ALooper_pollOnce (#3334) 2024-08-02 15:38:56 -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
Бранимир Караџић acfad63e8f Cleanup. 2024-06-15 16:53:08 -07:00
Oskar Kwaśniewskiandmani3xis 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
Бранимир Караџић da5f27f9ce X11: Workaround DISPLAY not being set. 2024-05-25 09:10:05 -07:00
Бранимир Караџић 83dfadf673 Happy New Year! 2024-01-14 01:56:36 -08:00
Branimir Karadžić de9f4b3385 Remove unsupported platforms. 2023-11-03 21:42:02 -07:00
Branimir Karadžić 4946079f1d Cleanup. 2023-11-03 21:36:00 -07:00
Julian Sikorski ec84ed60fc Use BX_UNUSED for cases where Wayland is not an option (#3160) 2023-08-17 21:42:26 +02:00
Бранимир Караџић cbfea75cfd Cleanup. 2023-08-17 19:28:22 +02:00