Commit graph

144 commits

Author SHA1 Message Date
Kocsis Attila
5d5df77318 Metal backend: initial commit 2015-08-14 15:12:44 +02: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
Branimir Karadžić
a2716a3fe6 Cleanup. 2015-06-10 09:53:09 -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ć
2e56304280 Fixed leak in single-threaded mode. 2015-05-19 15:52:47 -07:00
Branimir Karadžić
4098dbb8fb Fixed GCC warnings. 2015-04-15 20:05:18 -07:00
Branimir Karadžić
5e5a0a8a9e Added custom allocator to imgui. 2015-04-15 20:00:15 -07:00
Branimir Karadžić
1824a3f5bd Cleanup. 2015-04-08 14:16:02 -07:00
Branimir Karadžić
c85c12b5cd Fixed variable narrowing warnings. 2015-04-07 17:58:14 -07:00
Miodrag Milanovic
5b0fea0052 Reorder warning fix 2015-03-17 11:28:30 +01:00
Dario Manesku
f3c300980d Imgui separator line can be now aligned. 2015-03-16 14:20:45 +01:00
Dario Manesku
4360841989 Imgui can be now downscaled to fit small resolution screens. 2015-03-16 13:59:28 +01:00
Dario Manesku
831682d542 Fixing imgui area stencil problem. ImguiDrawText now also draws outside of imgui area. 2015-03-14 13:33:40 +01:00
Dario Manesku
5cca4686e2 NVG now uses same viewId as imgui. 2015-03-12 20:28:07 +01:00
Dario Manesku
a96ba40b03 Imgui input now accepts, and interprets in the same way, 'delete' and 'backspace'. 2015-03-06 02:35:03 +01:00
Dario Manesku
2e9199e365 ImguiBorderButton was one pixel short in height. 2015-02-23 22:11:27 +01:00
Branimir Karadžić
8790649495 Moved imgui to last view. 2015-02-21 15:51:03 -08:00
Branimir Karadžić
13ac805085 Cleanup. 2015-02-16 21:58:13 -08:00
Dario Manesku
f57c3a3516 Added latlong display type for imguiCube(). 2015-02-12 02:50:18 +01:00
Dario Manesku
18307976c8 Added possibility to override imgui malloc/free. 2015-02-08 12:34:06 +01:00
Branimir Karadžić
6506add5a9 Added embedded font to imgui. 2015-01-23 23:02:56 -08:00
Branimir Karadžić
bbeb0a3ffe Updated to latest ocornut imgui. 2015-01-22 21:01:09 -08:00
Branimir Karadžić
d5bea0e7fd Cleanup. 2015-01-19 22:15:50 -08:00
Branimir Karadžić
9e52b1d6d9 imgui: Added ocornut imgui initialization into existing imgui. 2015-01-19 17:16:59 -08:00
Branimir Karadžić
c25dd466be Updated copyright year. 2015-01-01 15:04:46 -08:00
Dario Manesku
5c77bc941f Changed imguiTabs() active color to be consistent with imguiButton(). 2014-12-29 08:48:43 +01:00
Dario Manesku
7b03d93336 Added 1px offset to imguiBorderButton() to fix DX9 drawing problem. 2014-12-29 08:48:43 +01:00
Dario Manesku
528756610b Added imguiGetWidgetW(). 2014-12-24 02:34:06 +01:00
Dario Manesku
67c69d3ba2 Fixing scissor for nvg elements. 2014-12-24 02:34:05 +01:00
Dario Manesku
6ad5c8eb2c Preventing mouse scroll multiple areas at once and scroll bar scissor problem fixed. 2014-12-14 03:02:32 +01:00
Dario Manesku
a9a2895132 Added 1px to scissor area. 2014-12-14 03:02:31 +01:00
Dario Manesku
815312466c Draging scroll bars with mouse now behaves more properly. 2014-12-14 03:02:31 +01:00
Dario Manesku
f448f18ae4 Removed code duplication by merging drawRect() and drawRoundedRect(). 2014-12-14 03:02:31 +01:00
Branimir Karadzic
38f340b540 Fixed issue #197. 2014-12-01 08:21:13 -08:00
Dario Manesku
8777b44e59 NVG now flushes on imguiEndArea(). 2014-11-23 01:17:51 +01:00
Dario Manesku
eb2fd71664 Added imguiSetCurrentScissor(). 2014-11-23 01:07:58 +01:00
Dario Manesku
116f2179a4 Adding _size parameter for imguiColorWheel. 2014-11-23 00:44:38 +01:00
Dario Manesku
5c5464c381 Making imguiTabs look better when disabled. 2014-11-23 00:13:38 +01:00
Dario Manesku
07b9760583 Turning on nvg scissor in imguiScroll. 2014-11-23 00:12:31 +01:00
Dario Manesku
0d19fe5750 Making imguiCollapse more aesthetically pleasing. 2014-11-22 21:11:31 +01:00
Dario Manesku
dd06ab01e1 Added _enabled parameter for imguiImage. 2014-11-22 19:51:20 +01:00
Dario Manesku
e126781412 Making imgui scroll behave properly. 2014-11-22 19:51:19 +01:00
Dario Manesku
b9bd605edc Added overload for imguiTabs() and fixed va_arg warning. 2014-11-20 18:43:27 +01:00
Dario Manesku
950ceee749 Fixing drawing problem. 2014-11-20 18:25:22 +01:00
Branimir Karadzic
00d5f1adcb Fixed clang warning. 2014-11-19 21:07:32 -08:00
Dario Manesku
7d2ef49435 Changed imguiTabs() api. Now you can set additional 'enabled' flag per tab. 2014-11-19 16:21:02 +01:00
Branimir Karadžić
ff44d73480 Updated NanoVG and Blendish. 2014-11-16 18:59:17 -08:00