Commit graph

43 commits

Author SHA1 Message Date
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ć
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ć
ff7f967c1b Removed _BIT suffix from BGFX_CLEAR_* flags. 2015-01-10 21:39:45 -08:00
Branimir Karadzic
7f2f523c43 Fixed compile error. 2014-11-08 22:09:31 -08:00
Branimir Karadžić
c400562d61 HMD fixes. 2014-11-03 19:11:08 -08:00
Branimir Karadžić
208a348ab2 Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
Branimir Karadžić
2b147081c4 Changed imguiSlider argument. 2014-06-29 21:53:23 -07:00
Branimir Karadžić
02e549bfec Moved fpumath to bx. 2014-05-26 19:31:37 -07:00
Branimir Karadžić
ac925b00c8 Cleanup. 2014-05-03 15:18:28 -07:00
bkaradzic
48c477d0ac Updated screenshots. 2013-10-23 22:48:16 -07:00
bkaradzic
781c9cda5b Examples: Fixed resource leaks warnings. 2013-10-06 20:30:44 -07:00
bkaradzic
3e6f682c30 Fixed resource leak in font examples. 2013-08-08 22:18:19 -07:00
bkaradzic
4c4c2eb5cb examples-common: Reogranized sources. Added command interpreter and input bindings support. 2013-08-07 21:45:56 -07:00
bkaradzic
daab00e816 Cleanup. 2013-06-24 23:38:14 -07:00
bkaradzic
375f17060a DX11/GL: Fixed font subpixel issues. 2013-06-03 23:16:02 -07:00
bkaradzic
af842a1c68 Cleanup. 2013-05-29 21:53:19 -07:00
bkaradzic
18f2e82362 Added include path to common. Renamed math to fpumath. 2013-05-23 22:07:54 -07:00
bkaradzic
fc9dc6a3cd Moved matrix functions to math.h 2013-05-22 23:06:13 -07:00
bkaradzic
4a2bfcfbeb Cleanup. 2013-05-22 21:34:21 -07:00
Jeremie Roy
b6e4c79f77 slightly better default param values 2013-05-22 19:23:24 +02:00
Jeremie Roy
3df72de750 refactor sdf sample completely to show a big scrollable, rotable and scalable text 2013-05-22 17:20:23 +02:00
bkaradzic
bed490bd53 Cleanup. 2013-05-18 22:12:40 -07:00
bkaradzic
9c0b5be6d7 Added vsync by default to font examples. 2013-05-17 08:45:12 -07:00
bkaradzic
274a5f2321 Cleanup. 2013-05-16 20:37:54 -07:00
bkaradzic
50a92db146 Cleanup. 2013-05-16 20:35:08 -07:00
bkaradzic
6cd9a19589 Added screenshots for example 10 and 11. 2013-05-16 20:09:52 -07:00
Jeremie Roy
c4b4b15e37 uncrustify whole font code 2013-05-15 15:21:23 +02:00
Jeremie Roy
61305ed0e4 fix warning and remove useless includes 2013-05-15 15:12:25 +02:00
Jeremie Roy
a4006cf0ab harmonize license header text 2013-05-15 15:07:04 +02:00
Jeremie Roy
925e0eb371 remove blank space 2013-05-09 00:05:45 +02:00
Jeremie Roy
2f89ab16ba rework the samples 2013-05-08 23:55:54 +02:00
Jeremie Roy
6cf5f67eae load shaders explicitely inside the samples 2013-05-07 15:51:19 +02:00
Jeremie Roy
1d5c813806 remove Sleep() in demo function 2013-04-23 22:51:59 +02:00
Jeremie Roy
119317686c use ii instead of i in for loop 2013-04-23 22:48:34 +02:00
Jeremie Roy
1f5db2d7db fix typo in debug text 2013-04-23 17:23:00 +02:00
Jeremie Roy
3156a79257 fix a typo in fontsdf name 2013-04-23 17:22:19 +02:00