Commit graph

509 commits

Author SHA1 Message Date
bkaradzic
2fdea069ac Added fragment depth caps flag. 2013-12-15 12:30:23 -08:00
bkaradzic
ee8a277774 GLES2: Added GL_EXT_frag_depth support. 2013-12-13 23:06:28 -08:00
bkaradzic
96558381a4 Fixed init/detach shader order that causes crash on Tegra3. 2013-12-13 23:52:35 -08:00
bkaradzic
3cf263ec86 GLES2: Added support for 3D texture extension. Added shader patching to enable extensions. 2013-12-12 22:35:27 -08:00
bkaradzic
1a6300b6c4 Fixed issue#48. Passing bad MSAA value to glRenderbufferStorage. 2013-12-11 21:09:18 -08:00
bkaradzic
492e99e1c3 Android fixed RGBA16F texture format. 2013-12-10 22:18:00 -08:00
bkaradzic
6249e68467 Android default screen resolution. 2013-12-09 20:18:51 -08:00
bkaradzic
11722f17a1 Fixed GCC warning. 2013-12-07 10:26:17 -08:00
bkaradzic
dee588dfba OSX/iOS: Updated to Xcode5. 2013-12-07 10:19:54 -08:00
bkaradzic
4970c175c7 Fixed debug info. 2013-12-08 00:00:30 -08:00
bkaradzic
d595f34c0a Cleanup. 2013-12-07 22:01:55 -08:00
bkaradzic
5b4d4b37fa Fixed GL imports. 2013-12-07 22:01:32 -08:00
bkaradzic
f5f138290e Fixed MSVC warning. 2013-12-02 23:59:03 -08:00
bkaradzic
25002b301d Added vertex attrib half caps. 2013-12-02 19:47:12 -08:00
bkaradzic
9487ab6b5f Fixed GCC warnings. 2013-11-29 22:23:04 -08:00
Dario Manesku
fb780b2f25 Fixing bgfx::weldVertices(). 2013-11-20 05:50:11 +01: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
82194c57ee Updated glext with latest from Khronos. 2013-11-17 14:24:10 -08:00
bkaradzic
304683d839 Fixed DX11. 2013-11-16 10:58:15 -08:00
bkaradzic
fce9692557 Using language compliant header guards. 2013-11-13 21:54:36 -08:00
bkaradzic
08ebd5523d Updated 08-update example. 2013-11-08 22:10:31 -08:00
bkaradzic
d0005a5ff8 Cleanup. 2013-11-08 21:07:35 -08:00
bkaradzic
ec3f5d2369 Added workaround when unpack row length is not supported on GLES2. 2013-11-08 20:53:23 -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
bkaradzic
35a39f6c00 Added vertex welding support. 2013-11-02 23:00:31 -07:00
bkaradzic
9ba51d6ff9 Cleanup. 2013-10-23 21:18:01 -07:00
bkaradzic
cbac476ee1 Removed 64K/indices dynamic index buffer limit. 2013-10-21 22:04:41 -07:00
bkaradzic
9646ecfc9c Removed use of non-portable _WIN32_WINNT macro. 2013-10-21 20:56:23 -07:00
bkaradzic
ce8f1bbf4d Added frame number as result for frame API call. Added number of draw calls as return value for submit and submitMask API calls. 2013-10-21 20:37:02 -07:00
bkaradzic
081939a306 DX9: Fixed mingw debug build. 2013-10-19 23:21:19 -07:00
bkaradzic
ea39b33e87 EGL: Added stencil config. 2013-10-19 22:17:52 -07:00
bkaradzic
a51fd54c23 Fixed permissions. 2013-10-19 15:36:26 -07:00
bkaradzic
dcd0452d82 DX11: Fixed refcount checks on release. 2013-10-18 22:34:23 -07:00
Dario Manesku
176fe0f993 Fixed StencilOp bug. 2013-10-15 05:39:18 +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
5f35341abf Fixed alloc/free mismatch with tinystl::string. 2013-10-06 19:32:35 -07:00
bkaradzic
a863185e57 Added guard for memory tracking. 2013-10-06 11:09:55 -07:00
bkaradzic
46d6ff0b59 Cleanup. 2013-10-05 19:46:57 -07:00
bkaradzic
2639c5f61d Added uniform reference counting. Reorg some header/source implementation. 2013-10-05 18:07:44 -07:00
bkaradzic
749410c6b2 Cleanup. 2013-10-04 23:45:05 -07:00
bkaradzic
e6eaea7591 Fixed GCC warning. 2013-10-03 21:43:36 -07:00
bkaradzic
25917d1cac Fixed shader and program cleanup. 2013-10-03 20:39:55 -07:00
bkaradzic
557c175e61 Delay VertexDecl release until VertexBuffer is released. 2013-10-03 20:36:40 -07:00
bkaradzic
41d5bcfc1b DX11: Fixed assert when running with GPA. 2013-10-02 21:43:09 -07:00
bkaradzic
5b415315dc Cleanup. 2013-10-02 21:20:23 -07:00
bkaradzic
212937602a DX9: fixed cubemap upload. 2013-10-02 21:18:33 -07:00
bkaradzic
2cf5c45224 Fixed NaCl initialization. 2013-09-30 20:09:09 -07:00
bkaradzic
df1dfdc872 Added isValid check function for handles. 2013-09-29 21:33:50 -07:00
bkaradzic
9f2faf8c06 Added predefined uniforms docs. 2013-09-29 10:42:41 -07:00
bkaradzic
d3005380d8 Cleanup. 2013-09-22 22:38:31 -07:00
bkaradzic
ab969f0a1a Enable tinystl by default. 2013-09-22 21:40:17 -07:00
bkaradzic
7c81905ed2 GL: Unbind VAO before using clear quad. 2013-09-21 22:31:00 -07:00
bkaradzic
d1c55b1d09 Cleanup. 2013-09-20 23:19:21 -07:00
bkaradzic
45365db46a Fixed GL memory leaks. 2013-09-20 23:07:14 -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
d3dfd3cafe Fixed ETC1 mod table. 2013-09-16 20:19:08 -07:00
bkaradzic
1c595a6820 Fixed bad offset for ETC2 planar mode decoding. 2013-09-15 20:44:10 -07:00
bkaradzic
f88da8bea4 GL: Fixed ETC1 format override logic. 2013-09-15 16:00:46 -07:00
bkaradzic
eefa378449 GL: Override ETC1 format settings when ETC2 is available. 2013-09-15 14:44:26 -07:00
bkaradzic
528a725387 Added ETC2 decoding. 2013-09-15 14:36:51 -07:00
bkaradzic
666b431b40 Fixed ETC1 block decoding. 2013-09-11 21:12:20 -07:00
bkaradzic
c8fce8d93f DX9: Use D3DCREATE_FPU_PRESERVE as device behavior. 2013-09-09 22:03:36 -07:00
bkaradzic
8b9a98b05f Added different colors for unsupported compressed image fallbacks. 2013-09-09 22:02:36 -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
084c8e8345 Fixed missing PVR3 formats. Fixed decompression checkerboard error color. 2013-09-08 22:16:15 -07:00
bkaradzic
488483a945 Fixed texture update when requested texture format doesn't match internal texture format, and simplified texture creation. 2013-09-08 21:03:03 -07:00
bkaradzic
82256fc34d Merge branch 'master' of github.com:bkaradzic/bgfx 2013-09-05 21:41:52 -07:00
bkaradzic
1aced4d4ec Cleanup. 2013-09-05 21:41:42 -07:00
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