Commit Graph

87 Commits

Author SHA1 Message Date
Branimir Karadžić
4946079f1d Cleanup. 2023-11-03 21:36:00 -07:00
Бранимир Караџић
cbfea75cfd Cleanup. 2023-08-17 19:28:22 +02:00
Julian Sikorski
f4d463990a
Allow simultaneous X11 and Wayland support (#3152)
* Allow simultaneous X11 and Wayland support

* Add NativeWindowHandleType

* Set default value for g_platformData.type

* Use g_platformData.type to check for a native Wayland window

* Stub getNativeWindowHandleType on platform where Wayland is not an option

* Implement getNativeWindowHandleType for GLFW

* Add getNativeWindowHandleType to the remaining C++ examples

* Add getNativeWindowHandleType to the C example
2023-08-17 16:54:31 +02:00
Бранимир Караџић
466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
Бранимир Караџић
72cbe83275 Removed bgfx::setPlatformData usage from entry example harness. 2022-08-25 20:07:03 -07:00
Бранимир Караџић
4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
Бранимир Караџић
af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
Бранимир Караџић
8ea8832341 Cleanup. 2020-11-29 18:50:10 -08:00
Бранимир Караџић
2b4bf6d913 Metal: Fixed screenshot. 2020-11-10 17:14:54 -08:00
Attila Kocsis
0e8e22b049 entry_osx: setMouseLock implementation 2020-03-29 16:16:16 +00:00
Бранимир Караџић
82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Attila Kocsis
f3105c7e59 OSX entry changes
- exit fix
- using native fullscreen support instead of borderless window
2019-04-28 18:19:19 +02:00
Attila Kocsis
bcd1375762 Handling left/right modifiers separately 2019-04-27 21:06:44 +02:00
Бранимир Караџић
2747c75e0a Cleanup. 2019-04-26 19:33:32 -07:00
Бранимир Караџић
5ad11a80ab Cleanup. 2019-04-13 07:51:25 -07:00
Attila Kocsis
8196612195 Fixed osx multiple window create/destroy 2019-03-07 19:54:03 +01:00
Бранимир Караџић
3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Attila Kocsis
5cdd4de559 Moved autoreleasepool into renderframe 2019-01-10 20:25:06 +01:00
Branimir Karadžić
54c2ccf31e Metal: Moving auto release pool inside renderer. Issue #1269. 2018-12-05 22:08:05 -08:00
Branimir Karadžić
715b512d29 Cleanup. 2018-12-04 18:30:45 -08:00
Branimir Karadžić
610d503d97 OSX: Multiple window support. Manual merge from PR #1563. 2018-11-28 15:19:13 -08:00
Branimir Karadžić
b08e985508 OSX: Fixed title bar. 2018-02-26 07:55:43 -08:00
Branimir Karadžić
3fbfd16f29 OSX: Fixed warnings. 2018-02-20 13:20:45 -08:00
Johan Sköld
76442f2f29 Fixing macOS build. (#1324)
- Fixing compiler errors from C functions with missing argument lists.
- Silencing warning about -Wunused-but-set-variable being unknown.
- Silencing warnings about comma mis-use.
- Silencing warning about implicit cast from unsigned to int.
2018-01-30 21:47:27 -08:00
XingYi Hu
b2346a04c5 Fix OSX initial window size event. (#1311)
The height returned by contentRectForFrameRect is not exactly the same as the ENTRY_DEFAULT_HEIGHT if the screen size is not big enough.
For example, on my Mac, rect.height equals 702, which is 18 less than ENTRY_DEFAULT_HEIGHT(720).
This will cause the imgui’s cord system offset by 18, so even the cursor is not on the button, the imgui will still think the mouse is hover the button, also, the top of imgui’s window will also offset a little bit.
However, these symptom will gone when the window is resized.
In short, this fix unify the behavior of window size event in initial state with resize.
2018-01-09 09:53:50 -08:00
Branimir Karadžić
ed00c24f6f texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
Branimir Karadžić
899f72ae29 OSX: Fixed Key::Return. 2017-11-16 17:51:34 -08:00
Branimir Karadžić
05e550c2b2 Fixed build. 2017-11-04 15:49:02 -07:00
Branimir Karadžić
2d835155a9 Fixed build. 2017-11-04 15:25:11 -07:00
Branimir Karadžić
a247d29298 Cleanup. 2017-07-17 22:14:34 -07:00
Branimir Karadžić
127328d1db Fixed build. 2017-07-15 15:37:40 -07:00
Branimir Karadžić
5df4969527 Fixed build. 2017-06-29 22:30:35 -07:00
Branimir Karadžić
9e737f705d OSX: Don't exit on bgfx shutdown. Issue #1143. 2017-06-26 14:58:35 -07:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
attilaz
f873dcbd10 metal fixes, optim (#997)
osx meamleak fix
refactored commandqueue handling to be somewhat similar to d3d12
removed slow cb sync in buffer update
2016-12-15 08:54:45 -08:00
Branimir Karadžić
8da9e54957 Renamed bgfxdefines.h to defines.h, and bgfxplatform.h to platform.h. 2016-12-05 19:52:01 -08:00
Branimir Karadžić
f7e2c6b291 Cleanup. 2016-11-09 22:22:27 -08:00
Branimir Karadžić
3ac8943e05 Removed PlatformData helpers. 2016-08-17 20:41:09 -07:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić
e5801a9d8c Fixed OSX initial window size. 2015-11-01 20:11:31 -08:00
Branimir Karadžić
000c75539c Cleanup. 2015-10-21 20:42:15 -07:00
Branimir Karadžić
4ca38cfa0e Cleanup. 2015-10-20 19:00:13 -07:00
Branimir Karadžić
d1f99896ec Moved public header files into bgfx subdirectory.
grep -rl '<bgfx.h>' . | xargs sed -i 's@<bgfx.h>@<bgfx/bgfx.h>@g'
2015-09-18 20:19:12 -07:00
Bruce Mitchener
e832cd1223 Fix typos. 2015-09-07 17:33:22 +07:00
Richard Gale
631103bfa8 Adds suspend event mapped to application lifecycle
On Android WillSuspend and WillResume maps to focus and DidSuspend and
DidResume maps to onPause and onResume.

On OSX WillSuspend and DidSuspend maps to resign key, WillResume and
DidResumg maps to make key.
2015-08-24 19:12:01 -07:00
Branimir Karadžić
4f2345683d X11: Added key mapping. 2015-05-30 13:11:18 -07:00
Branimir Karadžić
e91673d53a OSX: Added key mapping. 2015-05-30 11:23:46 -07:00
Branimir Karadžić
f5afbffe64 Fixed compiler warning. 2015-03-21 18:14:35 -07:00
Branimir Karadžić
5f29eb480d Fixed issue #296. 2015-03-19 09:31:46 -07:00