Branimir Karadžić
68c6b46a65
Exposed vertex stream argument to API.
2017-05-14 11:48:59 -07:00
Branimir Karadžić
52c28fa531
Cleanup.
2017-05-14 10:48:51 -07:00
Branimir Karadžić
2e3bdc619e
Fixed projection matrix.
2017-02-22 22:17:44 -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ć
3b83f53ab1
Happy New Year!
2017-01-01 00:18:41 -08:00
Branimir Karadžić
77b650d9a2
Fixed build error.
2016-11-27 21:53:25 -08:00
Branimir Karadžić
5bda86b702
01-cubes: Switched to tristrip to test functionality.
2016-11-26 22:38:47 -08:00
Branimir Karadžić
071912b2d2
Fixed MSVC L4 warnings.
2016-05-06 21:29:47 -07:00
Branimir Karadžić
3eda14fac5
Cleanup.
2016-04-05 19:33:05 -07:00
Krzysztof Kondrak
76a46af418
use separate projection matrices for left/right eyes in HMD demos
2016-04-04 21:29:36 +02:00
Krzysztof Kondrak
bea6e81d12
OculusVR: updated to SDK 1.3
2016-04-02 11:41:40 +02:00
Branimir Karadžić
086285a3e2
Cleanup.
2016-03-06 15:29:22 -08:00
Branimir Karadžić
861a63bf2e
Updated makefiles.
2016-02-29 19:58:17 -08:00
Branimir Karadžić
4bb2b623d3
Happy New Year!
2016-01-01 00:11:04 -08:00
Branimir Karadžić
1c51d81006
Cleanup.
2015-10-23 20:52:22 -07:00
Branimir Karadžić
8107522629
Refactored a few examples to work with Emscripten.
2015-08-21 20:08:03 -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ć
649d7f74d2
Updated copyright year.
2015-01-02 14:43:11 -08:00
Branimir Karadžić
c25dd466be
Updated copyright year.
2015-01-01 15:04:46 -08:00
Branimir Karadžić
d3b49ffc68
Cleanup.
2014-11-02 00:24:58 -07: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ć
f6cf4df3d3
Added OculusVR support.
2014-10-28 22:08:55 -07:00
Branimir Karadžić
eec4ae9847
Fixing paths.
2014-09-10 21:48:08 -07:00
Branimir Karadžić
02e549bfec
Moved fpumath to bx.
2014-05-26 19:31: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ć
92c57b739f
01-cubes: fixed aspect ratio when window size changes.
2014-03-30 18:57:06 -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ć
e7b42f13c6
Updated copyright year.
2014-02-10 22:18:39 -08:00
Branimir Karadžić
9ff1d0c513
Updated copyright year.
2014-02-10 22:07:04 -08:00
bkaradzic
48c477d0ac
Updated screenshots.
2013-10-23 22:48:16 -07:00
bkaradzic
4c4c2eb5cb
examples-common: Reogranized sources. Added command interpreter and input bindings support.
2013-08-07 21:45:56 -07:00
bkaradzic
538796302f
iOS: Fixed aspect ratio in examples.
2013-07-22 21:24:20 -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
3601c74e92
Fixed reset flag in examples.
2013-05-08 22:57:54 -07:00
bkaradzic
fb7fd32f24
Run all samples with vsync on by default.
2013-04-27 18:47:18 -07:00
bkaradzic
9780828b98
Fixing update time.
2013-04-27 00:11:23 -07:00
bkaradzic
eb8ab50281
Made setViewTransform behave the same way as the rest of setView* API.
2013-03-27 21:18:29 -07:00
bkaradzic
6582276e3e
Fixed L4 warnings.
2013-03-25 21:13:54 -07:00
bkaradzic
ea49146ea1
Fixing eols.
2013-03-17 16:10:50 -07:00
bkaradzic
35d7d2ff1b
Added F8 as MSAA toggle in examples.
2013-02-21 22:05:33 -08:00
bkaradzic
8e0e21f40d
Normalized line endings.
2013-02-21 21:07:31 -08:00
bkaradzic
c3667bad05
WIP support for key/mouse events in examples.
2013-01-16 22:44:51 -08:00
bkaradzic
43ce51b8ec
Updated year in copyright notice.
2013-01-13 10:57:24 -08:00