Commit Graph

706 Commits

Author SHA1 Message Date
Branimir Karadžić
7e505c2c3c Cleanup. 2018-02-11 14:57:48 -08:00
Branimir Karadžić
3a8857654f Added ability to set offset in instance data buffer. 2018-02-10 15:36:32 -08:00
Branimir Karadžić
a96805e1f5 Updated docs. 2018-02-10 12:10:29 -08:00
Branimir Karadžić
3c053d4e1e Cleanup. 2018-02-08 19:30:09 -08:00
Branimir Karadžić
8adb5fc020 Added maxTextureLayers to caps/limits. 2018-02-08 16:48:54 -08:00
Branimir Karadžić
e563dedb25 Cleanup. 2018-02-03 11:18:21 -08:00
Johan Sköld
76442f2f29 Fixing macOS build. (#1324)
- Fixing compiler errors from C functions with missing argument lists.
- Silencing warning about -Wunused-but-set-variable being unknown.
- Silencing warnings about comma mis-use.
- Silencing warning about implicit cast from unsigned to int.
2018-01-30 21:47:27 -08:00
Branimir Karadžić
d04301dfda Fixed VGA color order, and clarified docs. 2018-01-25 20:34:17 -08:00
Branimir Karadžić
0dc5c8392f Removed unused argument from setImage. 2018-01-19 17:06:58 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
James Fulop
7beeea408e docs cleanup (#1305) 2017-12-31 15:31:08 -08:00
Lectem
070120b59d Fix GCC error: extra ‘;’ [-Werror=pedantic] (#1295)
The macro `BGFX_HANDLE` is used the following way `BGFX_HANDLE(DynamicIndexBufferHandle);`, however it creates an error when using -Werror=pedantic with GCC since the `;` is unneeded.
I removed the `;` as I can't silence this warning without removing pendantic as a whole.
2017-12-17 16:20:57 -08:00
Branimir Karadžić
f7fea65bec Removed obsolete platforms. 2017-12-14 20:40:30 -08:00
Branimir Karadžić
061fc334c6 Updated docs. 2017-12-04 19:00:40 -08:00
Branimir Karadžić
6adb0090d0 Added resource stats. 2017-12-03 19:42:06 -08:00
Branimir Karadžić
0ce8bd136d Updated docs. 2017-12-03 18:16:06 -08:00
Branimir Karadžić
0e5f3457c3 Added support for texture direct access. 2017-12-02 22:12:27 -08:00
Branimir Karadžić
be2c709812 Cleanup. 2017-11-27 19:34:35 -08:00
Branimir Karadžić
b3fcc8350b Fixed issue #1281. 2017-11-27 09:06:57 -08:00
Branimir Karadžić
77c00da989 Changed API to use ViewId (uint16_t) instead of uint8_t. 2017-11-24 11:21:51 -08:00
云风
8abbd0d05c For C, need struct prefix (#1278) 2017-11-15 09:13:56 -08:00
Branimir Karadžić
cd158d5c5f Updated C99 API. 2017-11-09 20:03:44 -08:00
Branimir Karadžić
6480a62844 Added encoder stats. 2017-11-02 22:06:39 -07:00
Branimir Karadžić
0ca7f241f8 Merge branch 'master' into encoder 2017-10-30 09:08:51 -07:00
Branimir Karadžić
3e5f58c649 Updated docs. 2017-10-30 09:08:43 -07:00
Branimir Karadžić
4656a892ef Cleanup. 2017-10-29 21:06:22 -07:00
Branimir Karadžić
0b20e92797 Encoder API WIP. 2017-10-28 18:43:21 -07:00
Branimir Karadžić
f6a97f9d87 Changed setViewOrder API to specify type required for array. 2017-10-22 18:37:51 -07:00
云风
630ec6c1de fix C syntax (#1258) 2017-10-13 09:26:09 -07:00
Branimir Karadžić
bf3f68a596 Merge branch 'master' of github.com:bkaradzic/bgfx 2017-10-12 21:03:15 -07:00
Branimir Karadžić
2d31ca0162 Cleanup. 2017-10-12 14:22:09 -07:00
Branimir Karadžić
3339ebd61f Fixed reference to old function name. Issue #1256. 2017-10-12 09:14:35 -07:00
Branimir Karadžić
1c7f8a3512 Cleanup. 2017-10-11 16:24:40 -07:00
Branimir Karadžić
ba62e07459 Cleanup. 2017-10-06 21:59:03 -07:00
Branimir Karadžić
cfa81f314a Cleanup. 2017-10-06 21:50:38 -07:00
Branimir Karadžić
e374f7c1ca Updated API version. 2017-10-06 18:08:46 -07:00
Branimir Karadžić
4cdab3e971 Exposed internal profiler callbacks. 2017-10-06 18:07:40 -07:00
Branimir Karadžić
aa567d3d72 D3D11: Added GPU memory stats. 2017-09-26 18:09:15 -07:00
Branimir Karadžić
4b4b1c31a6 Added perf timer for API thread. 2017-09-22 21:39:16 -07:00
Branimir Karadžić
b383159633 Updated docs. 2017-09-07 20:42:20 -07:00
Branimir Karadžić
83d0aab77a Updated C99 API. 2017-08-31 22:08:22 -07:00
Branimir Karadžić
3aec2b89bf Added bgfx::setName to set resource debug name. 2017-08-30 21:46:57 -07:00
Branimir Karadžić
3544dc7389 Updated docs. 2017-08-20 15:11:16 -07:00
Branimir Karadžić
9d70d38793 Updated docs. 2017-08-20 15:08:40 -07:00
Branimir Karadžić
167db342bd Added BGFX_DEBUG_PROFILER. 2017-08-20 14:46:33 -07:00
Branimir Karadžić
c930137c54 Internal profiler WIP. 2017-08-13 21:15:39 -07:00
Branimir Karadžić
5e1872f3cf Updated docs. 2017-08-01 11:19:10 -07:00
Branimir Karadžić
0c204d3380 Updated docs. 2017-07-31 16:49:58 -07:00
Branimir Karadžić
46126c1acd Cleanup. 2017-07-30 05:50:41 -07:00
Branimir Karadžić
8272809534 Added 32-bit dispatch dimension. 2017-07-27 14:57:31 -07:00
Branimir Karadžić
a71a1ab1c0 Fixed compute type defines. 2017-07-26 20:53:49 -07:00
Branimir Karadžić
393ee208ca Added timeout period for renderFrame call. 2017-07-18 19:58:28 -07:00
Branimir Karadžić
3b290ebb7e Cleanup. 2017-07-18 18:32:45 -07:00
Branimir Karadžić
7c9b2b7257 API change: Simplified destroy functions to use overload resolution. 2017-07-17 22:29:43 -07:00
Branimir Karadžić
c60d7810c2 Updated docs. 2017-07-17 20:23:44 -07:00
Viktor Kirilov
3ad7b43416 Fix exporting macros for the C99 API (#1204)
* Fix exporting macros for the C99 API when building bgfx as a shared library - now works with MinGW-w64 under windows and also under linux when -fvisibility=hidden is passed to the compiler to hide all symbols by default (which is recommended - it's a good practice)

* merged msvc and mingw configurations since mingw supports __declspec as well
2017-07-14 08:59:59 -07:00
Branimir Karadžić
297336acd4 Updated docs. 2017-07-09 23:27:04 -07:00
Branimir Karadžić
1e0e2555dc Cleanup. 2017-07-02 11:56:12 -07:00
Branimir Karadžić
839c409cd5 Updated docs. 2017-07-02 11:49:41 -07:00
Branimir Karadžić
9215db2154 noop: Fixed embedded dummy shader. 2017-06-21 19:47:36 -07:00
Branimir Karadžić
6910ddba9e WIP: Adding more sort key modes. 2017-06-14 18:10:42 -07:00
Branimir Karadžić
56b01acc70 Updated docs. 2017-06-12 09:59:25 -07:00
Branimir Karadžić
c39c6121a6 Removed obsolete platform. 2017-06-11 22:54:52 -07:00
Branimir Karadžić
07d799f72e Renamed constants to new style. 2017-06-09 21:57:08 -07:00
Branimir Karadžić
24569934a1 Added color2/3 attributes. 2017-06-06 17:25:17 -07:00
Branimir Karadžić
c4f5129e84 Removed support for Native Client. https://developer.chrome.com/native-client/migration 2017-05-30 23:49:53 -07:00
Branimir Karadžić
737af3257d Cleanup. 2017-05-29 10:52:23 -07:00
Branimir Karadžić
68c6b46a65 Exposed vertex stream argument to API. 2017-05-14 11:48:59 -07:00
Branimir Karadžić
38b0d2fe7c Cleanup. 2017-05-03 11:27:28 -07:00
Branimir Karadžić
ac378f9a6a Cleanup. 2017-05-02 11:46:09 -07:00
Branimir Karadžić
45e7bf5df4 Making RG11B10F name consistent with other texture formats. 2017-04-24 20:31:58 -07:00
Branimir Karadžić
68ad150981 Cleanup. 2017-04-15 22:52:17 -07:00
Branimir Karadžić
1327530d70 Bumped version. 2017-04-03 22:54:31 -07:00
Branimir Karadžić
8ce85d2462 Added bimg dependency. 2017-04-03 22:42:27 -07:00
Branimir Karadžić
f48540040d Cleanup. 2017-04-02 21:07:44 -07:00
Branimir Karadžić
37c4cc138b Cleanup. 2017-03-30 20:47:39 -07:00
Branimir Karadžić
0e560f6832 Cleanup. 2017-03-15 20:25:22 -07:00
Branimir Karadžić
b0e13445db Exposed occlusion query result. 2017-03-06 17:23:22 -08:00
Branimir Karadžić
532da1fbe5 Cleanup. 2017-03-02 19:42:09 -08:00
Branimir Karadžić
1444704901 Cleanup. 2017-03-02 19:29:34 -08:00
Branimir Karadžić
86fc54ccfc Added ability to specify swap chain for screenshot. 2017-03-02 18:02:14 -08:00
Branimir Karadžić
7e76736082 Return bgfx::RenderFrame::Timeout when internal semaphore times out and skips rendering. 2017-03-01 20:12:47 -08:00
Branimir Karadžić
154464cd6d Updated docs. 2017-02-04 15:44:58 -08:00
Branimir Karadžić
26eec1438e Updated docs. 2017-01-31 22:08:37 -08:00
Branimir Karadžić
f63553fecc Cleanup. 2017-01-15 16:22:47 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
07aae82d16 Replaced checkAvail* with getAvail* API. 2016-12-22 16:18:44 -08:00
Branimir Karadžić
ad5b63522c Added dummy embedded shader for noop renderer. 2016-12-21 17:53:06 -08:00
Branimir Karadžić
5a0d824331 Exposed a few more internal performats stats. 2016-12-19 17:18:07 -08:00
Branimir Karadžić
a6f93891d0 Cleanup. 2016-12-06 20:52:41 -08:00
Branimir Karadžić
8da9e54957 Renamed bgfxdefines.h to defines.h, and bgfxplatform.h to platform.h. 2016-12-05 19:52:01 -08:00
Branimir Karadžić
58e46330cd Updated embedded shaders. 2016-12-05 16:55:49 -08:00
Branimir Karadžić
6dcc670370 Cleanup. 2016-12-04 23:58:17 -08:00
Branimir Karadžić
ba29b9ae83 Cleanup. 2016-12-04 22:28:18 -08:00
Branimir Karadžić
8068dd7f58 Standardized way to deal with embedded shaders. 2016-12-04 19:43:07 -08:00
Branimir Karadžić
d25212e620 Cleanup. 2016-11-28 21:01:58 -08:00
Branimir Karadžić
0e933091ed Added ANSI escape codes for debug text. Added info about backbuffer and debug text width/height. 2016-11-28 21:00:57 -08:00
Branimir Karadžić
d81efe1324 Updated docs. 2016-11-24 12:55:55 -08:00
Branimir Karadžić
b8c7c24e4b Updated docs. 2016-11-23 20:34:44 -08:00
Andrey Volodin
d992fa2e68 expose getUniformInfo to c99 API (#988) 2016-11-23 19:02:54 -08:00
Branimir Karadžić
6430099ea9 Added texture format validation function. 2016-11-22 14:37:20 -08:00
Branimir Karadžić
57042abbfb Cleanup. 2016-11-20 18:37:38 -08:00
Branimir Karadžić
3f98a93463 Renamed bgfx::setViewRemap to bgfx::setViewOrder. 2016-11-20 12:56:11 -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ć
a3113ab94c Added ability to retrieve uniform info. 2016-11-02 00:12:40 -07:00
Branimir Karadžić
3a5d05759d Cleanup. 2016-11-01 19:24:24 -07:00
Branimir Karadžić
71023b71b7 Updated docs. 2016-10-27 20:32:18 -07:00
Branimir Karadžić
246bcb864f Cleanup. 2016-10-24 08:07:11 -07:00
Branimir Karadžić
81a2c348e0 Merge pull request #954 from benoitjacquier/readtexture_mip
Readtexture mip
2016-10-24 07:58:55 -07:00
Branimir Karadžić
9c4d1c4b22 Fixed CAPS. 2016-10-22 14:54:22 -07:00
benoitjacquier
9a0e685861 Merge branch 'master' of https://github.com/benoitjacquier/bgfx into readtexture_mip 2016-10-22 12:26:49 +02:00
benoitjacquier
74298e9940 readTexture mip support / D3D9 / D3D11 2016-10-21 17:22:05 +02:00
Branimir Karadžić
25e38b033a Updated docs. 2016-10-19 08:47:24 -07:00
Branimir Karadžić
2f4c1980e2 Cleanup. 2016-10-14 08:39:15 -07:00
Branimir Karadžić
c438bd75a9 Cleanup. 2016-10-14 08:00:25 -07:00
Colby Klein
e382bc4b64 Allow user-provided ovrSession via PlatformData 2016-10-13 12:45:42 -07:00
Branimir Karadžić
f67b9d9892 Fixed issue #945. 2016-10-13 08:38:03 -07:00
Branimir Karadžić
6ff6cd6495 Updated docs. 2016-10-11 19:02:55 -07:00
Branimir Karadžić
8b4ac9d440 Changed getSupportedRenderers function. 2016-10-07 16:58:26 -07:00
Branimir Karadžić
adb0ab77ce Version bump. 2016-10-04 21:12:31 -07:00
Branimir Karadžić
9c15793871 Cleanup. 2016-10-04 21:11:54 -07:00
Branimir Karadžić
059ef463d5 Sorted caps defines by name. 2016-10-03 19:16:19 -07:00
Branimir Karadžić
f1a8c5f195 Cleanup. 2016-09-27 22:07:53 -07:00
Branimir Karadžić
55dc1e2168 Added GNM renderer stub. 2016-09-24 08:31:49 -07:00
Branimir Karadžić
50d867bbc2 Added limits info to caps. 2016-09-24 00:29:59 -07:00
Daniel Ludwig
0d4c2063b5 Fixed order of fields in bgfx_caps_t not matching bgfx::Caps 2016-09-20 21:43:33 +02:00
Branimir Karadžić
f62726b5db Added BGFX_CAPS_GRAPHICS_DEBUGGER. 2016-09-14 19:38:57 -07:00
Branimir Karadžić
08438fa567 texturev: Added texture array support. 2016-08-23 22:06:50 -07:00
Branimir Karadžić
37716c19a4 Updated docs. 2016-08-23 20:20:28 -07:00
Branimir Karadžić
b74198e869 Updated docs. 2016-08-22 09:17:36 -07:00
Branimir Karadžić
7537b705e5 GL: Added support for texture array. 2016-08-21 14:03:16 -07:00
Stuart Carnie
336357db6f improve inter-operability by exposing dbgTextPrintfVargs API 2016-08-20 19:02:56 -07:00
Branimir Karadžić
c98be90bf5 WIP: Texture array support. 2016-08-19 21:05:37 -07:00
Branimir Karadžić
3ac8943e05 Removed PlatformData helpers. 2016-08-17 20:41:09 -07:00
Branimir Karadžić
939829f88c Moved SDL and GLFW window platform hooks to entry. 2016-08-16 22:22:39 -07:00
Branimir Karadžić
78c91186ac Updated docs. 2016-08-13 13:53:48 -07:00
Stuart Carnie
8f04e3087c Add C99 API to header (#881) 2016-08-13 13:52:38 -07:00
Branimir Karadžić
7671d04cac Updated docs. 2016-08-13 13:49:27 -07:00
Branimir Karadžić
c1c7942265 Fixed issue #880. 2016-08-12 19:24:39 -07:00
Branimir Karadžić
7de947c7c0 Updated docs. 2016-08-04 08:35:14 -07:00
Branimir Karadžić
f7060b66ee Cleanup. 2016-08-03 21:57:56 -07:00
Branimir Karadžić
b7a0030c20 GL: Added texture mip autogen. 2016-07-23 16:16:43 -07:00
Branimir Karadžić
3feceda054 Fixed issue #823. 2016-06-27 13:19:26 -07:00
Martin Felis
3de6824ae8 Use GLX calls to get window handle on Linux/BSD instead of X11 calls. (#810) 2016-06-22 22:13:43 -07:00
Branimir Karadžić
1662ecdb80 Updated docs. 2016-06-20 20:41:49 -07:00
Branimir Karadžić
34ec758be7 Updated bgfx::readTexture to return frame number when result will be available. 2016-06-04 09:27:19 -07:00
Branimir Karadžić
e46135da8c Added ability to programmatically capture frame with RenderDoc. 2016-06-02 18:46:43 -07:00
Branimir Karadžić
4adecab397 Cleanup. 2016-05-15 09:02:25 -07:00
Mikulas Florek
16c73cd71b waitRender and waitSubmit in the stats 2016-05-15 17:27:13 +02:00
Branimir Karadžić
bea4569a3c Fixed build. 2016-04-19 20:21:56 -07:00
Stuart Carnie
7e0390e32b match bgfx::Stats struct 2016-04-19 01:07:27 -07:00
Branimir Karadžić
7423257f57 Added BGFX_TEXTURE_MSAA_SAMPLE flag. 2016-04-17 23:00:36 -07:00
Dario
9a43e45891 Api improvement. Calling setUniform() with UINT16_MAX will use the _n… 2016-04-06 19:31:47 -07:00
Krzysztof Kondrak
bea6e81d12 OculusVR: updated to SDK 1.3 2016-04-02 11:41:40 +02:00
Branimir Karadžić
c4fa56092b GL: Added clip control support. 2016-04-01 12:40:18 -07:00
Robin Allen
97aacdcdcf Document bgfx::touch. 2016-03-21 12:40:01 +00:00
Branimir Karadžić
8cd8328cd7 Merge branch 'master' of cane:bkaradzic/bgfx 2016-03-16 20:04:39 -07:00
Branimir Karadžić
acbabdde3b Added conservative raster support. 2016-03-16 20:04:06 -07:00
Branimir Karadžić
d2442511d2 Merge pull request #721 from vinjn/master
includes correct c99 header file.
2016-03-16 19:10:04 -07:00
Vinjn Zhang
139120655d includes correct c99 header file. 2016-03-17 10:06:34 +08:00
Branimir Karadžić
8955ebc6c8 Added alpha to coverage and anti-aliased lines support. 2016-03-16 15:09:15 -07:00
Branimir Karadžić
b974c63aa8 Cleanup. 2016-03-13 15:18:46 -07:00
Branimir Karadžić
955a3f2034 Added BGFX_RESET_SUSPEND flag. 2016-03-08 15:44:42 -08:00
Branimir Karadžić
c691521563 Added preserve state flag. 2016-02-29 11:24:14 -08:00
Branimir Karadžić
9f4a1c47f9 Cleanup. 2016-02-28 15:15:39 -08:00
Branimir Karadžić
c440387eac Cleanup. 2016-02-24 18:18:16 -08:00
Branimir Karadžić
5a87bb0ffe Added support for RGB8* formats. 2016-02-24 15:51:51 -08:00
Branimir Karadžić
d4d4d41e42 Exposed topology API. 2016-02-23 15:30:25 -08:00
Branimir Karadžić
f7c98fc7d3 Cleanup. 2016-02-15 23:46:57 -08:00
Branimir Karadžić
459e211a26 Added framebuffer attachment. 2016-02-15 16:55:32 -08:00
Miodrag Milanovic
c0275c3a77 SteamLink support 2016-02-15 19:45:58 +01:00
Branimir Karadžić
1f6d0e8c0a Added ability to select cubemap face for framebuffer attachments. PR#679. 2016-02-14 11:51:48 -08:00
Branimir Karadžić
cf6ccace77 Texture override internal now returns 0 to signal that internal texture is not yet created. 2016-02-05 18:41:01 -08:00
Branimir Karadžić
cc205ee0d5 Cleanup. 2016-01-20 19:27:48 -08:00
Branimir Karadžić
445ac92eff Added ability to create texture for external use. 2016-01-18 17:29:53 -08:00
Branimir Karadžić
07e65283b0 Adding ability to pass texture created outside of bgfx. 2016-01-17 20:33:39 -08:00
Branimir Karadžić
42a8fdd95d Cleanup. 2016-01-15 21:59:02 -08:00
Branimir Karadžić
72be9be87d Added ability to expose internal data (D3D device/GL context). 2016-01-13 21:18:59 -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
Miodrag Milanovic
f9a7c6ec0b Use BX_PLATFORM_BSD for all BSD based platforms 2016-01-04 18:08:46 +01:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
MikePopoloski
dfc1ea87a7 Adding missing C99 functions 2015-12-15 10:23:51 -05:00
Branimir Karadžić
06e1486132 Added BGFX_RESET_DEPTH_CLAMP. Issue #598. 2015-12-13 12:17:08 -08:00
Branimir Karadžić
c92e57a261 Fixed docs. 2015-11-17 23:24:30 -08:00
Branimir Karadžić
717aab94bc Merge branch 'master' of cane:bkaradzic/bgfx into dev 2015-11-09 18:11:47 -08:00
Branimir Karadžić
c55a6101d2 Added begin/end CPU/GPU timer stats instead of elapsed. 2015-11-09 17:56:12 -08:00
Branimir Karadžić
9d5c14a8c8 Updated docs. 2015-11-08 21:46:18 -08:00
Branimir Karadžić
40d526744a Simplifed allocator. 2015-11-06 22:03:06 -08:00
Branimir Karadžić
539353b7cb Added interface for shared library linking. 2015-11-06 17:25:30 -08:00
Branimir Karadžić
c0b62332d7 Updated docs. 2015-11-03 21:38:38 -08:00
Branimir Karadžić
ecf7eba043 Added ability to read occlusion query result on main thread. 2015-11-03 16:00:14 -08:00
Branimir Karadžić
fdb8d0dec9 Updated docs. 2015-11-02 19:26:42 -08:00
Branimir Karadžić
202bfbd174 Cleanup. 2015-11-02 13:13:57 -08:00
Branimir Karadžić
6aa9629816 Added initial occlusion query support. 2015-11-01 17:28:23 -08:00
Branimir Karadžić
72774fd8e1 Added resetView. 2015-10-27 15:14:48 -07:00
Branimir Karadžić
ec9c6a05c4 Cleanup. 2015-10-26 22:01:52 -07:00
Branimir Karadžić
eb9357e1d6 Updated docs. 2015-10-25 15:50:21 -07:00
Branimir Karadžić
70ad9aac0e Split texture format test. 2015-10-23 14:21:54 -07:00
Branimir Karadžić
76ad2441b0 D3D9: Fixed volume texture update. 2015-10-23 12:57:04 -07:00
Branimir Karadžić
49b4d32f15 Fixed automatic framebuffer resize. 2015-10-21 16:55:50 -07:00
Branimir Karadžić
6aa6efda12 Added initial texture read back support. 2015-10-20 16:32:08 -07:00
Branimir Karadžić
bf60b513aa Added blit caps. 2015-10-16 17:42:40 -07:00
Branimir Karadžić
ad5a46779a Added blit. 2015-10-15 16:38:59 -07:00
Branimir Karadžić
91fe7aafdb Added support for RGB9E5F fromat. 2015-09-29 16:06:06 -07:00
Branimir Karadžić
9e71d6bf70 Updated docs. 2015-09-24 21:08:49 -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ć
ae71103bf9 Added border color index. 2015-09-16 17:21:28 -07:00
Branimir Karadžić
72446e998b Added border texture address mode. 2015-09-11 17:40:38 -07:00
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