Commit Graph

1603 Commits

Author SHA1 Message Date
Branimir Karadžić
b4df0d7c75 Cleanup. 2017-06-23 14:35:53 -07:00
Branimir Karadžić
8979728fed Cleanup. 2017-06-23 14:28:44 -07:00
attilaz
e92708a5b2 18-ibl: switched to imgui (#1178) 2017-06-23 14:38:08 -07:00
attilaz
2bab41f251 28-wireframe: switched to imgui (#1176) 2017-06-23 14:36:52 -07:00
Branimir Karadžić
27569e95c6 Commenting out deprecated old-imgui API calls. 2017-06-22 21:39:13 -07:00
Branimir Karadžić
df4f4cb3b0 Cleanup. 2017-06-21 22:00:07 -07:00
Branimir Karadžić
4499b51170 30-picking: Switched to new ImGui. 2017-06-21 21:59:41 -07:00
Branimir Karadžić
793f260be1 Cleanup. 2017-06-21 20:06:01 -07:00
attilaz
9b21aa501d 27-terrain: switched to imgui (#1173) 2017-06-21 17:00:50 -07:00
attilaz
d2310cbc2a 19-oit: switched to imgui (#1172) 2017-06-21 16:59:47 -07:00
Branimir Karadžić
9f44b7e968 Cleanup. 2017-06-21 09:24:14 -07:00
attilaz
27fc44e9c4 17-drawstress: switched to imgui (#1171) 2017-06-20 23:54:29 -07:00
Branimir Karadžić
b83204d516 Added kExitSuccess/Failure constants. 2017-06-20 21:42:23 -07:00
Branimir Karadžić
aaaf47242c Cleanup. 2017-06-20 21:01:59 -07:00
Branimir Karadžić
efa7984d01 Cleanup. 2017-06-20 20:56:13 -07:00
Branimir Karadžić
96ae04767c Cleanup. 2017-06-20 20:32:02 -07:00
Branimir Karadžić
c18dcadfc6 Cleanup. 2017-06-20 20:42:46 -07:00
attilaz
b89b1459a2 14-shadowvolumes: switched to imgui (#1169) 2017-06-20 20:37:43 -07:00
Branimir Karadžić
236ef4b875 Fixed shader binary truncation. Issue #1170. 2017-06-20 20:34:41 -07:00
Branimir Karadžić
35060be243 texturev: Added 3D texture support. 2017-06-20 13:31:22 -07:00
Branimir Karadžić
8bcd09a67f Cleanup. 2017-06-18 17:06:07 -07:00
Branimir Karadžić
f84a53c071 Cleanup. 2017-06-18 16:47:37 -07:00
attilaz
9deb9dd035 16-shadowmaps: Switched to ImGui (#1167) 2017-06-18 16:56:29 -07:00
Branimir Karadžić
32998296ae nbody-24: Switched to ImGui. 2017-06-17 21:01:05 -07:00
Branimir Karadžić
822f95b898 Cleanup. 2017-06-17 11:47:39 -07:00
attilaz
477e2b314a 11-fontsdf converted to dear imgui (#1166) 2017-06-17 11:14:44 -07:00
Branimir Karadžić
8d5ab83065 24-nbody: Switched to entry::AppI. 2017-06-16 21:33:18 -07:00
Branimir Karadžić
6572351298 Cleanup. 2017-06-16 18:46:21 -07:00
attilaz
034a91162d callback to entry::AppI (#1165) 2017-06-16 13:10:37 -07:00
attilaz
ab2d8a7bcc Vector Display to entry::AppI (#1164) 2017-06-16 13:10:30 -07:00
Branimir Karadžić
96f6d4f01e 13-stencil: Switching to new ImGui. 2017-06-15 20:34:26 -07:00
Branimir Karadžić
1e634c9cf5 Cleanup. 2017-06-15 11:25:05 -07:00
attilaz
dbf0bfcb35 ibl to entry::AppI (#1161) 2017-06-15 11:23:59 -07:00
attilaz
2d8f5e01e1 ShadowVolumes to entry::AppI (#1160) 2017-06-15 09:57:08 -07:00
Branimir Karadžić
9720aa8d0a Cleanup. 2017-06-14 20:06:36 -07:00
attilaz
7fb5e91c07 shadowmaps to entry::AppI (#1158) 2017-06-14 20:17:10 -07:00
Branimir Karadžić
6910ddba9e WIP: Adding more sort key modes. 2017-06-14 18:10:42 -07:00
Branimir Karadžić
596bd28446 Cleanup. 2017-06-13 22:27:22 -07:00
Branimir Karadžić
2dc7aa1a7c Cleanup. 2017-06-13 20:17:04 -07:00
Branimir Karadžić
3fcaac24fb Cleanup. 2017-06-13 18:42:17 -07:00
attilaz
a7d937f990 shadowmaps simple to entry::AppI (#1157) 2017-06-13 14:33:56 -07:00
Branimir Karadžić
30b6d07e29 Cleanup. 2017-06-12 22:43:07 -07:00
attilaz
f560bcfd55 11-fontsdf to entry::AppI (#1155) 2017-06-12 12:52:48 -07:00
attilaz
60fbe0a863 converted 10-font to entry::AppI (#1154) 2017-06-12 10:20:35 -07:00
attilaz
4e8f944d1a stencil to entry::AppI (#1153) 2017-06-12 10:04:33 -07:00
Branimir Karadžić
525af7685e Renaming CrtFile* -> File*. 2017-06-11 21:01:38 -07:00
Branimir Karadžić
b0697ec349 example-09-hdr: Switched to new ImGui. 2017-06-11 20:43:55 -07:00
Branimir Karadžić
6a6c5e3af9 Cleanup. 2017-06-10 22:31:59 -07:00
attilaz
c40c83d337 fixed imgui window position (#1151)
With SetWindowPos there was a strange flickering of the window when the user tried to grab the window. This is fixed with SetNextWindowPos.
2017-06-10 16:01:42 -07:00
Branimir Karadžić
3967d894eb Cleanup. 2017-06-09 21:59:37 -07:00
Branimir Karadžić
07d799f72e Renamed constants to new style. 2017-06-09 21:57:08 -07:00
Branimir Karadžić
3fbcddb4ef Renamed constants to new style. 2017-06-09 20:08:52 -07:00
Olli Wang
ed99f83093 Fixes texture format for NanoVG framebuffer. (#1147)
* Fixes pixel format for iOS.

* Fixes texture format of nanovg framebuffer.
2017-06-04 09:53:19 -07:00
Branimir Karadžić
cf6087bdb6 Cleanup. 2017-06-03 14:02:01 -07:00
Branimir Karadžić
1e4aa3639c 12-lod: Switched to new ImGui. 2017-06-03 12:13:08 -07:00
Branimir Karadžić
b0f8c68f29 21-deferred: Switched to use new imgui. 2017-06-01 20:54:29 -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ć
9e8131e377 GLFW: Added missing key remappings. 2017-05-29 16:31:36 -07:00
Branimir Karadžić
83b61d99e2 Rebuilt shaders. 2017-05-29 10:44:10 -07:00
Branimir Karadžić
3bbbb4c324 Cleanup. 2017-05-29 10:43:50 -07:00
rams3s
5724020208 Fixed D3D11 error in example 08-update. (#1145) 2017-05-29 10:38:06 -07:00
Branimir Karadžić
993f6b5ff9 glfw: Fixed toggle fullscreen. 2017-05-25 21:13:54 -07:00
Branimir Karadžić
c0f37bc121 Fixed #1136 premultiplied alpha. 2017-05-24 21:15:08 -07:00
Branimir Karadžić
54411a2b5d Fixed issue #1136 cont. 2017-05-24 08:55:45 -07:00
Branimir Karadžić
32c512b5c9 Merge branch 'master' of github.com:bkaradzic/bgfx 2017-05-21 10:32:41 -07:00
Branimir Karadžić
db891edaf8 Cleanup. 2017-05-21 10:32:35 -07:00
Branimir Karadžić
1e3f8e2965 Fixed issue #1136. 2017-05-20 17:15:19 -07:00
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ć
59080ad24e Rebuilt meshes. 2017-05-09 19:51:28 -07:00
Branimir Karadžić
01a76bbdf0 Fixed texture load info. 2017-04-27 21:09:44 -07:00
Branimir Karadžić
6f224a832b Cleanup. 2017-04-23 15:57:44 -07:00
Branimir Karadžić
3d73d0904b shaderc: Added support for gl_VertexID/InstanceID. Issue #1062. 2017-04-23 15:53:15 -07:00
Branimir Karadžić
c9679731a5 Renaming string functions. 2017-04-22 14:47:02 -07:00
Branimir Karadžić
c689fa3498 Cleanup. 2017-04-20 22:12:41 -07:00
Branimir Karadžić
6e9e862565 Renaming string functions. 2017-04-16 21:56:17 -07:00
Branimir Karadžić
6710ea410b Cleanup. 2017-04-15 17:29:34 -07:00
Libor Čapák
3e832fb4bb simple fix #1070 before proper solution (#1116) 2017-04-15 17:36:39 -07:00
Branimir Karadžić
9128c4f374 Fixed NanoVG. 2017-04-12 20:53:58 -07:00
Branimir Karadžić
610055fbb0 Rebuilt shaders, removed unused shaders. 2017-04-11 19:46:40 -07:00
Branimir Karadžić
b88b9b89e2 Updated ImGuizmo. 2017-04-10 21:25:05 -07:00
Branimir Karadžić
5eb69afa21 31-rsm: Switched to new ImGui. 2017-04-09 19:40:16 -07:00
Branimir Karadžić
9b218c9644 Cleanup. 2017-04-05 20:18:59 -07:00
Branimir Karadžić
42f6fe1430 33-pom: Fixed shaders. 2017-04-04 22:41:21 -07:00
Branimir Karadžić
8ca270a449 33-pom: Added screenshot. 2017-04-04 20:45:11 -07:00
Branimir Karadžić
25d7bf27ff Cleanup. 2017-04-04 20:10:57 -07:00
Branimir Karadžić
42aa94504e 33-pom: Built shaders and assets. 2017-04-04 19:47:18 -07:00
Apoorva Joshi
c50cc8493f Add parallax occlusion mapping example (#1104)
* Added example 33-pom

* Fixed warning in 33-pom example on Windows

* Deleted unused image files

* Deleted runtime textures and shaders
2017-04-04 09:52:08 -07:00
Branimir Karadžić
8ce85d2462 Added bimg dependency. 2017-04-03 22:42:27 -07:00
Branimir Karadžić
8b94c13e32 shaderc: Parse in/out correctly. 2017-04-03 17:53:14 -07:00
Branimir Karadžić
e492eb5132 Image code cleanup, preparing for split into new lib. 2017-04-01 14:54:18 -07:00
Branimir Karadžić
8499319009 Cleanup. 2017-03-31 21:01:08 -07:00
Branimir Karadžić
452cf95df5 Cleanup. 2017-03-30 23:39:35 -07:00
Branimir Karadžić
ab42f6fdd8 Fixed reading corrupted PNG. 2017-03-28 17:34:52 -07:00
Branimir Karadžić
0aa79d3ac4 Cleanup. 2017-03-25 21:04:58 -07:00
Olli Wang
b761d1240c Allows to set view id of NanoVG’s framebuffer manually.
This commit changes the `nvgluCreateFramebuffer()` function to not assign a view id automatically as it would easily reach the limit of `uint8_t`. Instead, a new `nvgluSetViewFramebuffer()` function is created to allow users to assign the view id manually as mentioned in #1095.
2017-03-26 11:03:52 +08:00
Branimir Karadžić
837d92159a Rebuilt shaders. 2017-03-24 20:29:24 -07:00
jdryg
b23af90947 nvgRenderUpdateTexture() was reading past the end of the data buffer. 2017-03-24 11:59:16 +02:00
Branimir Karadžić
d3803c0b44 Set correct view for ImGuizmo. 2017-03-23 17:51:58 -07:00
Olli Wang
6c02e359bd Updates NanoVG to the latest commit.
This commit pulls more changes that was not included in #1088.
2017-03-24 00:14:01 +08:00
Branimir Karadžić
7f847d9af0 Cleanup. 2017-03-22 19:19:35 -07:00
Olli Wang
4bdaf42ccf Updates NanoVG to the latest commit.
This commit updates NanoVG's bgfx backend to match the original NanoVG's latest commit, which has significant changes about composite operation implementation as mentioned in pull request https://github.com/memononen/nanovg/pull/312.
2017-03-23 00:23:20 +08:00
Branimir Karadžić
bf57d98a79 Updated shaders. 2017-03-14 20:43:08 -07:00
Branimir Karadžić
cd7e815020 Merge branch 'master' of github.com:bkaradzic/bgfx 2017-03-14 20:41:42 -07:00
Branimir Karadžić
29079cf890 Fixed issue #1077. 2017-03-14 20:41:31 -07:00
Dario Manesku
35323725e9 Don't force stb image loader to use RGBA8. 2017-03-14 14:28:11 +01:00
Branimir Karadžić
5375aa5a03 Fixed warnings. 2017-03-12 18:25:23 -07:00
Dario Manesku
ccbb067746 Typo fixes in image loading code. (#1074) 2017-03-12 10:56:40 -07:00
Branimir Karadžić
7c16314f6f Cleanup. 2017-03-11 22:17:34 -08:00
Branimir Karadžić
a60095c1b6 Updated shaders. 2017-03-11 15:02:37 -08:00
Branimir Karadžić
46ec8d3ca4 VS: Fixing L4 warnings. 2017-03-11 14:44:00 -08:00
Branimir Karadžić
e2363f2b38 Cleanup. 2017-03-09 21:35:41 -08:00
Branimir Karadžić
25dd8377d5 examples/common: Cleanup dealing with textures. 2017-03-09 21:20:45 -08:00
Branimir Karadžić
b0e13445db Exposed occlusion query result. 2017-03-06 17:23:22 -08:00
Libor Čapák
8164e32fd7 TextMetrics includes \n (#1063)
there is no reason to break;
2017-03-05 10:19:42 -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ć
65f2b998ff Updated shaders. 2017-02-24 19:43:40 -08:00
Branimir Karadžić
42d5871846 Updated font awesome to match icon font headers. 2017-02-24 19:24:46 -08:00
Branimir Karadžić
d96225a1f0 Fixing projection matrix in examples. 2017-02-22 22:26:39 -08:00
Branimir Karadžić
2e3bdc619e Fixed projection matrix. 2017-02-22 22:17:44 -08:00
Branimir Karadžić
edbf8572d0 Fixed MinGW build. 2017-02-19 18:15:15 -08:00
Branimir Karadžić
e9e936df90 Cleanup. 2017-02-18 21:31:13 -08:00
Branimir Karadžić
de3d18a0f6 Fixed Emscripten build. 2017-02-18 00:10:32 -08:00
Branimir Karadžić
8d304c9235 Cleanup. 2017-02-17 10:05:56 -08:00
Libor Čapák
b57d8e22bd fix sdl entry + gamecontrollerdb.txt (#1048)
* missing bx/mutex.h include

* gamecontrollerdb.txt update
2017-02-17 09:37:04 -08:00
Brian Harris
ae566e2bb6 Some vulkan fixes (#1051) 2017-02-17 09:35:09 -08:00
Branimir Karadžić
094c6a95d7 Cleanup. 2017-02-16 21:07:39 -08:00
Branimir Karadžić
55e3b56314 Cleanup. 2017-02-16 20:41:22 -08:00
Branimir Karadžić
61be03a1d3 Cleanup. 2017-02-15 22:24:49 -08:00
Branimir Karadžić
0838dad5ab Fixed build. 2017-02-14 20:27:31 -08:00
Branimir Karadžić
42a01f6f1a Cleanup. 2017-02-13 23:19:08 -08:00
Branimir Karadžić
98857222c2 Cleanup. 2017-02-13 22:09:51 -08:00
Libor Čapák
b0eac0a809 new function TextMetrics::clearText() (#1046) 2017-02-13 13:27:07 -08:00
Branimir Karadžić
d72aff9e5d Rebuilt shaders. 2017-02-11 10:30:16 -08:00
Branimir Karadžić
fab74e9c4a Cleanup. 2017-02-11 09:12:16 -08:00
Branimir Karadžić
bfe5a66b3e Cleanup. 2017-02-09 19:31:19 -08:00
Branimir Karadžić
7983b68047 Cleanup. 2017-02-08 20:29:38 -08:00
Branimir Karadžić
b99ebb9535 Cleanup. 2017-02-08 19:55:31 -08:00
Branimir Karadžić
64922762df Cleanup. 2017-02-06 16:22:08 -08:00
Branimir Karadžić
5bfcf44d83 Cleanup. 2017-02-02 18:09:52 -08:00
Branimir Karadžić
b1eb4098ee Fixed warning. 2017-02-01 21:51:53 -08:00
Branimir Karadžić
82ec67105f Cleanup. 2017-01-23 09:42:10 -08:00
Andrew Copland
19770a8f20 Updating code to match bx changes. (#1028) 2017-01-22 08:52:31 -08:00
Branimir Karadžić
335c1ae320 Removing duplicated code. 2017-01-20 15:06:51 -08:00
Brian Harris
ffd3771a09 Updated makefiles to build spirv (#1025) 2017-01-20 09:29:09 -08:00
Branimir Karadžić
14dccb7f1e Cleanup. 2017-01-19 00:22:06 -08:00
Branimir Karadžić
f5c2ed411b Fixed tinyexr warnings. 2017-01-18 10:46:08 -08:00
Branimir Karadžić
14dbb67320 Fixed IFH debug flag. 2017-01-10 17:14:50 -08:00
Branimir Karadžić
c992291e94 Updating code to match bx. 2017-01-08 15:55:14 -08:00
Branimir Karadžić
1350734fbb Link bx library. 2017-01-08 15:15:22 -08:00
Branimir Karadžić
747b6156cc Added particles example screenshot. 2017-01-05 21:28:43 -08:00
Branimir Karadžić
6cb7042496 Cleanup. 2017-01-04 23:45:19 -08:00
Branimir Karadžić
781f926430 Cleanup. 2017-01-04 22:08:28 -08:00
Branimir Karadžić
7fbbc1f98d ps: Added aabb calculation for emitter. 2017-01-04 22:07:56 -08:00
Branimir Karadžić
b9b8a6e871 Cleanup. 2017-01-04 08:34:25 -08:00
Branimir Karadžić
f9934d5253 Cleanup. 2017-01-03 21:36:49 -08:00
Branimir Karadžić
df7761ead9 Cleanup. 2017-01-03 20:39:41 -08:00
Branimir Karadžić
0ae76fac33 Cleanup. 2017-01-03 12:42:23 -08:00
Branimir Karadžić
854a67eed0 Cleanup. 2017-01-03 09:41:47 -08:00
Branimir Karadžić
76ecde3d37 Added example-32-particles. 2017-01-03 00:23:18 -08:00
Branimir Karadžić
39006a91b3 Cleanup. 2017-01-02 11:26:21 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
71295d783b GLFW: Fixed uninitialized data. Issue #1009. 2016-12-30 10:36:10 -08:00
Branimir Karadžić
2c958f4809 Cleanup. 2016-12-25 12:57:35 -08:00
Libor Čapák
5a7fb2d323 WM_CLASS(STRING) = BGFX (#1003) 2016-12-25 10:39:06 -08:00
Branimir Karadžić
6bce3762da Fixed tinyexr warning. 2016-12-22 23:32:24 -08:00
Branimir Karadžić
5c10e94533 Fixed warnings. 2016-12-22 21:14:16 -08:00
Branimir Karadžić
07aae82d16 Replaced checkAvail* with getAvail* API. 2016-12-22 16:18:44 -08:00
Branimir Karadžić
234aa9778e Cleanup. 2016-12-20 21:21:15 -08:00
Branimir Karadžić
25a6a6c4a2 debugdraw: Added texture quad rendering. 2016-12-20 21:20:55 -08:00
Branimir Karadžić
9a0615ee91 debugdraw: Added texture fill shader. 2016-12-19 22:13:15 -08:00
Branimir Karadžić
af9122b209 texturev: Added support for loading .exr images. 2016-12-18 17:02:20 -08:00
Branimir Karadžić
6aa4f64e5c Fixed warnings. 2016-12-15 20:54:49 -08:00
Branimir Karadžić
2c5e21966f Cleanup. 2016-12-15 10:59:57 -08:00
attilaz
f873dcbd10 metal fixes, optim (#997)
osx meamleak fix
refactored commandqueue handling to be somewhat similar to d3d12
removed slow cb sync in buffer update
2016-12-15 08:54:45 -08:00
Branimir Karadžić
ece61fa991 Cleanup. 2016-12-13 22:40:34 -08:00
Branimir Karadžić
b063d2b029 DebugDraw: Added spin, and quad. 2016-12-13 21:58:18 -08:00
Branimir Karadžić
e8dee2d79c Cleanup. 2016-12-09 16:06:10 -08:00
Branimir Karadžić
dc6c1698cd Merge branch 'master' of github.com:bkaradzic/bgfx 2016-12-08 20:45:09 -08:00
Branimir Karadžić
a5bb9be4ed Cleanup. 2016-12-08 20:45:01 -08:00
Branimir Karadžić
76664ec514 Fixed MSVC build. 2016-12-07 22:46:54 -08:00
Branimir Karadžić
f9aab4c8bf entry: Added file reader/writer support for current directory. 2016-12-07 22:08:20 -08:00
Branimir Karadžić
5a1b718a1f Updating embedded shader handling. 2016-12-05 20:12:31 -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ć
f9bc9d560f Cleanup. 2016-12-05 19:01:11 -08:00
Branimir Karadžić
26aa7253f5 Fixed build. 2016-12-05 17:06:13 -08:00
Branimir Karadžić
58e46330cd Updated embedded shaders. 2016-12-05 16:55:49 -08:00
Branimir Karadžić
6b8717e174 Added conversion functions from disk/cylinder to AABB. 2016-12-05 09:55:45 -08:00
Branimir Karadžić
78dc806be7 Cleanup. 2016-12-04 20:11:10 -08:00
Branimir Karadžić
4afd337d5e Cleanup. 2016-12-04 19:52:48 -08:00
Branimir Karadžić
1ffa72356d Rebuilt shaders. 2016-12-04 19:43:49 -08:00
Branimir Karadžić
8068dd7f58 Standardized way to deal with embedded shaders. 2016-12-04 19:43:07 -08:00
Branimir Karadžić
7820a8ee29 Cleanup. 2016-12-03 15:40:18 -08:00
Branimir Karadžić
2ec5c78088 debugdraw: Flush lines when state changes. 2016-12-02 12:10:09 -08:00
Branimir Karadžić
5d83b6fa4c Fixed VS build. 2016-11-28 23:32:23 -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ć
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ć
73122b8e08 Fixed issue #982. 2016-11-20 15:56:34 -08:00