Commit Graph

102 Commits

Author SHA1 Message Date
Branimir Karadžić
5375aa5a03 Fixed warnings. 2017-03-12 18:25:23 -07:00
Branimir Karadžić
0838dad5ab Fixed build. 2017-02-14 20:27:31 -08:00
Branimir Karadžić
b99ebb9535 Cleanup. 2017-02-08 19:55:31 -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
Branimir Karadžić
a5bb9be4ed Cleanup. 2016-12-08 20:45:01 -08:00
Branimir Karadžić
34db235454 API change: Added getTexture from FrameBufferHandle, and removed all helper APIs that were using FrameBufferHandle and attachment. Related to issue #975. 2016-11-15 20:23:52 -08:00
Branimir Karadžić
1bf5bdd376 Cleanup. 2016-10-29 10:36:09 -07:00
Branimir Karadžić
c98be90bf5 WIP: Texture array support. 2016-08-19 21:05:37 -07:00
Branimir Karadžić
ce878f9180 Renaming float4_t to simd128_t. 2016-07-18 19:03:25 -07:00
Branimir Karadžić
a94089e29f Added simple texture viewer tool. 2016-04-21 22:12:35 -07:00
Branimir Karadžić
4e12ff7274 Cleanup. 2016-04-01 21:49:06 -07:00
Branimir Karadžić
db64e34681 Cleanup. 2016-03-06 14:59:14 -08:00
Branimir Karadžić
861a63bf2e Updated makefiles. 2016-02-29 19:58:17 -08:00
Branimir Karadžić
dc46b1a36b Cleanup. 2016-02-21 13:59:38 -08:00
Branimir Karadžić
016bfc4290 Improved reader/writer error handling. 2016-01-31 16:00:02 -08:00
Branimir Karadžić
fbace33048 Renamed BGFX_TEXTURE_RT_BUFFER_ONLY to more descriptive BGFX_TEXTURE_RT_WRITE_ONLY. 2016-01-12 17:11:16 -08:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Stephen Hill
e0e772f71c Fixed repeat typo: lightning => lighting 2015-11-29 18:39:16 -05: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
Branimir Karadžić
9ebcfab447 Cleanup. 2015-06-07 21:28:36 -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ć
ff01992cb7 Refactored uniform types. 2015-05-28 15:27:00 -07:00
Branimir Karadžić
9d91d3bbbc Reversed instance data bindings. Issue #309. 2015-04-15 10:37:00 -07:00
Branimir Karadžić
1e8051fd00 Fixed variable shadowing. 2015-04-04 19:10:35 -07:00
Branimir Karadžić
250777287f Fixed variable shadowing. 2015-04-04 16:40:28 -07:00
Branimir Karadžić
a34e6e7965 Fixed VS2015 warnings. 2015-03-29 11:47:32 -07:00
Branimir Karadžić
aea6f9daf3 Cleanup. 2015-02-16 22:05:19 -08:00
Branimir Karadžić
13ac805085 Cleanup. 2015-02-16 21:58:13 -08: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ć
f6fe2de941 Cleanup. 2015-01-20 21:41:51 -08:00
Branimir Karadžić
ff7f967c1b Removed _BIT suffix from BGFX_CLEAR_* flags. 2015-01-10 21:39:45 -08:00
Branimir Karadžić
73a227cefd SDL2: Added gamepad support. 2014-12-15 20:58:54 -08:00
Branimir Karadžić
a2153729be Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07: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ć
1a765e9646 Cleanup. 2014-10-14 21:36:05 -07:00
Branimir Karadžić
7fa124eeab Fixed alignment macro. 2014-10-13 21:31:18 -07:00
Dario Manesku
48ce6bb5ff Added custom mtxProj() call to properly handle OGL NDC. 2014-10-06 07:25:33 +02:00
Dario Manesku
e051ed4feb Removed bgfx::*Mask() API. 2014-09-27 20:43:28 +02:00
Branimir Karadžić
eec4ae9847 Fixing paths. 2014-09-10 21:48:08 -07:00
m.milanovic@levi9.com
5aaddfccb9 Use tinystl/unordered_map instead of c++11 only implementation 2014-08-22 16:35:30 +02:00
Dario Manesku
b7177c9f5e Cleanup. 2014-08-18 21:26:08 +01:00
Dario Manesku
7ec6e06fee Removed flipV from 14-shadowvolumes example. 2014-08-18 20:18:48 +01:00
Branimir Karadžić
66890595b9 Added serialization for vertex decl attribute enums. Binary format changes. Rebuilt all meshes and shaders. 2014-08-17 17:20:15 -07:00