Commit Graph

39 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ć 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
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ć ff7f967c1b Removed _BIT suffix from BGFX_CLEAR_* flags. 2015-01-10 21:39:45 -08:00
Branimir Karadžić 31efb2991f Updated to OVR 0.4.3. Added support for event char to read keyboard text input. 2014-11-08 20:57:47 -08:00
Branimir Karadžić c400562d61 HMD fixes. 2014-11-03 19:11:08 -08:00
Branimir Karadžić 02e549bfec Moved fpumath to bx. 2014-05-26 19:31:37 -07:00
bkaradzic 48c477d0ac Updated screenshots. 2013-10-23 22:48:16 -07:00
bkaradzic c99d145347 Added FontAwesome to 10-font example. 2013-10-23 20:32:48 -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 640c61fe45 Cleanup. 2013-08-06 21:09:02 -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 bed490bd53 Cleanup. 2013-05-18 22:12:40 -07:00
bkaradzic c487afa8ef Added varying.def to dependencies. 2013-05-17 22:13:32 -07:00
bkaradzic 9c0b5be6d7 Added vsync by default to font examples. 2013-05-17 08:45:12 -07:00
bkaradzic 4319f8f1df Fixed MinGW compile error. 2013-05-16 23:45:37 -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
bkaradzic 7fcda61d90 Fixed Linux build. 2013-05-16 09:03:56 -07:00
bkaradzic 45e14926d2 Fixed GCC warnings. 2013-05-15 21:35:26 -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 2f89ab16ba rework the samples 2013-05-08 23:55:54 +02:00
Jeremie Roy b2e506d7aa better font sample 2013-05-08 19:55:20 +02:00
Jeremie Roy 6cf5f67eae load shaders explicitely inside the samples 2013-05-07 15:51:19 +02:00
Jeremie Roy d470ac2567 remove explicit filesystem dependency 2013-05-07 14:26:49 +02:00
Jeremie Roy 1d5c813806 remove Sleep() in demo function 2013-04-23 22:51:59 +02:00
Jeremie Roy 7f3fb10f2a Remove namespace from font utility classes 2013-04-23 17:18:54 +02:00
Jeremie Roy 7f6d441c27 add proper debug comment in the font sample using the text system (good demonstration) 2013-04-23 14:29:35 +02:00
Jeremie Roy 253d07435c rename font samples main cpp to the project name 2013-04-23 14:10:53 +02:00
Jeremie Roy 62c9a457c1 rename samples to shorter name 2013-04-23 14:09:45 +02:00