Commit graph

689 commits

Author SHA1 Message Date
bkaradzic
2250a21f85 Added clang analyzer annotation. 2013-09-05 20:23:35 -07:00
bkaradzic
8cdc2a1d15 Added ETC2 and PVRTC2. 2013-09-04 21:42:31 -07:00
bkaradzic
19ce130464 Added PVRTC1 support. 2013-09-03 20:13:07 -07:00
bkaradzic
f540cd827b GLES: Fixed glReadPixels format. Added IMG_shader_binary support. 2013-09-02 19:50:18 -07:00
bkaradzic
1471a37366 Added other supported formats to KTX parser. 2013-09-02 19:02:26 -07:00
bkaradzic
726a5feea1 Cleanup. 2013-09-02 18:50:04 -07:00
bkaradzic
19dd4020f4 Added ETC1 texture support. Added KTX file format support. 2013-09-02 16:22:53 -07:00
bkaradzic
9537208d2f Removed use of bx::CrtFileWriter inside bgfx. 2013-09-01 14:23:05 -07:00
bkaradzic
2d1725ca96 Check semaphore result after wait. 2013-09-01 14:02:12 -07:00
bkaradzic
1da64571d9 Fixed MinGW build. 2013-08-30 22:31:40 -07:00
bkaradzic
a68969875e Added alignment warning for imageSwizzleBgra8. 2013-08-28 22:55:12 -07:00
bkaradzic
08c38f5101 Added debug check when passing uninitialized vertex decl. 2013-08-27 22:02:43 -07:00
bkaradzic
6c4faed7d5 Cleanup. 2013-08-22 19:58:08 -07:00
bkaradzic
20f24bbe2b Fixed Linux build. 2013-08-22 09:56:41 -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
fe92ee4b9a Updated docs. 2013-08-18 00:00:14 -07:00
bkaradzic
6f7c04a43c Removed fatal error on SetPixelFormat to prevent failure when window is created with SDL and SDL_WINDOW_OPENGL flag. 2013-08-16 22:32:03 -07:00
bkaradzic
c8ac5690ba Cleanup. 2013-08-16 22:29:55 -07:00
bkaradzic
752fa73cec Fixed bad logic for ref/simd path. 2013-08-15 20:14:27 -07:00
bkaradzic
7bdae66027 GL: Fixed memory corruption. 2013-08-15 00:06:10 -07:00
bkaradzic
6d0ebf3103 Cleanup. 2013-08-14 23:26:24 -07:00
bkaradzic
691c6c7f67 Added utility function imageSwizzleBGRA8 to convert RGBA8 image to BGRA8. 2013-08-14 23:19:12 -07:00
bkaradzic
e047232292 WGL: Skip context initialization when window is not set. 2013-08-10 21:26:56 -07:00
bkaradzic
f7fe163f2b Cleanup. 2013-08-06 21:04:28 -07:00
bkaradzic
3aea7306c6 Fixed compiler errors. 2013-08-04 16:56:07 -07:00
bkaradzic
e9504c9a26 Removed using namespace bx. 2013-08-03 22:15:13 -07:00
bkaradzic
44231e9c7f Fixed rect intersect when there is no interesction. 2013-08-01 23:17:27 -07:00
bkaradzic
fe0bbeb0e6 If both view and primitive scissors are set set their intersection as scissor region. 2013-08-01 22:55:26 -07:00
bkaradzic
a09f804ac3 Fixed discard primitive logic. 2013-07-29 19:01:29 -07:00
bkaradzic
c5025b769e GL: Added support for ARB_depth_clamp. 2013-07-28 19:16:35 -07:00
bkaradzic
2d3a408cfb GL: Disable scissor when rendering debug text. 2013-07-27 22:31:53 -07:00
bkaradzic
27c476924e GL: Disabled scissor test when using clear quad. 2013-07-27 21:07:23 -07:00
bkaradzic
bac2073b76 Added support for per primitive scissor. 2013-07-27 15:27:54 -07:00
bkaradzic
a1e226cb5b Cleanup. 2013-07-26 22:55:13 -07:00
bkaradzic
2772c5d209 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-07-25 23:14:09 -07:00
bkaradzic
b1901ae776 Fixed instancing. 2013-07-25 23:13:48 -07:00
Branimir Karadzic
91b14c7bfd GLX: Removed redundant glXMakeCurrent from swap. 2013-07-24 22:28:16 -07:00
Branimir Karadzic
df3c562d47 Linux: Fixed context/init code for Mesa/i915. 2013-07-24 22:22:38 -07:00
bkaradzic
a1dfd1ab0d Added ability to change sampler filter when setting texture. GL/GLES3: Added support for GL_ARB_sampler_objects. 2013-07-24 21:59:59 -07:00
bkaradzic
84eec31043 Enable multithreading on Linux by default. 2013-07-24 20:18:04 -07:00
bkaradzic
2e086e32b3 iOS: Msaa and default back buffer are the same. 2013-07-22 21:35:22 -07:00
bkaradzic
5707309e6f GL: Added default back buffer FBO. 2013-07-22 21:20:43 -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
ab3fc19230 GL: Added support for ARB_seamless_cube_map. 2013-07-21 19:59:42 -07:00
bkaradzic
b6da99b102 GL: Sorted extensions by name. 2013-07-21 19:27:47 -07:00
bkaradzic
41dfddf424 Cleanup. 2013-07-21 15:38:44 -07:00
bkaradzic
9852949a38 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-07-21 14:46:23 -07:00
bkaradzic
bf22ffaae1 iOS stuff. 2013-07-21 14:44:53 -07:00
bkaradzic
376bdf1b74 GL: Detach shaders after linking program. 2013-07-18 00:41:27 -07:00
bkaradzic
ba1bd59488 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-07-15 21:49:27 -07:00
bkaradzic
d95e120430 Fixed warning: comparison is always true due to limited range of data type. 2013-07-15 21:48:55 -07:00
bkaradzic
5c58067213 Cleanup. 2013-07-14 14:41:15 -07:00
bkaradzic
f5edb6cdf4 Added view scissor support. 2013-07-14 14:32:09 -07:00
bkaradzic
59d6f3d8ee iOS WIP. 2013-07-14 13:14:48 -07:00
bkaradzic
fcf71d35f3 Fixed shutdown on OSX. 2013-07-14 10:13:10 -07:00
bkaradzic
d30a5240d7 Fixed crash when decompressing DDS texture. 2013-07-13 23:11:02 -07:00
bkaradzic
1e458f4332 Cleanup. 2013-07-13 16:52:28 -07:00
bkaradzic
43a34ac38f Fixed uninitialized member variables. 2013-07-12 23:28:25 -07:00
bkaradzic
f59ba947cb iOS WIP. 2013-07-12 22:27:46 -07:00
bkaradzic
851ab7fde5 Fixed OSX build. 2013-07-10 23:18:16 -07:00
bkaradzic
da5d390262 Fixed buffer overrun. 2013-06-25 21:09:20 -07:00
bkaradzic
87dfe979a5 Added blend equation support. 2013-06-17 22:11:45 -07:00
bkaradzic
1f4539ec7c Added ability to set marker for profiling events. 2013-06-10 22:41:03 -07:00
bkaradzic
a5c6c0bf5b Added ability to set view name for profiling events. 2013-06-09 15:28:25 -07:00
bkaradzic
493766caa6 Added vsync info to debug display. 2013-06-08 08:25:03 -07:00
bkaradzic
e79102bf0e Added check available memory for instance buffer. 2013-06-03 20:51:06 -07:00
bkaradzic
84a3abd542 Updated README. 2013-05-17 20:03:45 -07:00
bkaradzic
6890764dc1 Fixed Issue #33. 2013-05-16 21:31:59 -07:00
Garett Bass
7e128dfae7 Build fix for OSX gmake. Outstanding issues: gmake binaries fail for unknown reason, XCode projects not picking up bx/include/compat/osx for unknown reason. 2013-05-05 23:10:01 -07:00
bkaradzic
ba6aacace3 Changed API to allow larger alloc checks, and to avoid integer truncation. 2013-05-02 22:16:33 -07:00
bkaradzic
b7c4630ee3 Added function to check both vertex and index transient buffers. 2013-05-01 20:35:43 -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
bb8531d9a2 GLX: Added glXSwapIntervalMESA. 2013-04-27 22:39:15 -07:00
bkaradzic
757bf93b78 DX11: Added device info to debug display. 2013-04-27 18:03:40 -07:00
bkaradzic
80282277a9 DX9: Added device info to debug display. 2013-04-27 16:55:34 -07:00
bkaradzic
a33175cf6a GLX: Fixed vsync. 2013-04-27 15:26:23 -07:00
bkaradzic
2ef508139f GL/GLES: vsync. 2013-04-27 15:16:05 -07:00
bkaradzic
3ed331220f Cleanup. 2013-04-27 13:30:35 -07:00
bkaradzic
8711d3d3a3 GLX: added swap interval. 2013-04-26 23:43:31 -07:00
bkaradzic
6932b256a8 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-04-24 19:15:45 -07:00
bkaradzic
10236da0f4 Fixed warnings. 2013-04-24 19:15:29 -07:00
bkaradzic
e25e93a7e7 Fixed GCC warnings. 2013-04-24 08:44:55 -07:00
bkaradzic
1a0e1699d9 Fixed bug when passing identity to view transform. 2013-04-23 22:40:50 -07:00
bkaradzic
616177ea5f Fixing unused macro. 2013-04-23 19:29:46 -07:00
bkaradzic
0434ccfc10 Added makefile for embedded shaders. 2013-04-22 23:33:32 -07:00
bkaradzic
d8bd7419f9 Added sanity check for transient buffers. 2013-04-21 23:16:34 -07:00
bkaradzic
aa814e9994 Cleanup. 2013-04-21 11:50:45 -07:00
bkaradzic
b94c328604 Fixed bad logic. 2013-04-21 00:43:00 -07: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
247a3004ef GLES2: #ifdef use of GL_TEXTURE_MAX_LEVEL. 2013-04-17 20:46:25 -07:00
bkaradzic
c8c7139fc1 GL: Set max mip level to save memory. 2013-04-17 20:33:44 -07:00
bkaradzic
775ae7f61b GL: fixed GL_DEBUG_* define name. 2013-04-16 09:24:43 -07:00
bkaradzic
d3a526a92b Android build fixes wip. 2013-04-15 23:10:32 -07:00
bkaradzic
6ed7b6fe14 GL: Cleanup. 2013-04-15 21:17:30 -07:00
bkaradzic
7580bbb25e GL: fixed texture filter. Updated debug messages. 2013-04-15 20:59:01 -07:00
bkaradzic
3ed3938fda Cleanup. 2013-04-14 18:20:30 -07:00
bkaradzic
8a6b6133ec Fixed stencil clear when using clear quad. 2013-04-14 18:18:11 -07:00
bkaradzic
5b2a141473 Fixed embedded shaders. 2013-04-14 14:10:32 -07:00
bkaradzic
ab05bc6974 Added BX_PLATFORM_QNX. 2013-04-12 23:43:46 -07:00
bkaradzic
4367082297 DX11: MSAA wip. 2013-04-10 21:42:00 -07:00
bkaradzic
253f313a34 Added wglSwapInterval and ARB_debug_output. Removed BX_UNUSED used for removing warnings when debug messages are compiled out. 2013-04-07 22:12:49 -07:00
bkaradzic
3a62f3cd9f Fixed compile error. 2013-04-07 21:06:02 -07:00
bkaradzic
44c8859bda Fixed MinGW warnings. 2013-04-07 14:08:20 -07:00
bkaradzic
dc8d2c38f3 Fixed MinGW build. 2013-04-07 13:44:10 -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
a26e06929e Fixed issue#26 blend factor logic. 2013-03-30 09:44:13 -07:00
bkaradzic
bcd1dee746 Added missing transparency sort order for blend factor mode. 2013-03-30 08:47:40 -07:00
bkaradzic
5b763a28bb Added blend factor/color blend modes support. 2013-03-29 22:58:50 -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
07dc7b2c5f Fixed GCC warning. 2013-03-24 09:06:43 -07:00
bkaradzic
137700d0a2 GL: Fixed initial value of binary shader hash. 2013-03-23 22:42:16 -07:00
bkaradzic
def008725c Fixed compile error. 2013-03-23 22:07:06 -07:00
bkaradzic
133c0f05db Fixed issue#24. 2013-03-23 17:58:56 -07:00
bkaradzic
b26b292b02 Added check for stride/vertex size. 2013-03-23 16:04:45 -07:00
bkaradzic
9e825e3c77 Added GL clear quad. 2013-03-23 16:02:34 -07:00
bkaradzic
ea49146ea1 Fixing eols. 2013-03-17 16:10:50 -07:00
bkaradzic
24a1a76329 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-03-17 11:15:22 -07:00
bkaradzic
c29dc6de31 Remove glx.h include from renderer_gl.h 2013-03-14 09:13:51 -07:00
questor / inter
1797567840 fixed include file when compiling under linux with BGFX_CONFIG_RENDERER_OPENGL set to 31 2013-03-14 16:03:34 +01:00
bkaradzic
6d2abecfe7 Replaced spaces with tabs. 2013-03-11 22:05:12 -07:00
bkaradzic
5afe69f240 GLX: Removed alpha from backbuffer attributes. Fix for NV issue#23. 2013-03-10 23:19:00 -07:00
bkaradzic
7c91a7d732 Fixed destroy msaa fbo at shutdown. 2013-03-09 16:17:38 -08:00
bkaradzic
8d5b34ffa6 Fixed Linux build. 2013-03-09 15:56:26 -08:00
bkaradzic
ed0055caad Fixed init/shutdown code, so it can be called multiple time from the same app. 2013-03-09 14:57:53 -08:00
bkaradzic
a165353896 Removed fixed function alpha test. 2013-03-08 21:54:08 -08:00
bkaradzic
4c02620a24 Use greater than test for GL version. 2013-03-06 21:33:35 -08:00
bkaradzic
55a87d52da Fixed function prototype name. 2013-03-06 19:36:49 -08:00
bkaradzic
678da1c0b3 GL 3.1 core context cleanup. 2013-03-05 21:37:31 -08:00
bkaradzic
9b5cf3c9a7 GLX 3.1 core profile. 2013-03-04 20:24:02 -08:00
bkaradzic
c8bdf4e950 Added support for GL 3.2 core profile. 2013-03-03 22:30:50 -08:00
bkaradzic
42653612cf Added handling for dirty box. 2013-03-02 23:20:28 -08:00
bkaradzic
435b83f1ac Added texture update batching. Added rect packing. 2013-03-02 21:35:09 -08:00
bkaradzic
0d21a23ba7 GL 3.2 context. 2013-02-26 19:29:51 -08:00
bkaradzic
32c82db697 Merge branch 'master' of github.com:bkaradzic/bgfx 2013-02-26 18:57:41 -08:00
Garett Bass
295059564e Fix MSVC warnings
renderer_d3d11.cpp(615): warning C4389: '==' : signed/unsigned mismatch
renderer_d3d11.cpp(1100): warning C4189: 'deviceCtx' : local variable is
initialized but not referenced
2013-02-26 18:54:03 -08:00
Garett Bass
0f86204daa Fix conflict between sal.h and MinGW STL
Moved #include<windows.h> after #include <string> to avoid conflicts
between sal.h and MinGW STL usage of __in and __out as function
parameters.
2013-02-26 18:17:20 -08:00
bkaradzic
f116ba0e10 Added missing predefined uniforms. Removed default state texture flags. 2013-02-25 20:36:30 -08:00
bkaradzic
1bb60c30f6 GL: Change BC4/5 to RGTC when extension is available. 2013-02-24 17:20:17 -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
074bf5a232 Added dummy window to peek into WGL features. 2013-02-23 00:15:54 -08:00
bkaradzic
6edd2991f3 Removed dxerr.h from DX11 build. 2013-02-22 22:34:55 -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
bbfc599684 Resolved merge conflict. 2013-02-20 22:20:37 -08:00
bkaradzic
195fd6913d Manually integrated @gtbass DX11 vsync change. 2013-02-20 22:18:59 -08:00
bkaradzic
936c2b5737 Added GL backbuffer MSAA. 2013-02-20 22:13:32 -08:00
bkaradzic
c698457907 Fixed initializer order warning. 2013-02-18 22:30:11 -08:00
bkaradzic
553e47fba0 Added OpenGL render target MSAA. 2013-02-18 21:17:29 -08:00
bkaradzic
15eaa09913 GL MSAA WIP. 2013-02-17 20:42:33 -08:00
bkaradzic
74cbfc9c04 GL MSAA WIP. 2013-02-17 18:04:40 -08:00
bkaradzic
b9a0272856 Cleanup. 2013-02-16 14:02:27 -08:00
bkaradzic
5aa0c15dd5 DX11 unified caching sampler state. 2013-02-16 13:52:35 -08:00
bkaradzic
c11d434681 Removed debug code. 2013-02-14 21:44:18 -08:00
bkaradzic
8a499e69c0 Fixed BC4/BC5 LockRect memory corruption. 2013-02-14 21:43:27 -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
8511cefe54 Fixed DX9 debug output warnings. 2013-02-13 22:28:16 -08:00
bkaradzic
a51144691b Enabled extra warnings for MSVC. 2013-02-12 23:54:32 -08:00
Garett Bass
49e7fc4f02 STL error fix for MinGW
When namespace std is using namespace tr1, the MinGW STL generates a
compile error due to an ambiguity between the std::__detail and the
std::tr1::__detail namespaces (internal to the implementation).  By
changing stl to use both std and std::tr1, the std namespace remains
unchanged and the ambiguity is avoided.
2013-02-12 22:36:50 -08:00
bkaradzic
d6cb01f72d Fixed sampler state ref leak. 2013-02-10 18:12:52 -08:00
bkaradzic
d91c0f2c69 Moved GL_RGBA16*. 2013-02-03 12:23:48 -08:00
bkaradzic
8f155985b6 Fixed GL_ARB_instanced_arrays on MESA. 2013-02-03 12:17:33 -08:00
bkaradzic
68af253169 Added warning when passing zero as framebuffer/rendertarget resolution. 2013-01-29 19:23:56 -08:00
bkaradzic
655dd6f7d9 Queue shutdown begin one frame earlier. 2013-01-27 22:43:11 -08:00
bkaradzic
e1f5fafc2c Added resource leak report at shutdown. 2013-01-27 21:52:29 -08:00
bkaradzic
4dc9be09d3 Fixed RGBA16F DDS loading. 2013-01-26 23:00:35 -08:00
bkaradzic
e369e75806 Remove debug code. 2013-01-23 23:47:33 -08:00
bkaradzic
3a7090684a Fixed bug caused by mixing GLES and GL texture extensions. 2013-01-23 23:42:38 -08:00
bkaradzic
800226545b Added RGTC extension. 2013-01-22 20:34:08 -08:00
bkaradzic
f0b80b6d09 Fixed bpp. 2013-01-22 20:04:02 -08:00
bkaradzic
6146f08183 Replaced set with unordered_set. 2013-01-22 19:56:40 -08:00
bkaradzic
37d720abd4 Remove debug code. 2013-01-21 23:38:04 -08:00
bkaradzic
e866a7b2e3 Fixed VAO cache. 2013-01-21 23:36:47 -08:00
bkaradzic
b1cb4de638 Cleanup. 2013-01-21 21:49:42 -08:00
bkaradzic
58a1d91ea3 Create capture surface only on request. 2013-01-21 21:40:54 -08:00
bkaradzic
4dd4065cbc Fixed compile error. 2013-01-20 17:26:17 -08:00
bkaradzic
c26f8f4718 Added support for LATC/3DC texture compression. 2013-01-20 12:47:29 -08:00
bkaradzic
7aa2c8163f Warn and early out on out of handles condition. 2013-01-19 10:11:42 -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
4412f0f1d0 Fixed compile error. 2013-01-14 20:10:07 -08:00
bkaradzic
4779be3527 Fixed bad internal texture format when DXT is not supported. 2013-01-13 23:14:13 -08:00
bkaradzic
de8465ce6d Added EGL resize. 2013-01-13 22:13:49 -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
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
59058e7200 Added OES suffix to vao functions. 2013-01-12 22:14:42 -08:00
bkaradzic
9e562eed97 Added GL vertex array object support. 2013-01-12 19:13:51 -08:00
bkaradzic
b02f87acc0 Fixed glXCreateContext crash due to use of freed memory. 2013-01-10 23:01:33 -08:00
bkaradzic
81a712067d Added vertex stream conversion helper function. 2013-01-09 21:31:47 -08:00
bkaradzic
3d12a8cd84 Fixed GLX initialization. 2013-01-08 20:57:15 -08:00
bkaradzic
16a42017c0 Removed unused variable. 2013-01-07 23:12:06 -08:00
bkaradzic
4eace601ec Implemented DX11 capture. 2013-01-07 23:10:15 -08:00
bkaradzic
e85afa6891 Fixed refcount expected value. 2013-01-07 22:38:40 -08:00
bkaradzic
523572d400 Fixed DX11 texture initialization. 2013-01-07 22:01:07 -08:00
bkaradzic
97bcef11d9 Create GL2.1 context on Linux before trying to create GL3.0. 2013-01-06 21:50:55 -08:00
bkaradzic
b889e78841 Fixed bits per pixel for RGBA16 format. 2013-01-06 18:10:45 -08:00
bkaradzic
7ec5de1ad1 Added texture update example. 2013-01-06 17:53:45 -08:00
bkaradzic
637ab129d3 Wrapped validation code for debug build only. 2013-01-06 12:42:50 -08:00
bkaradzic
79f5f23b79 Cleanup of texture swizzle and BGRA format handling. 2013-01-06 12:39:18 -08:00
bkaradzic
b52cc77a14 Reorganized opcode type and location bits in constant buffer opcode. 2013-01-05 22:34:31 -08:00
bkaradzic
00e5de828e Check glGetString for glErrors. 2013-01-05 15:24:05 -08:00
bkaradzic
96199abe81 Use TextureInfo for caclTextureSize. 2013-01-05 14:33:05 -08:00
bkaradzic
0af002d05f Added texture format helper functions. 2013-01-04 23:52:37 -08:00
bkaradzic
6f3cc509e4 Fixed tool memory leak. 2013-01-03 23:41:27 -08:00
bkaradzic
78cb2bb14a Better error handling for createUniform. 2013-01-02 21:55:19 -08:00
bkaradzic
5023791028 Fixed missing attribute name. 2013-01-01 23:27:24 -08:00
bkaradzic
73c8f54344 Fixed getRendererType return value for null renderer. 2013-01-01 19:18:29 -08:00
bkaradzic
e21e840001 Cleanup. 2013-01-01 13:19:10 -08:00
bkaradzic
fd35b10df6 Fixed warnings. 2012-12-31 20:52:48 -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
ff41632999 Fixed GL renderer for Intel SandyBridge. 2012-12-29 13:46:25 -08:00
bkaradzic
1bc2ec8015 Initial version of geometry compiler. 2012-12-28 17:09:34 -08:00
bkaradzic
9473fb1ffd Fixed eol. 2012-12-26 22:52:10 -08:00
bkaradzic
d16b930a39 GL: Anisotropic texture. 2012-12-09 19:20:32 -08:00
bkaradzic
cae8789603 Fixed DX11 texture filtering. Added anisotropic texture flag. 2012-12-09 18:51:55 -08:00
bkaradzic
0ebfe75db3 Added PNaCl build support. 2012-12-08 15:24:51 -08:00
bkaradzic
11a05e8cd7 Cleanup fatal error enum. 2012-12-08 14:30:41 -08:00
bkaradzic
6c6efd274e Changed thread init function. 2012-12-04 20:07:14 -08:00
bkaradzic
aaa5a73917 Cleanup. 2012-12-03 21:18:26 -08:00
bkaradzic
b4d29b0afa Change default renderer for Win8 to DX11. 2012-12-03 20:27:32 -08:00
bkaradzic
88c07c3061 Switched platform specific thread creation code to bx::Thread. 2012-12-02 18:29:28 -08:00
bkaradzic
b2bde26fed Removed s_primNumVerts. 2012-11-25 22:32:27 -08:00
bkaradzic
e3b0a82f0d Cleanup. 2012-11-25 22:14:47 -08:00
bkaradzic
12fe3f684e Changed check to fatal on failure to create shaders. 2012-11-25 19:40:53 -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
bkaradzic
3df2825243 Added R5G6R5 texture format. Added VAO. 2012-11-08 23:27:11 -08:00
bkaradzic
bbb0139b13 Removed unused code. 2012-11-08 20:46:08 -08:00
bkaradzic
ebd738ae8e Unified code path for ARB_get_program_binary and OES_get_program_binary. 2012-11-08 20:29:58 -08:00
bkaradzic
21f5d0c008 Print GLSL version. 2012-11-06 23:01:19 -08:00
bkaradzic
2f370a6f06 Added support for GL_ANGLE_instanced_arrays. 2012-11-05 23:09:17 -08:00
bkaradzic
695fc7fd5f Fixed GLES2 build. 2012-11-03 22:52:16 -07:00
bkaradzic
ff656de290 Fixed update texture. 2012-11-03 21:36:17 -07:00
bkaradzic
9e681bb2ed Fixed vertex decl attribute size calculation. 2012-11-03 13:12:26 -07:00
bkaradzic
b2f273d934 Added sc sampler macros. 2012-10-27 21:58:58 -07:00
bkaradzic
7accea7b5d Added texture loading example. 2012-10-27 21:34:41 -07:00
bkaradzic
7bdcb903d9 Merge branch 'master' of github.com:bkaradzic/bgfx 2012-10-22 19:46:42 -07:00
Branimir Karadzic
4bc42d9f97 Setup emscripten canvas. 2012-10-22 19:39:59 -07:00
bkaradzic
e82b998bc2 Merge branch 'master' of github.com:bkaradzic/bgfx 2012-10-21 22:10:41 -07:00
Branimir Karadzic
b0075aa06c Added emscripten platform. 2012-10-21 22:09:14 -07:00
bkaradzic
c5fdfc27a2 Added submit depth value for sorting. 2012-10-14 15:02:38 -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
cfac3feb85 Added more examples. 2012-10-07 20:41:18 -07:00
bkaradzic
1621cc851a Added examples. 2012-09-16 17:36:08 -07:00
bkaradzic
b505078b38 Unified glsl and hlsl shaders. 2012-08-28 22:59:48 -07:00
bkaradzic
28a73924b2 Texture update work. 2012-08-19 18:50:23 -07:00
bkaradzic
2b1e6790fa Free up texture data when using renderer_null. 2012-08-12 22:08:18 -07:00
bkaradzic
b86fb4cb56 Added texture update. 2012-08-12 21:02:11 -07:00
bkaradzic
8a8b958d1f Bug fixes. 2012-08-09 22:06:22 -07:00
bkaradzic
38b75c9470 Removed srcalphasat from dst blend mode. 2012-08-07 22:25:25 -07:00
bkaradzic
3bb48b4ab2 Added ref counting for shaders used by material. 2012-08-05 20:38:17 -07:00
bkaradzic
45a85d438c DX11 wip. 2012-08-05 14:51:49 -07:00
bkaradzic
7adf1f6dc2 DX11 stuff wip. 2012-07-29 13:50:23 -07:00
bkaradzic
a30a7d4346 Removed generated files from premake project. 2012-07-25 20:37:47 -07:00
bkaradzic
2833ff1c14 GL meminfo for NV. 2012-07-24 22:59:18 -07:00
bkaradzic
b1c4c4bbb0 Added GL memory info. 2012-07-24 21:54:19 -07:00
bkaradzic
9cc6d63e6f Fixed invalid alpha blend mode. 2012-07-23 22:42:51 -07:00
bkaradzic
cb024842b0 Clean DX11 shutdown. 2012-07-23 22:29:20 -07:00
bkaradzic
971d07e736 Rebuild GLSL debug font shader. 2012-07-23 20:55:27 -07:00
bkaradzic
0011a5c7ec Cleanup. 2012-07-22 21:11:59 -07:00
bkaradzic
09aa9a38c1 DX11 renderer wip. 2012-07-22 21:08:58 -07:00
bkaradzic
98ebe1f076 Added DX11 renderer stub. 2012-07-08 19:10:07 -07:00
bkaradzic
60d2993808 Fixed mingw compile errors. 2012-07-08 17:59:19 -07:00
bkaradzic
295f5166f4 Added stub functions for instancing when it's not supported. 2012-07-08 12:28:38 -07:00
bkaradzic
1e7b94e82a Adding geometry instancing support. 2012-07-07 23:22:52 -07:00
bkaradzic
3e5434b720 Fixed line endings. 2012-07-04 22:48:35 -07:00
bkaradzic
92b4a902da Release everyting on shutdown. 2012-07-04 17:37:12 -07:00
bkaradzic
be7600e560 Fixed unused variables. 2012-07-02 20:53:12 -07:00
Matthew Endsley
382feb1795 updating to cleaning compile in mingw with -Wall/-Wextra 2012-07-02 12:07:42 -07:00
Matthew Endsley
d77f5e5c1a updating to cleanly compile with -Wall and -Wextra 2012-07-02 12:07:27 -07:00
bkaradzic
37c88fb749 Toggle window frame on F11, Alt-Enter. 2012-06-29 20:10:10 -07:00
Matthew Endsley
dec03774b7 updating tinystl allocator usage 2012-06-29 19:58:40 -07:00
bkaradzic
d8c1ddae83 Added tinystl support. 2012-06-27 20:49:45 -07:00
bkaradzic
1b0f2b6cbc Cleanup. 2012-06-26 22:37:08 -07:00
bkaradzic
2b607e0f8f Fixed texture flags shifts. Added GL GPU timing. 2012-06-26 19:01:10 -07:00
bkaradzic
2a918ab4e0 Added IOS/OSX defines to shaderc. 2012-06-25 18:50:59 -07:00
bkaradzic
42271092a0 Free dynamic buffers at the end of the frame to avoid overlaps. 2012-06-24 18:25:26 -07:00
bkaradzic
d65c875397 Fixed messed up handles. 2012-06-23 15:13:57 -07:00
bkaradzic
22d8509fe8 Fixed GL screen shot. 2012-06-23 14:38:06 -07:00
bkaradzic
8f3eb01cda Fixed GL state. 2012-06-23 13:12:53 -07:00
bkaradzic
edef345b5a Added dynamic index/vertex buffers. 2012-06-23 11:44:22 -07:00
bkaradzic
981dcc21be Pass texture flags to render target. 2012-06-22 19:44:30 -07:00
bkaradzic
c4d7658fd9 Renamed dynamic vertex/index buffer to transient. 2012-06-20 21:11:19 -07:00
bkaradzic
08dddc5d74 Moved radixsort out of bgfx. 2012-06-19 20:50:07 -07:00
bkaradzic
ed383b0f1b Added support for EGL/GLES2 on Windows. 2012-06-15 22:30:53 -07:00
bkaradzic
440be3caa8 Added iOS/OSX ifdefs. 2012-06-15 21:35:28 -07:00
bkaradzic
80f2deb54a Added wglDeleteContext. 2012-06-12 19:43:27 -07:00
bkaradzic
5383961058 Letter box for frameless window mode. 2012-06-11 19:42:27 -07:00
bkaradzic
956d12e5a8 Fixed GL compressed 3D texture. 2012-06-09 19:42:25 -07:00
bkaradzic
fe1252d260 Support for Cube and Volume textures. 2012-06-09 18:25:50 -07:00
bkaradzic
20e65aee2f Just use the last available MSAA type when higher type is not available. 2012-06-05 22:22:24 -07:00
bkaradzic
e53ff3c2b0 Cleanup. 2012-06-04 19:24:08 -07:00
bkaradzic
7210c270e5 Added fallback for render target color formats. 2012-06-03 22:31:12 -07:00
bkaradzic
8bac68fe7f Fixed MinGW compile errors. 2012-06-02 18:57:44 -07:00
bkaradzic
50a6e41549 Added BGFX_STATE_MSAA to allow non-AA rendering to MSAA surface. 2012-06-02 15:07:35 -07:00
bkaradzic
a134ea9d1a Linux project fixes. 2012-06-02 12:44:37 -07:00
bkaradzic
3375076bea Removed unused GL specs from glext. 2012-06-02 11:19:28 -07:00
bkaradzic
483833f044 Updated readme. 2012-06-02 10:59:47 -07:00
bkaradzic
25d511175b Cleanup. 2012-06-02 00:29:13 -07:00
bkaradzic
a553b28a7f Import sRGB, multisampling and timer GL extensions. 2012-06-01 23:51:51 -07:00
bkaradzic
de78be9ac3 #ifdefed win specific code. 2012-06-01 21:56:20 -07:00
bkaradzic
8190f3dcd8 Added MSAA render target settings. 2012-06-01 19:02:28 -07:00
bkaradzic
63a76ae99d Cleanup. 2012-05-31 22:10:32 -07:00
bkaradzic
a48b3a9ee3 Added support for GL binary shader caching. Added support for gDEBugger. 2012-05-31 19:29:58 -07:00
bkaradzic
b0eea140b3 Fixed use of adapter and device type for all d3d9 calls. 2012-05-30 22:01:16 -07:00
bkaradzic
7e90a27790 Moved settings in config.h file. Added config for PerfHUD device and PIX markers. 2012-05-30 21:53:16 -07:00
bkaradzic
33730efaa0 Removed glFlush. Added D3D adapter debug output. 2012-05-30 19:54:13 -07:00
bkaradzic
1554788aa4 Cleanup. 2012-05-29 23:21:50 -07:00
bkaradzic
1783fe9ce5 Fixed GLES build. 2012-05-29 22:53:49 -07:00
bkaradzic
28904d8c63 Added ARB_get_program_binary extension. 2012-05-29 22:45:04 -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
8199e07fa6 Added BGFX_CONFIG_DEBUG configurable thru compiler options. 2012-05-21 18:53:51 -07:00
bkaradzic
a58537ebd1 Preserve aspect ratio when scaling window. 2012-05-15 22:56:01 -07:00
bkaradzic
39610d656e Lowered min spec shader version to 2.0b. Better shaderc error messages. 2012-05-14 22:31:40 -07:00
bkaradzic
9b132944f5 Fixed constant stomp bug. 2012-05-13 22:40:14 -07:00
bkaradzic
4b8f63607c Added points primitive type. 2012-05-12 22:40:05 -07:00
bkaradzic
82335a6be1 Added more info to fatal messages. 2012-05-10 20:44:02 -07:00
bkaradzic
58a4549dce Updated example. 2012-05-06 16:45:30 -07:00
bkaradzic
7f5e8b2f91 Added min spec checks. 2012-05-02 20:26:17 -07:00
bkaradzic
48c8200ed3 Fixed issue with decompressing DDS. 2012-05-01 20:16:59 -07:00
bkaradzic
fb37505a8a DDS support for 8-bit uncompressed formats. 2012-04-30 22:35:16 -07:00
bkaradzic
d25592f919 Added makedisttex tool for calculating SDF image (using EDTAA3). Added fatal error when D3D9 fails to create render target. 2012-04-29 14:46:23 -07:00
bkaradzic
0ca52a9894 Added NaCl GLES initialization code. 2012-04-15 20:03:41 -07:00
bkaradzic
911ce4d775 Added fatal error codes and callback. Fixed shutdown. Added helloworld example. 2012-04-14 20:36:17 -07:00
Branimir Karadzic
dee3fe5266 Initial commit. 2012-04-03 20:30:07 -07:00