Commit Graph

3901 Commits

Author SHA1 Message Date
Matthew Endsley
d9dd4bceb5 Add platform agnostic bgfx::VR for renderers to interface
The new platform agnositic class bgfx::VR manages the
functionality that is shared across the various VR platforms.

The individual platform renderers no longer need
to interface with the internal VR tpyes (OVRRenderI) directly

This greatly simplifies the OVR object's surface area which
is now provided by the VRImplI interface. bgfx::VR now manages
core lifecycle issues of the headset.

The notable renderer API changes are the separation of sensor
sampling and rendering. We need these separate so we can control
the timing (later commit) of camera sampling with finer granularity
than at the start of the video frame.
2016-09-16 20:03:12 -07:00
Branimir Karadžić
f65f6303d9 Merge pull request #919 from mendsley/fix_vrleak
Release all D3D11 VR eye render target views
2016-09-16 16:10:50 -07:00
Branimir Karadžić
76902c7342 Merge pull request #918 from mendsley/fix_glvr
Fix opengl OVR texture lifetime issues
2016-09-16 16:10:33 -07:00
Matthew Endsley
f98370b77a Release all D3D11 VR eye render target views 2016-09-16 15:47:35 -07:00
Matthew Endsley
fd6ed06968 Fix opengl OVR texture lifetime issues
Clear mirror and eye textures of OVRRenderI at startup
instead of in the individual renderer interfaces
2016-09-16 15:45:52 -07:00
Branimir Karadžić
37f00de7de Fixed issue #917. 2016-09-15 20:54:00 -07:00
Branimir Karadžić
9181888783 Removed vertex stream assert. Issue #917. 2016-09-15 08:33:41 -07:00
Branimir Karadžić
1857969046 Updated ImGui. 2016-09-14 22:00:42 -07:00
Branimir Karadžić
9dd236d042 Merge branch 'master' of github.com:bkaradzic/bgfx 2016-09-14 19:39:06 -07:00
Branimir Karadžić
f62726b5db Added BGFX_CAPS_GRAPHICS_DEBUGGER. 2016-09-14 19:38:57 -07:00
Branimir Karadžić
80fcf18777 Merge pull request #915 from mendsley/vr_renderi
Combine OVRBufferI and OVRMirrorI into a single interface
2016-09-14 19:21:56 -07:00
Matthew Endsley
eec95aeef6 Combine OVRBufferI and OVRMirrorI into a single interface
Simplify the renderer interface for VR to separate the OVR
implementation from the overall HMD foundation.

Part of merging OpenVR back upstream.
2016-09-14 17:50:15 -07:00
Branimir Karadžić
2703ff895c Merge pull request #914 from mendsley/vr_mirrorcrash
Do not render VR mirror texture is the headset is not rendering
2016-09-14 17:01:30 -07:00
Matthew Endsley
1b431cb107 Do not render VR mirror texture is the headset is not rendering
DX11 will signal an error on the mirror present if the compositor
is not serving the application frames to the hardware.
2016-09-14 16:28:08 -07:00
Branimir Karadžić
9f0ff9f2ff Fixed issue #912. 2016-09-13 18:53:07 -07:00
Branimir Karadžić
9166f9e13d Updated RenderDoc. 2016-09-13 18:47:07 -07:00
Branimir Karadžić
3ce80020ec Updated ImGuizmo. 2016-09-12 21:05:48 -07:00
Branimir Karadžić
b906f3445c Merge branch 'master' of github.com:bkaradzic/bgfx 2016-09-12 20:56:45 -07:00
Branimir Karadžić
3076f87e42 Updated ImGui. 2016-09-12 20:56:38 -07:00
Branimir Karadžić
1ae77b0cfb WIP: Adding vertex stream support. 2016-09-12 19:38:29 -07:00
Branimir Karadžić
a61010a9ff Fixed warning. 2016-09-12 19:37:28 -07:00
Branimir Karadžić
a99c23f649 Updated ImGuizmo. 2016-09-11 09:11:32 -07:00
Branimir Karadžić
c8c2be5bf1 Updated ImGui. 2016-09-11 09:01:22 -07:00
Branimir Karadžić
94d96c5eaf Cleanup. 2016-09-10 10:56:35 -07:00
Branimir Karadžić
3d0d3f4df9 Merge pull request #908 from neslib/master
Added support for ios-arm64 compilation
2016-09-10 10:45:25 -07:00
Erik van Bilsen
0298fd6661 Added support for ios-arm64 compilation 2016-09-10 10:42:36 -07:00
Branimir Karadžić
3e0767cecc Cleanup. 2016-09-10 09:53:29 -07:00
Branimir Karadžić
57e9dc0d9f Merge pull request #907 from psigen/example_option
Added flag to control building examples.
2016-09-10 09:49:22 -07:00
Pras Velagapudi
aa3a6ecd80 Added flag to control building examples.
This PR adds a new flag to `genie.lua` called `--with-examples`
and uses it to control whether the example binaries are built or
not.

