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ć
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ć
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
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
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
bkaradzic
e29be87bd2
Cleanup.
2014-05-14 20:57:37 -07:00
Branimir Karadžić
bba2ef8031
Added predefined uniforms for inverted view/proj/viewproj matrices.
...
shaderc: Added raw shader support.
shaderc: Fixed uniform types.
2014-05-10 20:51:54 -07:00
Branimir Karadžić
ac925b00c8
Cleanup.
2014-05-03 15:18:28 -07:00
Branimir Karadžić
27f12fb738
Cleanup.
2014-04-16 19:51:25 -07:00
Branimir Karadžić
85c5172a29
Changed GLES macro to use version number.
2014-03-29 23:12:15 -07:00
Branimir Karadžić
f436f79c10
Simplified API, removed difference between vertex and fragment shaders.
2014-03-29 19:42:57 -07:00
Branimir Karadžić
beb73905d0
Fixed 14-shadowvolumes depth texture flag to be buffer only.
2014-03-09 21:21:53 -07:00
Branimir Karadžić
538ef12446
Free imgui font memory after init.
2014-02-25 20:19:13 -08:00
Dario Manesku
1f58f4b874
Fixed halfTexel problem on dx9.
2014-02-14 07:51:34 +01:00
bkaradzic
877621105d
Added MRT support.
2014-02-05 23:07:11 -08:00
Dario Manesku
e27d75a690
Small fix.
2014-01-30 19:44:37 +01:00
Dario Manesku
de1d5e48ed
Added free look camera for 14-shadowvolumes.
2014-01-30 18:20:06 +01:00
Dario Manesku
658552be7e
Copyright dates updated.
2014-01-13 23:45:18 +01:00
bkaradzic
d1117f34b5
Added support for different RT depth stencil formats.
2013-12-29 11:43:44 -08:00
bkaradzic
48a48d9bf5
Fixes for MinGW GCC 4.8.1.
2013-12-23 22:36:30 -08:00
Branimir Karadžić
86096bd3cc
Merge pull request #57 from dariomanesku/master
...
Small update on 14-shadowvolumes.
2013-11-20 19:03:55 -08:00
Dario Manesku
aa1219b8b4
Using better data structures.
2013-11-20 20:28:12 +01:00
Dario Manesku
6e290a3c9b
Supressing clang compiler warning.
2013-11-19 23:35:34 +01:00
bkaradzic
333b164278
Cleanup.
2013-11-17 22:26:15 -08:00
bkaradzic
a4df646179
Fixed fmin/fmax CRT library name collision.
2013-11-17 20:42:29 -08:00
bkaradzic
40c9aa78d8
Fixed VS2008 build.
2013-11-14 19:10:34 -08:00
Dario Manesku
e432a37396
Small refactor.
2013-11-13 19:11:34 +01:00
Dario Manesku
0381c60b6d
Data structures sepatared for aligned memory access.
2013-11-13 17:53:44 +01:00
Dario Manesku
d7647a4cb7
Small optimization.
2013-11-13 17:04:21 +01:00
Dario Manesku
c0c62570ea
Removed trailing whitespaces.
2013-11-12 22:31:44 +01:00