Commit Graph

62 Commits

Author SHA1 Message Date
Бранимир Караџић 932302d8f4 Compute: Rename Write Only suffix _WR to _WO. 2024-04-18 10:07:40 -07:00
Бранимир Караџић 83dfadf673 Happy New Year! 2024-01-14 01:56:36 -08:00
Branimir Karadžić 4946079f1d Cleanup. 2023-11-03 21:36:00 -07: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
Бранимир Караџић c95eca2a4b Don't update camera when mouse is over imgui. 2020-12-26 22:46:26 -08:00
Бранимир Караџић 82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Leandro Freire 33ac8934ff Fixed tabs/spaces 2019-08-17 14:56:23 -07:00
Leandro Freire d7c70c49e3 Add url to examples 2019-08-17 13:27:38 -07:00
Leandro Freire 1db46f4fe6 Rename variables and constants 2019-08-17 12:32:16 -07:00
Leandro Freire 855623e153 Rename VertexDecl to VertexLayout 2019-08-13 18:42:01 -07:00
Бранимир Караџић 3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Branimir Karadžić 147a379067 Cleanup. 2018-12-21 21:05:26 -08:00
Branimir Karadžić 48074e3eeb Cleanup. 2018-11-14 20:01:51 -08:00
Branimir Karadžić db0ec1f5db Removed HMD API and OculusVR support. 2018-07-19 20:22:21 -07:00
Branimir Karadžić 5bb6a14876 Changed bgfx::init to take init parameters as structure instead of arguments. 2018-04-17 15:42:18 -07:00
Branimir Karadžić 584b8b34f0 Added support for independent RGB channel write control. 2018-02-13 12:35:23 -08:00
Branimir Karadžić f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
Branimir Karadžić 907f835881 Removed use of obsolete ImGui API. 2017-12-01 21:04:27 -08:00
Branimir Karadžić e4147a49be Added capabilties check to examples. 2017-07-22 21:19:14 -07:00
Branimir Karadžić 7c9b2b7257 API change: Simplified destroy functions to use overload resolution. 2017-07-17 22:29:43 -07:00
Branimir Karadžić a274c9a6c5 Replaced BX_OVERRIDE with override. 2017-07-15 00:17:29 -07:00
Branimir Karadžić 0fad539078 Cleanup. 2017-06-29 23:19:20 -07:00
Branimir Karadžić 917385f79e Cleanup. 2017-06-29 22:23:18 -07:00
Branimir Karadžić 43fb2f6f4b Cleanup. 2017-06-26 22:51:56 -07:00
Branimir Karadžić 5f666a5ee2 Combined all examples. Issue #1143. 2017-06-25 21:44:04 -07:00
Branimir Karadžić 32998296ae nbody-24: Switched to ImGui. 2017-06-17 21:01:05 -07:00
Branimir Karadžić 8d5ab83065 24-nbody: Switched to entry::AppI. 2017-06-16 21:33:18 -07:00
Branimir Karadžić 68c6b46a65 Exposed vertex stream argument to API. 2017-05-14 11:48:59 -07:00
Branimir Karadžić 5375aa5a03 Fixed warnings. 2017-03-12 18:25:23 -07:00
Branimir Karadžić d96225a1f0 Fixing projection matrix in examples. 2017-02-22 22:26:39 -08:00
Brian Harris ffd3771a09 Updated makefiles to build spirv (#1025) 2017-01-20 09:29:09 -08:00
Branimir Karadžić b9b8a6e871 Cleanup. 2017-01-04 08:34:25 -08:00
Krzysztof Kondrak 76a46af418 use separate projection matrices for left/right eyes in HMD demos 2016-04-04 21:29:36 +02:00
Krzysztof Kondrak bea6e81d12 OculusVR: updated to SDK 1.3 2016-04-02 11:41:40 +02:00
Branimir Karadžić 861a63bf2e Updated makefiles. 2016-02-29 19:58:17 -08:00
Branimir Karadžić 4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić 1c51d81006 Cleanup. 2015-10-23 20:52:22 -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
Branimir Karadžić 4018a4b690 imgui: Added handling middle mouse button. 2015-08-25 22:59:20 -07:00
Branimir Karadžić 1fa85ccf27 Replaced bgfx::setProgram function with bgfx::submit argument. Added bgfx::touch and bgfx::getStats. 2015-07-22 18:05:11 -07:00
Branimir Karadžić 921a315c4d Cleanup. 2015-07-16 20:28:43 -07:00
ocornut eccbae09b1 Fixes for ocornut-imgui integrations: mouse wheel, render callbacks 2015-06-10 08:53:50 -06:00
Matthew Endsley 1e604e8f38 VR: Add device resolution to HMD. Init at startup.
BREAKING: bgfx::getHMD() now returns a valid pointer
if the VR runtime was initialized. This is different
from existing behavior where getHMD returned NULL until
a bgfx::reset(... BGFX_RESET_HMD) was issued. Applications
must now check HMD::flags for the current state of the VR
runtime. The following code has the code change required:

`const bgfx::HMD* hmd = bgfx::getHMD()
if (NULL != hmd)`
becomes:
`const bgfx::HMD* hmd = bgfx::getHMD()
if (NULL != hmd && 0 != (hmd->flags & BGFX_HMD_RENDRERING))
{
	// rendering logic
}`

See the updated examples for details.

This allows applications to create the appropriately
sized back buffer for the HMD device by using the new device
resolution fields HMD::deviceHeight and HMD::deviceWidth.
These values report the pixel resolution of the attached
HMD hardware.

This also allows applications to query the reported HMD
resolution immediately after bgfx::init. This prevents
the device from being cycled which generates rendring
artifacts on startup - namely flashing back to a black
screen and reseting the Health+Warning disaply.

This involves initialization the ovrHmd device on
initialization, but deferring rendering until
postReset has been called. This adds an addiional
memory overhead of 32k to builds defining BGFX_CONFIG_USE_OVR.
The overhead for current builds is ~1.9MB for calls to
ovr_Initialize, so the additional overhead is pretty
trivial (+1.8%)
2015-06-03 15:39:09 -07:00
Branimir Karadžić ff01992cb7 Refactored uniform types. 2015-05-28 15:27:00 -07:00
Branimir Karadžić bfa4df4ba1 Updated 24-nbody to demonstrate how to use indirect buffer. 2015-05-01 19:52:11 -07:00
Branimir Karadžić 9d91d3bbbc Reversed instance data bindings. Issue #309. 2015-04-15 10:37:00 -07:00