Commit graph

184 commits

Author SHA1 Message Date
bkaradzic
dee588dfba OSX/iOS: Updated to Xcode5. 2013-12-07 10:19:54 -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
fce9692557 Using language compliant header guards. 2013-11-13 21:54:36 -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
cbac476ee1 Removed 64K/indices dynamic index buffer limit. 2013-10-21 22:04:41 -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
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
bkaradzic
f440f160f9 Exposed renderer capabilities. 2013-10-10 18:29:57 -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
557c175e61 Delay VertexDecl release until VertexBuffer is released. 2013-10-03 20:36:40 -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
ab969f0a1a Enable tinystl by default. 2013-09-22 21:40:17 -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
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
19dd4020f4 Added ETC1 texture support. Added KTX file format support. 2013-09-02 16:22:53 -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
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
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
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
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
41dfddf424 Cleanup. 2013-07-21 15:38:44 -07:00
bkaradzic
bf22ffaae1 iOS stuff. 2013-07-21 14:44:53 -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
43a34ac38f Fixed uninitialized member variables. 2013-07-12 23:28:25 -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
ba6aacace3 Changed API to allow larger alloc checks, and to avoid integer truncation. 2013-05-02 22:16:33 -07:00
bkaradzic
0e0fcd22de Removed use of external debug functions. 2013-04-28 12:27:35 -07:00
bkaradzic
1a0e1699d9 Fixed bug when passing identity to view transform. 2013-04-23 22:40:50 -07:00
bkaradzic
dae6768c43 Fixed detection of instanced_array extension. 2013-04-20 23:13:44 -07:00
bkaradzic
767df6c5e6 Android plumbing. 2013-04-18 21:16:09 -07:00
bkaradzic
dc8d2c38f3 Fixed MinGW build. 2013-04-07 13:44:10 -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
eb8ab50281 Made setViewTransform behave the same way as the rest of setView* API. 2013-03-27 21:18:29 -07:00
bkaradzic
9e825e3c77 Added GL clear quad. 2013-03-23 16:02:34 -07: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
4c02620a24 Use greater than test for GL version. 2013-03-06 21:33:35 -08:00
bkaradzic
678da1c0b3 GL 3.1 core context cleanup. 2013-03-05 21:37:31 -08:00
bkaradzic
c8bdf4e950 Added support for GL 3.2 core profile. 2013-03-03 22:30:50 -08:00
bkaradzic
435b83f1ac Added texture update batching. Added rect packing. 2013-03-02 21:35:09 -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
5fe1132b1c Cleanup. 2013-02-23 20:43:31 -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
68af253169 Added warning when passing zero as framebuffer/rendertarget resolution. 2013-01-29 19:23:56 -08:00
bkaradzic
e1f5fafc2c Added resource leak report at shutdown. 2013-01-27 21:52:29 -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
6146f08183 Replaced set with unordered_set. 2013-01-22 19:56:40 -08:00
bkaradzic
7aa2c8163f Warn and early out on out of handles condition. 2013-01-19 10:11:42 -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
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
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
96199abe81 Use TextureInfo for caclTextureSize. 2013-01-05 14:33:05 -08:00
bkaradzic
78cb2bb14a Better error handling for createUniform. 2013-01-02 21:55:19 -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
6c6efd274e Changed thread init function. 2012-12-04 20:07:14 -08:00
bkaradzic
88c07c3061 Switched platform specific thread creation code to bx::Thread. 2012-12-02 18:29:28 -08:00
bkaradzic
a3b0dde24b Fixes. Added vsh output/fsh input hash matching. 2012-11-25 18:24:50 -08:00
bkaradzic
e3a31a2efc Added stencil support. 2012-11-10 19:59:23 -08:00
bkaradzic
ff656de290 Fixed update texture. 2012-11-03 21:36:17 -07:00
bkaradzic
7accea7b5d Added texture loading example. 2012-10-27 21:34:41 -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
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
28a73924b2 Texture update work. 2012-08-19 18:50:23 -07:00
bkaradzic
b86fb4cb56 Added texture update. 2012-08-12 21:02:11 -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