Commit graph

802 commits

Author SHA1 Message Date
Branimir Karadžić
557dcef3dd Updated glsl-optimizer. 2014-02-10 23:06:13 -08: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
877621105d Added MRT support. 2014-02-05 23:07:11 -08:00
bkaradzic
8c27ed5962 SDL: Fixed clang warnings. 2014-01-30 20:31:49 -08:00
Dario Manesku
e27d75a690 Small fix. 2014-01-30 19:44:37 +01:00
Dario Manesku
950bba4d54 Added free look camera for 13-stencil. 2014-01-30 19:44:14 +01:00
Dario Manesku
95978c2632 Updated binary shaders. 2014-01-30 19:29:45 +01:00
Dario Manesku
e038e136f5 Refactor. 2014-01-30 19:24:03 +01:00
Dario Manesku
d68e48c1b7 Refactor. 2014-01-30 18:36:40 +01:00
Dario Manesku
de1d5e48ed Added free look camera for 14-shadowvolumes. 2014-01-30 18:20:06 +01:00
bkaradzic
47ce754e16 Merge branch 'master' of github.com:bkaradzic/bgfx 2014-01-24 22:38:43 -08:00
bkaradzic
f48511147a Fixed SDL entry mouse messages. 2014-01-24 21:49:15 -08:00
bkaradzic
7f004af0d6 Fixed GCC warning. 2014-01-20 23:43:09 -08:00
bkaradzic
b25a7cc9ff Fixed C4244 warnings. 2014-01-20 22:07:08 -08:00
bkaradzic
2c05b90792 Embedded shaders and font into 17-drawstress. 2014-01-19 22:34:58 -08:00
bkaradzic
e8075dc367 Using renderFrame to setup thread creation behavior. 2014-01-19 14:58:05 -08:00
bkaradzic
9d1deb534a Cleanup. 2014-01-19 00:31:11 -08:00
bkaradzic
b5f1a4fcf9 Fixed Linux build. 2014-01-19 00:28:17 -08:00
bkaradzic
f08ce4fdaa Added 17-drawstress example. 2014-01-18 23:43:16 -08:00
bkaradzic
59a76342f2 Replaced static const values with defines. 2014-01-18 22:21:10 -08:00
bkaradzic
804bd01b01 Added imguiChoose function. 2014-01-18 20:07:00 -08:00
bkaradzic
924cb614c2 Cleanup. 2014-01-13 21:48:42 -08:00
bkaradzic
881c598dc8 Resized screenshots. 2014-01-13 20:39:33 -08:00
bkaradzic
4061d19963 Updated screenshots. 2014-01-13 20:36:33 -08:00
bkaradzic
0ed2edc7b3 Updated shaders and README. 2014-01-13 20:17:56 -08:00
Dario Manesku
658552be7e Copyright dates updated. 2014-01-13 23:45:18 +01:00
Dario Manesku
098ef114d2 Added screenshots. 2014-01-13 22:16:09 +01:00
Dario Manesku
24d32d57d6 Trailing whitespaces removed. 2014-01-13 22:16:09 +01:00
Dario Manesku
6f5119a933 Added binary shaders. 2014-01-13 22:16:08 +01:00
Dario Manesku
5594e9af8c Added 15-shadowmaps-simple and 16-shadowmaps. 2014-01-13 22:16:07 +01:00
Dario Manesku
c01085856c Added packHalfFloat(). 2014-01-13 22:16:07 +01:00
Dario Manesku
530790970d Fixed cube mesh normals. 2014-01-13 22:16:06 +01:00
Dario Manesku
c827dad22a Added camera. 2014-01-13 22:16:00 +01:00
bkaradzic
1f228a172b Increased BGFX_CONFIG_MAX_DRAW_CALLS to 64K. 2014-01-12 21:43:47 -08:00
bkaradzic
7d61b3eafa Removed unused files. 2014-01-02 09:20:58 -08:00
bkaradzic
2e0952bbec Fixed GCC warning. 2013-12-29 15:03:51 -08:00
bkaradzic
d1117f34b5 Added support for different RT depth stencil formats. 2013-12-29 11:43:44 -08:00
bkaradzic
6005ebda2b Added platform name defines. 2013-12-24 21:30:28 -08:00
bkaradzic
a1294a4d5d Fixed MinGW64 compile errors. 2013-12-24 20:18:49 -08:00
bkaradzic
48a48d9bf5 Fixes for MinGW GCC 4.8.1. 2013-12-23 22:36:30 -08:00
bkaradzic
336bea5849 Fixed memory leak. 2013-12-21 23:37:35 -08:00
bkaradzic
7e656fa4ef Added GL 3.1 core profile shader patching. 2013-12-20 19:51:17 -08:00
bkaradzic
e3959838b3 Updated to OSX 10.9 and Xcode5. 2013-12-20 16:41:53 -08:00
bkaradzic
433a29d7d6 Use sdcard for loading data for Android examples. 2013-12-09 22:36:13 -08:00
bkaradzic
8c2b39efe2 Fixed warnings. 2013-12-07 10:45:15 -08:00
bkaradzic
dee588dfba OSX/iOS: Updated to Xcode5. 2013-12-07 10:19:54 -08:00
bkaradzic
9fd378b5d9 Fixed GCC warnings. 2013-12-02 20:09:03 -08:00
bkaradzic
9487ab6b5f Fixed GCC warnings. 2013-11-29 22:23:04 -08:00
Branimir Karadžić
86096bd3cc Merge pull request #57 from dariomanesku/master
Small update on 14-shadowvolumes.
2013-11-20 19:03:55 -08:00
Dario Manesku
aa1219b8b4 Using better data structures. 2013-11-20 20:28:12 +01:00
Dario Manesku
6e290a3c9b Supressing clang compiler warning. 2013-11-19 23:35:34 +01:00
bkaradzic
8c609d77c8 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-11-18 20:46:12 -08:00
bkaradzic
f912469a63 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-11-18 20:44:21 -08:00
bkaradzic
04f348c2ea OSX: Moved NSOpenGLContext creation to the main thread that created NSWindow. Fixes occasional GL_INVALID_FRAME_BUFFER_OPERATION error on DrawElements. 2013-11-18 20:43:17 -08:00
bkaradzic
333b164278 Cleanup. 2013-11-17 22:26:15 -08:00
bkaradzic
32fe192101 Cleanup. 2013-11-17 20:57:38 -08:00
bkaradzic
2563c271b0 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-11-17 20:43:00 -08:00
bkaradzic
a4df646179 Fixed fmin/fmax CRT library name collision. 2013-11-17 20:42:29 -08:00
bkaradzic
367279e2e5 OSX: Removed dependency on SDL2. 2013-11-17 20:14:57 -08:00
bkaradzic
40c9aa78d8 Fixed VS2008 build. 2013-11-14 19:10:34 -08:00
bkaradzic
fab2ef534c Using language compliant header guards. 2013-11-14 19:10:10 -08:00
Dario Manesku
e432a37396 Small refactor. 2013-11-13 19:11:34 +01:00
Dario Manesku
0381c60b6d Data structures sepatared for aligned memory access. 2013-11-13 17:53:44 +01:00
Dario Manesku
d7647a4cb7 Small optimization. 2013-11-13 17:04:21 +01:00
Dario Manesku
c0c62570ea Removed trailing whitespaces. 2013-11-12 22:31:44 +01:00
Dario Manesku
494fc01f23 Performance optimizations and SIMD support. 2013-11-12 22:31:44 +01:00
Dario Manesku
2d91c114c2 Removed duplicate edges from platform mesh. 2013-11-12 22:18:42 +01:00
bkaradzic
53adb1dae4 Fixed 14-shadowvolume build for Android. 2013-11-09 10:06:06 -08:00
bkaradzic
08ebd5523d Updated 08-update example. 2013-11-08 22:10:31 -08:00
bkaradzic
b584873b50 Added ability to specify arbitrary source pitch when uploading textures.
Added reference weldVertices implementation.
2013-11-07 23:00:53 -08:00
Dario Manesku
a2030866cd Updated screenshot. 2013-11-07 07:12:25 +01:00
Dario Manesku
eb37d42888 Binary shaders updated. 2013-11-06 19:36:26 +01:00
Dario Manesku
55f0be0761 Fixed reflection in 13-stencil. 2013-11-06 19:36:10 +01:00
Dario Manesku
9ee7d760a7 Fixed resource cleanup. 2013-11-06 19:06:50 +01:00
Dario Manesku
fd764ec261 Cleanup. 2013-11-06 19:06:49 +01:00
Dario Manesku
d7b69b1ce9 Minor fix. 2013-11-06 19:06:49 +01:00
Dario Manesku
3c0e4c68b3 Small refactor regarding shadow volume mtx computation. 2013-11-06 19:06:48 +01:00
Dario Manesku
46c8e1056a Cleanup. 2013-11-06 19:06:48 +01:00
bkaradzic
96ead5cfeb Fixed warning: operation on ‘currentDirection’ may be undefined. 2013-11-06 19:06:47 +01:00
bkaradzic
6a6404f73d Removed nonsense code. 2013-10-31 22:47:06 -07:00
bkaradzic
f0c9c14f93 Updated fpumath. 2013-10-31 21:49:15 -07:00
Dario Manesku
e216e35ecd Meshes rebuilded with --packnormal 1. 2013-10-25 18:31:58 +01:00
Dario Manesku
cdd6cb1a86 Max light and instance count are now preprocessor constants. 2013-10-25 18:20:25 +01:00
Dario Manesku
ad0cdd6f1c Tightening memory usage for shadow volumes. 2013-10-25 18:20:24 +01:00
Dario Manesku
4cb2ab30f2 Cleanup. 2013-10-25 18:20:24 +01:00
Dario Manesku
b48850a989 Added special allocator for shadow volumes data. 2013-10-25 18:20:23 +01:00
Dario Manesku
96743e3a5b Cleanup. 2013-10-25 18:20:23 +01:00
Dario Manesku
0c9ed73476 Small optimization. 2013-10-25 18:20:22 +01:00
Dario Manesku
64b2e96772 Added named variables for fov, aspect, near/far plane. 2013-10-25 18:20:22 +01:00
Dario Manesku
3db3f02dc6 Got rid of unnecessary things. 2013-10-25 18:20:21 +01:00
bkaradzic
48c477d0ac Updated screenshots. 2013-10-23 22:48:16 -07:00
bkaradzic
c99d145347 Added FontAwesome to 10-font example. 2013-10-23 20:32:48 -07:00
bkaradzic
8144613c94 Cleanup. 2013-10-20 19:30:58 -07:00
bkaradzic
ff21c42797 Cleanup. 2013-10-20 13:11:41 -07:00
bkaradzic
2d62896623 Updated shaders for example 13-stencil. 2013-10-20 12:47:58 -07:00
Dario Manesku
cd31dbfb13 Cleanup. 2013-10-20 21:26:04 +01:00
Dario Manesku
19f36716f7 Fixed lightning problem. 2013-10-20 21:22:19 +01:00
bkaradzic
3dc932d599 Cleanup. 2013-10-20 11:34:28 -07:00
bkaradzic
def41a0901 Fixed 64-bit warnings. 2013-10-18 23:45:34 -07:00
bkaradzic
fe53e02b7c Cleanup. 2013-10-18 23:08:57 -07:00
bkaradzic
49e14b2a54 Cleanup. 2013-10-18 23:05:33 -07:00
bkaradzic
e12c84c2e6 OSX: Fixed compile error. 2013-10-18 09:53:06 -07:00
bkaradzic
bd5fec510c Updated example mesh. 2013-10-18 08:41:31 -07:00
bkaradzic
9859472bab Added new examples to premake script. Added missing files. 2013-10-17 23:45:58 -07:00
bkaradzic
7f7687d582 Added new shaders. 2013-10-17 22:43:47 -07:00
Dario Manesku
48aa0079ae Added examples 13-stencil and 14-shadowvolumes 2013-10-18 07:18:31 +01:00
bkaradzic
6f3a18a805 Added delayed load for GLES dlls on Windows. 2013-10-10 22:57:42 -07:00
bkaradzic
f440f160f9 Exposed renderer capabilities. 2013-10-10 18:29:57 -07:00
bkaradzic
781c9cda5b Examples: Fixed resource leaks warnings. 2013-10-06 20:30:44 -07:00
bkaradzic
5f35341abf Fixed alloc/free mismatch with tinystl::string. 2013-10-06 19:32:35 -07:00
Josh Simmons
6c5c7786ca Handle exit message from window manager on Linux 2013-10-05 14:41:22 +10:00
bkaradzic
df1dfdc872 Added isValid check function for handles. 2013-09-29 21:33:50 -07:00
bkaradzic
ab969f0a1a Enable tinystl by default. 2013-09-22 21:40:17 -07:00
bkaradzic
a5948679ca Removed context static inialization. 2013-09-20 22:13:58 -07:00
bkaradzic
083ada2fbd Replaced custom allocator handling. 2013-09-16 21:40:30 -07:00
bkaradzic
f84081b0ad Added texture compression test. 2013-09-09 23:17:17 -07:00
bkaradzic
cacff49d99 Cleanup. 2013-09-08 23:14:34 -07:00
bkaradzic
983f1e6f9a GL: When using ARB_texture_swizzle don't swizzle image to BGRA8. 2013-09-08 23:03:14 -07:00
bkaradzic
9d59e31f6a Fixed warning. 2013-09-04 21:41:01 -07:00
bkaradzic
1da64571d9 Fixed MinGW build. 2013-08-30 22:31:40 -07:00
bkaradzic
b36a26528a Added fclamp and fsaturate. 2013-08-26 22:37:56 -07:00
bkaradzic
333ff8500d Added imageRgba8Downsample2x2 utility function and updated 07-callback to demonstrate how to use it to generate mip maps. 2013-08-21 22:51:50 -07:00
bkaradzic
c8ac5690ba Cleanup. 2013-08-16 22:29:55 -07:00
bkaradzic
dfd17b1d79 Fixed clang warning. 2013-08-14 21:18:42 -07:00
bkaradzic
24c894ea90 Shuffling entry stuff. 2013-08-14 21:08:46 -07:00
bkaradzic
e92eb7504b Added SDL2 entry point. 2013-08-12 20:47:41 -07:00
bkaradzic
d265b9b0d4 Examples: Added ability to turn off debug text. 2013-08-09 21:33:28 -07:00
bkaradzic
3e6f682c30 Fixed resource leak in font examples. 2013-08-08 22:18:19 -07:00
bkaradzic
c9de4a1f19 12-lod: Fixed size of imgui. 2013-08-08 00:04:03 -07:00
bkaradzic
d5bc94454e Don't mess with include order on Linux. 2013-08-07 23:16:30 -07:00
bkaradzic
386323e9a6 Added missing include. 2013-08-07 23:11:20 -07:00
bkaradzic
5a2f097fcc Fixed Linux build. 2013-08-07 23:03:09 -07:00
bkaradzic
2f72afca65 Fixed iOS and OSX builds. 2013-08-07 22:50:01 -07:00
bkaradzic
d07ededcaf Fixed NaCl build. 2013-08-07 22:01:46 -07:00
bkaradzic
4c4c2eb5cb examples-common: Reogranized sources. Added command interpreter and input bindings support. 2013-08-07 21:45:56 -07:00
bkaradzic
640c61fe45 Cleanup. 2013-08-06 21:09:02 -07:00
bkaradzic
f7fe163f2b Cleanup. 2013-08-06 21:04:28 -07:00
bkaradzic
bac2073b76 Added support for per primitive scissor. 2013-07-27 15:27:54 -07:00
bkaradzic
b1901ae776 Fixed instancing. 2013-07-25 23:13:48 -07:00
bkaradzic
538796302f iOS: Fixed aspect ratio in examples. 2013-07-22 21:24:20 -07:00
bkaradzic
d927f59bd8 Cleanup. 2013-07-21 21:53:20 -07:00
bkaradzic
a17be960c6 Cleanup. 2013-07-21 20:56:12 -07:00
bkaradzic
41dfddf424 Cleanup. 2013-07-21 15:38:44 -07:00
bkaradzic
bf22ffaae1 iOS stuff. 2013-07-21 14:44:53 -07:00
bkaradzic
851ab7fde5 Fixed OSX build. 2013-07-10 23:18:16 -07:00
bkaradzic
ea5201d07e Fixed imgui program leak. 2013-07-10 21:15:27 -07:00
bkaradzic
daab00e816 Cleanup. 2013-06-24 23:38:14 -07:00
bkaradzic
bd508cc502 Fixed memory leak when font fails to load. 2013-06-24 23:21:53 -07:00
bkaradzic
17f6071018 Added flip handedness matrix helper functions. 2013-06-24 21:27:58 -07:00
bkaradzic
1e6c8000c7 Rebuilt font embedded shaders. 2013-06-07 22:49:25 -07:00
bkaradzic
9c005e40ba Linux/AMD: Fixed font shaders. 2013-06-07 22:45:02 -07:00
bkaradzic
a330a141dd Fixed GCC warning. 2013-06-03 23:58:18 -07:00
bkaradzic
375f17060a DX11/GL: Fixed font subpixel issues. 2013-06-03 23:16:02 -07:00
bkaradzic
52511156ac Cleanup. 2013-05-30 21:16:09 -07:00
bkaradzic
18c4e37d66 Cleanup. 2013-05-30 20:43:27 -07:00
bkaradzic
ed9761e9c9 Cleanup. 2013-05-29 23:21:19 -07:00
bkaradzic
32b95cace3 Cleanup. 2013-05-29 23:12:05 -07:00
bkaradzic
b8a69a700b Cleanup. 2013-05-29 22:47:19 -07:00
bkaradzic
af842a1c68 Cleanup. 2013-05-29 21:53:19 -07:00
bkaradzic
18f2e82362 Added include path to common. Renamed math to fpumath. 2013-05-23 22:07:54 -07:00
bkaradzic
fc9dc6a3cd Moved matrix functions to math.h 2013-05-22 23:06:13 -07:00
bkaradzic
4a2bfcfbeb Cleanup. 2013-05-22 21:34:21 -07:00
bkaradzic
e49810bc29 Fixed 64-bit warning. 2013-05-22 19:53:17 -07:00
Jeremie Roy
b6e4c79f77 slightly better default param values 2013-05-22 19:23:24 +02:00
Jeremie Roy
65b08cc523 Merge remote-tracking branch 'refs/remotes/bgfx_bkaradzic/master'
Conflicts:
	examples/common/font/text_buffer_manager.cpp