It also changes the default options in `makefile` to include this
flag, such that the default behavior of `bgfx` compilation is
unchanged.

This allows users who are building with CI systems or as part of a
larger automated build process to avoid having to compile examples
each time they build `bgfx`.  They can instead use `genie` directly
to configure their project to build without examples.
2016-09-10 11:23:02 -04:00
Branimir Karadžić
44de6fb789 Cleanup. 2016-09-08 22:03:42 -07:00
Branimir Karadžić
374fe6f845 Updated NanoVG. 2016-09-08 21:19:47 -07:00
Branimir Karadžić
425868f391 Cleanup. 2016-09-08 17:00:16 -07:00
Branimir Karadžić
813d145ac9 GLFW: Fixed exit. 2016-09-06 23:07:11 -07:00
Branimir Karadžić
0d981316f8 Switched use of stl::unordered_map to new HandleHashMap. 2016-09-06 22:42:45 -07:00
Branimir Karadžić
b49fb810ff Fixed issue #902. 2016-09-06 19:13:13 -07:00
Branimir Karadžić
0acb371d61 Merge pull request #901 from elmindreda/master
Usable GLFW entry backend
2016-09-05 16:33:25 -07:00
Camilla Berglund
8b4f495225 GLFW: Lowered CPU use. 2016-09-05 21:41:03 +02:00
Camilla Berglund
3429fff1ba GLFW: Implemented full GLFW backend. 2016-09-05 21:41:02 +02:00
Branimir Karadžić
96f3e349bf Updated ImGuizmo. 2016-09-04 18:16:13 -07:00
Branimir Karadžić
fa666bca4c Fixed GCC warning. 2016-09-03 14:38:47 -07:00
Branimir Karadžić
8d4cdf13d2 Updated ImGui. 2016-09-03 11:26:56 -07:00
Branimir Karadžić
f9486780c2 Updated NaCl toolchain to v49. 2016-09-02 21:25:01 -07:00
Branimir Karadžić
0ba8b1895b Cleanup. 2016-09-02 19:49:01 -07:00
Branimir Karadžić
7c95b30d4d Updated ImGuizmo. 2016-09-01 19:37:01 -07:00
Branimir Karadžić
0d9035311f GL: Added GL error flush. 2016-08-31 08:57:53 -07:00
Branimir Karadžić
600ef81fb5 GLES: Fixed RGBA32F detection. 2016-08-30 23:38:51 -07:00
Branimir Karadžić
7749b745f7 GLES: Fixed RGBA32F detection. 2016-08-30 22:29:32 -07:00
Branimir Karadžić
687e4103fe Added gizmo hook. 2016-08-29 22:31:30 -07:00
Branimir Karadžić
ec2a597e11 Fixed warnings. 2016-08-29 18:03:00 -07:00
Branimir Karadžić
8b595c5939 Fixing errors. 2016-08-27 17:53:57 -07:00