Commit graph

298 commits

Author SHA1 Message Date
Bruce Mitchener
7471367923 [c99] Remove extra semicolon after typedef.
The BGFX_HANDLE_T macro ended with a semicolon and all of the uses
also ended with a semicolon, so there was an extra semicolon in
the resulting code.
2015-09-06 22:51:40 +07:00
Bruce Mitchener
dc8f6aed87 Fixed typos. 2015-09-03 23:45:25 +07:00
Branimir Karadžić
818c231d49 Detect available MSAA texture formats. 2015-09-01 13:23:20 -07:00
Branimir Karadžić
ea8ae40898 Updated docs. 2015-08-31 10:53:07 -07:00
Branimir Karadžić
641a105f5d Added mOar texture formats. 2015-08-31 10:16:36 -07:00
Branimir Karadžić
3477485925 Cleanup. 2015-08-30 12:29:13 -07:00
Branimir Karadžić
444384469d Moar texture formats... 2015-08-28 17:41:24 -07:00
Branimir Karadžić
ece46d71bc Cleaned texture format names. 2015-08-28 14:48:51 -07:00
Branimir Karadžić
b7ebbb07b6 Added snorm texture formats. 2015-08-27 16:35:27 -07:00
Branimir Karadžić
cd4be4168b Cleanup. 2015-08-25 00:00:28 -07:00
Branimir Karadžić
77b3c3843e Added HiDPI reset flag. 2015-08-17 16:43:56 -07:00
Branimir Karadžić
f4143b3064 Updated docs. 2015-08-17 12:49:43 -07:00
Branimir Karadžić
f82f99b2a6 Fixed vertex attribute. 2015-08-07 11:37:52 -07:00
Branimir Karadžić
8da579ff99 Added vertex attrib Uint10. 2015-08-04 19:03:56 -07:00
Branimir Karadžić
5f59978e6b Added graceful error handling during initialization. 2015-07-30 18:36:12 -07:00
Branimir Karadžić
ba91815582 Updated docs. 2015-07-26 17:36:06 -07:00
Branimir Karadžić
3c79b92127 Updated docs. 2015-07-26 11:07:04 -07:00
Branimir Karadžić
edaaa588d7 Updated docs. 2015-07-26 09:16:36 -07:00
Branimir Karadžić
b844f5feec Updated docs. 2015-07-26 00:12:10 -07:00
Branimir Karadžić
4857c9df8a Updated docs. 2015-07-25 18:21:34 -07:00
Branimir Karadžić
e337f82aaf Updated docs. 2015-07-25 18:19:45 -07:00
Branimir Karadžić
cb6cee9dd1 Updated trace callback. 2015-07-24 18:02:17 -07:00
Branimir Karadžić
b67bc41cbf Updated docs. 2015-07-23 20:37:46 -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ć
6bdf5c4bad Cleanup. 2015-07-21 18:15:12 -07:00
Branimir Karadžić
4a7d0d1954 Updated docs. 2015-07-20 19:49:51 -07:00
Branimir Karadžić
b98d3b6978 Added trace method to callback interface. 2015-07-16 17:39:02 -07:00
Branimir Karadžić
c4a94843fa Updated docs. 2015-07-10 18:59:28 -07:00
Branimir Karadžić
f7c8562f93 Updated docs. 2015-07-09 21:52:19 -07:00
Branimir Karadžić
6ce6b2a4f0 Updated docs. 2015-07-07 22:53:27 -07:00
Branimir Karadžić
30c7f6d04d Updated docs. 2015-07-06 21:27:54 -07:00
Branimir Karadžić
f44f5b32b1 Added missing C99 API function. 2015-06-27 16:47:07 -07:00
Branimir Karadžić
f36bfe2e4f Added offset for updating dynamic buffers. 2015-06-23 16:40:38 -07:00
Branimir Karadžić
52cfaf0aaa Added Metal renderer backend stub. 2015-06-11 09:38:17 -07:00
Branimir Karadžić
ef143a1bb6 Fixed issue #429. 2015-06-09 19:57:10 -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ć
c4231c9731 Added framebuffer support test. 2015-05-18 12:39:42 -07:00
Mike Popoloski
ad9e9fe111 Adding missing C99 API methods. 2015-05-16 19:07:10 -04:00
Branimir Karadžić
2a49e5a143 Added flush after render reset flag. 2015-05-15 13:14:35 -07:00
Branimir Karadžić
4422e7227a Cleanup. 2015-05-14 21:16:33 -07:00
Branimir Karadžić
8964e68c87 Updated docs. 2015-05-14 20:33:33 -07:00
Branimir Karadžić
f5d0a39dd0 Added buffer compute format flags. 2015-05-14 11:37:32 -07:00
Branimir Karadžić
0305ba0bda Cleanup. 2015-05-13 14:11:56 -07:00
Branimir Karadžić
bd17691a41 Added sRGB texture caps. 2015-05-04 17:23:11 -07:00
Branimir Karadžić
76fa899c22 Merge pull request #373 from MikePopoloski/srgb
sRGB Support
2015-05-04 16:31:24 -07:00
Branimir Karadžić
d5c737924e Added back buffer depth stencil pointer to platform data. 2015-05-04 14:05:04 -07:00
Branimir Karadžić
088bd06b04 Updated C99 API. 2015-05-03 00:01:33 -07:00
MikePopoloski
8919b15468 Adding sRGB support for D3D11 and DDS. 2015-05-02 22:57:42 -04:00
Branimir Karadžić
3b66dfa5e8 Added indirect compute dispatch. 2015-05-01 14:54:23 -07:00