2013-05-22 17:22:48 +02:00
Jeremie Roy
3df72de750 refactor sdf sample completely to show a big scrollable, rotable and scalable text 2013-05-22 17:20:23 +02:00
Jeremie Roy
748e2e395f add typewriter font and sherlock holmes text 2013-05-22 17:19:26 +02:00
Jeremie Roy
f1042b3f6f add Text metrics helper 2013-05-22 17:16:11 +02:00
Jeremie Roy
60e51ea707 make sure pen position always refers to top left + remove measureText + append substring 2013-05-22 17:15:58 +02:00
Jeremie Roy
c13e53153f add max advance to fontInfo 2013-05-22 17:13:17 +02:00
bkaradzic
aeb414d238 Fixed 64-bit warnings. 2013-05-21 21:58:24 -07:00
Jeremie Roy
292b021e0e add functionality to measure text without rendering it 2013-05-21 14:45:14 +02:00
bkaradzic
383efbed99 Fixed shader to output alpha 1.0. 2013-05-20 20:45:22 -07:00
bkaradzic
0f3a4768ba Updated 02-metaballs to demonstrate use of embedded shaders. 2013-05-20 20:10:52 -07:00
bkaradzic
37f4bedeb8 Added vsync to lod example. 2013-05-18 23:10:33 -07:00
bkaradzic
6752a421a2 Fixed LOD shader. 2013-05-18 22:55:43 -07:00
bkaradzic
bed490bd53 Cleanup. 2013-05-18 22:12:40 -07:00
bkaradzic
065ab46822 Cleanup. 2013-05-18 09:43:57 -07:00
bkaradzic
71fb00a298 Updated 12-lod. 2013-05-18 09:34:36 -07:00
bkaradzic
33b52a3cea Merge branch 'master' of github.com:bkaradzic/bgfx 2013-05-18 09:15:51 -07:00
Milos Tosic
e0c53df020 Add LOD transition example 2013-05-18 18:41:32 +08:00
bkaradzic
816efcd934 Removed unused member variables. 2013-05-17 23:06:08 -07:00
bkaradzic
c487afa8ef Added varying.def to dependencies. 2013-05-17 22:13:32 -07:00
Jeremie Roy
700c263042 fix issue with uv packing (and mingw issue) 2013-05-18 00:11:54 +02:00
Jeremie Roy
be925b64c4 remove "m_" from POD struct members in cube_atlas 2013-05-17 23:47:08 +02:00
Jeremie Roy
565d0ca543 add missing functionality to show an atlas face 2013-05-17 23:42:59 +02:00
Jeremie Roy
d7a53cd25f with issue with uv packing of face 2013-05-17 23:42:38 +02:00
bkaradzic
9c0b5be6d7 Added vsync by default to font examples. 2013-05-17 08:45:12 -07:00
bkaradzic
4319f8f1df Fixed MinGW compile error. 2013-05-16 23:45:37 -07:00
bkaradzic
7eef7f52be More cleanup. 2013-05-16 22:03:57 -07:00
bkaradzic
2ab5b6e166 Cleanup. 2013-05-16 20:54:25 -07:00
bkaradzic
274a5f2321 Cleanup. 2013-05-16 20:37:54 -07:00
bkaradzic
50a92db146 Cleanup. 2013-05-16 20:35:08 -07:00
bkaradzic
6cd9a19589 Added screenshots for example 10 and 11. 2013-05-16 20:09:52 -07:00
bkaradzic
374ea5cd71 Removed unused files. Added font asset info to README. 2013-05-16 09:10:43 -07:00
bkaradzic
7fcda61d90 Fixed Linux build. 2013-05-16 09:03:56 -07:00
bkaradzic
45e14926d2 Fixed GCC warnings. 2013-05-15 21:35:26 -07:00
bkaradzic
88162a78cc Nuked Emscripten. 2013-05-15 19:53:19 -07:00
bkaradzic
9dfe1421d8 Fixed GCC warnings. Cleanup. 2013-05-15 19:42:39 -07:00
Jeremie Roy
c4b4b15e37 uncrustify whole font code 2013-05-15 15:21:23 +02:00
Jeremie Roy
61305ed0e4 fix warning and remove useless includes 2013-05-15 15:12:25 +02:00
Jeremie Roy
a4006cf0ab harmonize license header text 2013-05-15 15:07:04 +02:00
Jeremie Roy
1194e6f556 get rid of missleading NULL initializer 2013-05-15 15:02:25 +02:00
Jeremie Roy
fe41a9f6b8 convert pragma once to include guards 2013-05-15 15:01:46 +02:00
Jeremie Roy
def7541538 Merge remote-tracking branch 'refs/remotes/bgfx_bkaradzic/master' 2013-05-15 14:50:54 +02:00
bkaradzic
3601c74e92 Fixed reset flag in examples. 2013-05-08 22:57:54 -07:00
Jeremie Roy
cf895eb5ba remove m_ from POD struct + clean 3rdparty include 2013-05-09 00:49:01 +02:00
Jeremie Roy
925e0eb371 remove blank space 2013-05-09 00:05:45 +02:00
Jeremie Roy
2f89ab16ba rework the samples 2013-05-08 23:55:54 +02:00
Jeremie Roy
b2e506d7aa better font sample 2013-05-08 19:55:20 +02:00
Jeremie Roy
d1a128d62a remove compiled shaders in favor of embedded one 2013-05-08 19:54:33 +02:00
Jeremie Roy
4ca2b3f4af move shaders to embedded shader system 2013-05-08 19:53:47 +02:00
Jeremie Roy
043a062346 fix bug of bleeding styled text 2013-05-08 19:53:21 +02:00
Jeremie Roy
a69a483de3 Add some fonts to display text 2013-05-08 19:52:47 +02:00
Jeremie Roy
d63a452161 commit embedded shaders 2013-05-08 19:46:51 +02:00
Jeremie Roy
67ebcebd21 add inner outline in order to avoid texture bleeding 2013-05-08 19:45:58 +02:00
bkaradzic
528360ac6c Fixed path separator. 2013-05-07 22:37:19 -07:00
Jeremie Roy
88e6ce0a33 Merge remote-tracking branch 'refs/remotes/bgfx_bkaradzic/master' 2013-05-07 17:01:37 +02:00
Jeremie Roy
6cf5f67eae load shaders explicitely inside the samples 2013-05-07 15:51:19 +02:00
Jeremie Roy
d470ac2567 remove explicit filesystem dependency 2013-05-07 14:26:49 +02:00
Jeremie Roy
e4712b2641 use embedded shaders 2013-05-07 14:26:31 +02:00
bkaradzic
7f2edf4861 Initialize mouse button state. 2013-05-03 09:18:53 -07:00
bkaradzic
468b48b017 Removed bad check for clear flags. 2013-04-30 23:10:29 -07:00
bkaradzic
0e0fcd22de Removed use of external debug functions. 2013-04-28 12:27:35 -07:00
bkaradzic
fb7fd32f24 Run all samples with vsync on by default. 2013-04-27 18:47:18 -07:00
bkaradzic
2ef508139f GL/GLES: vsync. 2013-04-27 15:16:05 -07:00
bkaradzic
3686725fef Fixing update time. 2013-04-27 12:43:18 -07:00
bkaradzic
9780828b98 Fixing update time. 2013-04-27 00:11:23 -07:00
bkaradzic
52079f1d49 Removed time offset from bx. Let app #dealwithit. 2013-04-25 23:30:56 -07:00
bkaradzic
047eca5829 Cleanup. 2013-04-24 23:42:20 -07:00
bkaradzic
6403d9b5a6 Fixed GCC warnings. 2013-04-24 22:03:04 -07:00
bkaradzic
872b25b447 Added imgui parameter tweaker to HDR example. 2013-04-24 21:40:54 -07:00
bkaradzic
6e374982be Added imgui. 2013-04-24 21:01:11 -07:00
bkaradzic
375d4b821b Added droidsans.ttf font to examples/runtime. 2013-04-24 19:24:08 -07:00
Jeremie Roy
b661d50b69 Fix bug involving assert a function call. 2013-04-24 12:23:47 +02:00
Jeremie Roy
fc5f5d3ec2 convert static const to #define 2013-04-24 12:15:40 +02:00
Jeremie Roy
83f176a5dc convert m_u_xxx to u_xxx for uniforms handle naming. 2013-04-24 12:10:41 +02:00
Jeremie Roy
1a1b4a9baf Better disable warning for Freetype 2013-04-24 12:07:47 +02:00
Jeremie Roy
d4a695a181 convert assert to BX_CHECK 2013-04-23 23:14:32 +02:00
Jeremie Roy
1d5c813806 remove Sleep() in demo function 2013-04-23 22:51:59 +02:00
Jeremie Roy
119317686c use ii instead of i in for loop 2013-04-23 22:48:34 +02:00
Jeremie Roy
5096f82d12 convert size_t to uint32_t and int to int32 2013-04-23 22:32:39 +02:00
Jeremie Roy
e851f5dec6 update text_buffer_manager to bgfx naming style 2013-04-23 21:49:24 +02:00
Jeremie Roy
6c956ee0c9 update font_manager to bgfx coding style 2013-04-23 20:58:57 +02:00
Jeremie Roy
6b8b95acd8 update cube_atlas to bgfx naming style 2013-04-23 20:36:07 +02:00
Jeremie Roy
1f5db2d7db fix typo in debug text 2013-04-23 17:23:00 +02:00
Jeremie Roy
3156a79257 fix a typo in fontsdf name 2013-04-23 17:22:19 +02:00
Jeremie Roy
7f3fb10f2a Remove namespace from font utility classes 2013-04-23 17:18:54 +02:00
Jeremie Roy
1f44b65ef6 proper debug text message in fontdfs 2013-04-23 14:32:31 +02:00
Jeremie Roy
7f6d441c27 add proper debug comment in the font sample using the text system (good demonstration) 2013-04-23 14:29:35 +02:00
Jeremie Roy
8ddda84cd7 restore pen position (did break it for debug previously) 2013-04-23 14:28:31 +02:00
Jeremie Roy
253d07435c rename font samples main cpp to the project name 2013-04-23 14:10:53 +02:00
Jeremie Roy
62c9a457c1 rename samples to shorter name 2013-04-23 14:09:45 +02:00
Jeremie Roy
7c7612a971 integration of font and text system 2013-04-22 22:42:11 +02:00
bkaradzic
dae6768c43 Fixed detection of instanced_array extension. 2013-04-20 23:13:44 -07:00
bkaradzic
ba55084ad8 Android wip. 2013-04-18 23:32:12 -07:00
bkaradzic
767df6c5e6 Android plumbing. 2013-04-18 21:16:09 -07:00
bkaradzic
d3a526a92b Android build fixes wip. 2013-04-15 23:10:32 -07:00
bkaradzic
6f13e31d2b Fixed warning. 2013-04-13 11:38:51 -07:00
bkaradzic
05a18ab5cf Added QNX entry. 2013-04-13 01:54:17 -07:00
bkaradzic
507af8c9f1 Fixed shaderc crash when $in/output lines have comments. 2013-04-11 20:36:28 -07:00
bkaradzic
4ab0874d53 Changed u_model uniform to array. 2013-04-06 14:16:38 -07:00
bkaradzic
648c8a593e Fixed GLES2 texture format error. Fixed hdr example cube texture issue. 2013-04-06 14:03:38 -07:00
bkaradzic
84bfec136a Removed some HLSL intrinsic from .sc shaders in favor of GLSL. Fixed varying.def parsing. 2013-04-05 20:40:50 -07:00
bkaradzic
a703d6129f Added -i 'include dir' argument to shaderc. 2013-04-01 22:52:06 -07:00
bkaradzic
365f2655b3 Added aditional render target color formats. 2013-03-28 22:34:59 -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
d5d81f49a6 Fixing eols. 2013-03-17 16:08:24 -07:00
bkaradzic
c86baa678d Added makefile to rebuild all shaders for all examples. 2013-03-17 11:36:51 -07:00
bkaradzic
687be4f31b Updated glsl-optimizer. 2013-03-17 11:29:03 -07:00
bkaradzic
8c6db9155f Removed comment. 2013-03-09 16:35:04 -08:00
bkaradzic
52a49a2247 GL context sucks. 2013-03-09 16:34:06 -08:00
bkaradzic
b01a1774c9 Added coverage for multiple init/shutdown. 2013-03-09 16:12:08 -08:00
bkaradzic
e758f12b22 Fixed GCC warning. 2013-03-02 21:38:18 -08:00
bkaradzic
435b83f1ac Added texture update batching. Added rect packing. 2013-03-02 21:35:09 -08:00
Kevin Lin
dcc2bf250c stable window resizing
Updated frame calculation and position anchoring in WM_SIZING for
stability.
2013-02-27 02:13:43 -08:00
bkaradzic
316053bd9b Added 09-hdr screenshot. 2013-02-26 21:38:32 -08:00
bkaradzic
35da923722 Removed debug code. 2013-02-26 21:33:19 -08:00
bkaradzic
b0e72319c4 Fixed GCC Linux warnings. 2013-02-26 21:31:47 -08:00
bkaradzic
9f667c3b12 Added example 09-hdr. 2013-02-26 21:24:16 -08:00
bkaradzic
5fe1132b1c Cleanup. 2013-02-23 20:43:31 -08:00
bkaradzic
e0eca362ad Fixed DX9 lack of non-normalized UINT16 vertex decl type. 2013-02-23 19:02:51 -08: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
cc69b20e14 Fixed 'unexpected EOL' when building shaders. Added error message for missing shader entry point. 2013-02-14 17:27:10 -08:00
bkaradzic
a51144691b Enabled extra warnings for MSVC. 2013-02-12 23:54:32 -08:00
bkaradzic
62d646c522 Fixed memory leak in 07-callback. 2013-02-10 22:48:13 -08:00
Garett Bass
2e79b64353 Added rudimentary event handling
Added rudimentary event handling
2013-02-03 13:33:25 -08:00
bkaradzic
1e459d23c3 Fixed resize event. 2013-02-02 21:07:06 -08:00
bkaradzic
f78a18c9b7 Fixed resource leaks in examples. 2013-01-28 22:08:16 -08:00
bkaradzic
cedfee113d Fixed geometryc arguments. 2013-01-24 22:22:04 -08:00
bkaradzic
d5f7f243d5 Added support for X11 keyboard modifiers. 2013-01-20 20:44:33 -08:00
bkaradzic
f829e38654 Undo screenshot removal. 2013-01-20 12:53:40 -08:00
bkaradzic
116efe21b0 Rebuilt shaders. 2013-01-20 12:50:59 -08:00
bkaradzic
c26f8f4718 Added support for LATC/3DC texture compression. 2013-01-20 12:47:29 -08:00
bkaradzic
6eed7bdccb Post initial size event. 2013-01-19 12:38:30 -08:00
bkaradzic
a664aef521 Fixed resize event spamming. 2013-01-19 12:11:24 -08:00
bkaradzic
f513da8b67 Added mouse lock. 2013-01-19 00:22:25 -08:00
bkaradzic
165e98c60b WIP key/mouse support. 2013-01-18 21:12:04 -08:00
bkaradzic
91446e05a4 WIP key&mouse support. 2013-01-17 23:22:38 -08:00
bkaradzic
a2057d65aa WIP X11 key/mouse support. 2013-01-17 22:38:13 -08:00
bkaradzic
c3667bad05 WIP support for key/mouse events in examples. 2013-01-16 22:44:51 -08:00
Garett Bass
2bbcb92109 Added OSX entry point and OpenGL context
Added OSX entry point and OpenGL context
2013-01-15 20:37:07 -08:00
bkaradzic
b77df356c1 Separated GL context code. 2013-01-13 18:39:25 -08:00
bkaradzic
174524dde4 Moved x11 window creation into examples/common. 2013-01-13 15:35:06 -08:00
bkaradzic
b9e9fb77cc Added dummy entry poll for all platforms. 2013-01-13 11:20:56 -08:00
bkaradzic
fec7dcdee3 Added missing file. 2013-01-13 10:59:42 -08:00
bkaradzic
43ce51b8ec Updated year in copyright notice. 2013-01-13 10:57:24 -08:00
bkaradzic
d6e4a57cf2 Moving window creation to examples/common. 2013-01-13 10:47:30 -08:00
bkaradzic
9e562eed97 Added GL vertex array object support. 2013-01-12 19:13:51 -08:00
bkaradzic
3a251fbc02 Added temp path for examples. 2013-01-12 14:25:27 -08:00
bkaradzic
523572d400 Fixed DX11 texture initialization. 2013-01-07 22:01:07 -08:00
bkaradzic
7ec5de1ad1 Added texture update example. 2013-01-06 17:53:45 -08:00
bkaradzic
b52cc77a14 Reorganized opcode type and location bits in constant buffer opcode. 2013-01-05 22:34:31 -08:00
bkaradzic
6f3cc509e4 Fixed tool memory leak. 2013-01-03 23:41:27 -08:00
bkaradzic
150d02e756 Removed unused code. 2013-01-02 21:59:06 -08:00
bkaradzic
e21e840001 Cleanup. 2013-01-01 13:19:10 -08:00
bkaradzic
21e78cf7b0 Jiggling bits until avi writer unbreaks. 2012-12-31 23:11:28 -08:00
bkaradzic
58c0d54f59 Moved AviWriter into separate file. 2012-12-31 19:10:31 -08:00
bkaradzic
446686b48f Added vertex pack/unpack support. 2012-12-31 18:48:52 -08:00
bkaradzic
d4cd0ea4fa Added 07-callback example. 2012-12-30 20:52:47 -08:00
bkaradzic
1ee4352959 Added missing data. 2012-12-28 17:21:24 -08:00
bkaradzic
c2eda31fca Fixed warnings. 2012-12-28 17:20:28 -08:00
bkaradzic
1bc2ec8015 Initial version of geometry compiler. 2012-12-28 17:09:34 -08:00
bkaradzic
7e08c684ad Changed include guard to make OSX happy (thanks @gtbass). 2012-12-10 19:15:56 -08:00
bkaradzic
70fd65501e Manually integrated @gtbass OSX changes. 2012-12-09 15:07:01 -08:00
bkaradzic
5b21e87aff Added screenshots. 2012-12-02 20:49:04 -08:00
bkaradzic
53fb5773a6 Fixed Linux build. 2012-11-25 19:21:15 -08:00
bkaradzic
a3b0dde24b Fixes. Added vsh output/fsh input hash matching. 2012-11-25 18:24:50 -08:00
Branimir Karadzic
4614bc1106 Fixed Linux build. 2012-11-11 13:12:16 -08:00
bkaradzic
e3a31a2efc Added stencil support. 2012-11-10 19:59:23 -08:00
Branimir Karadzic
20fdda0659 Handle all enums in switch. 2012-11-03 21:29:41 -07:00
Branimir Karadzic
f9424d259a Fixed Linux build. 2012-10-27 23:59:44 -07:00
bkaradzic
caeecc72ce Removed test code. 2012-10-27 21:39:43 -07:00
bkaradzic
7accea7b5d Added texture loading example. 2012-10-27 21:34:41 -07:00
Branimir Karadzic
405b8559b3 Added 16K stack for emscripten loop fiber. 2012-10-22 20:23:04 -07:00
Branimir Karadzic
4bc42d9f97 Setup emscripten canvas. 2012-10-22 19:39:59 -07:00
bkaradzic
d4c7545b1e Added support for GLES3. 2012-10-13 22:21:02 -07:00
bkaradzic
f5295b951d Added instancing example. 2012-10-08 23:24:10 -07:00
bkaradzic
772c671752 Merge branch 'master' of github.com:bkaradzic/bgfx 2012-10-07 21:04:19 -07:00
bkaradzic
6ad62e9095 Fixed EOLs. 2012-10-07 21:04:03 -07:00
Branimir Karadzic
8c757cb16d Fixed unused variable errors. 2012-10-07 21:01:35 -07:00
bkaradzic
cfac3feb85 Added more examples. 2012-10-07 20:41:18 -07:00
Branimir Karadzic
f1597ee25c Fixed Linux build. 2012-09-16 17:59:21 -07:00
bkaradzic
1621cc851a Added examples. 2012-09-16 17:36:08 -07:00
bkaradzic
a134ea9d1a Linux project fixes. 2012-06-02 12:44:37 -07:00
bkaradzic
d9a08e3f81 Added OpenGL support for Windows build. Added Linux support (Thanks @MatthewEndsley for X window and GLX code). Fixed uniform size for D3D9. 2012-05-29 18:24:55 -07:00
bkaradzic
58a4549dce Updated example. 2012-05-06 16:45:30 -07:00
bkaradzic
911ce4d775 Added fatal error codes and callback. Fixed shutdown. Added helloworld example. 2012-04-14 20:36:17 -07:00