Commit Graph

9836 Commits

Author SHA1 Message Date
Lasse Öörni
8ea3476479 Bind the backbuffer FBO before cleaning up frame buffers. 2015-04-02 01:53:52 +03:00
Lasse Öörni
474d725c5a Do not recenter mouse during window resize to fix erratic window sizes on Linux. Removed unnecessary input code. Check for external window before recentering mouse in relative mode. 2015-04-02 01:01:49 +03:00
Lasse Öörni
dae17d375c Clean up OpenGL frame buffers when window size changes. 2015-04-02 00:42:45 +03:00
Lasse Öörni
b26b2c470b Fix Text shader non-SDF mode on OpenGL 3. Closes #685. 2015-04-01 21:33:48 +03:00
Lasse Öörni
acfeab71d1 Remove the OSX REQUIRE_CLICK_TO_FOCUS mechanism as it seems to not be necessary, and does not work with the event flushing when not focused. 2015-04-01 20:53:30 +03:00
Yao Wei Tjong 姚伟忠
8ab5ffac52 Add a small chapter on how to setup ccache to work correctly. 2015-04-02 00:06:44 +08:00
Lasse Öörni
821d6bd036 Added missing null checks for StaticSprite2D component. 2015-04-01 15:57:30 +03:00
urho3d-travis-ci
8e1169079b Travis CI: API documentation update at 2015-03-31 21:03:59 UTC.
[ci package]
2015-03-31 21:03:59 +00:00
Lasse Öörni
5c448d6e1d Support DXT1,3,5 on Emscripten. Simplify GL / GLES code path differences in OGLTexture.cpp. 2015-03-31 23:43:55 +03:00
Lasse Öörni
2961166acb Graphics code cleanup. Remove the GraphicsFeatures event, as now the features can not change during runtime. Move all OpenGL extensions checks to CheckFeatureSupport(). Fix an AMD GLSL compilation bug, which caused buggy 4-sample shadows. 2015-03-31 23:06:09 +03:00
Lasse Öörni
b92372264b Ensure that the OpenGL extensions are initialized after context recreation, and a valid VAO exists on GL3, before giving the GPU objects the chance to restore themselves. 2015-03-31 21:51:56 +03:00
Lasse Öörni
2ddb7c9d1a Use GetTempResource() for the inherited XML file when async loading. Generalize resource loading to switch into async mode whenever not in the main thread so that unsafe (main thread -only) functionality is avoided. 2015-03-31 19:04:05 +03:00
Yao Wei Tjong 姚伟忠
38361a2c0f For Travis CI - disable D3D11 CI build jobs for now.
Ubuntu 12.04 LTS does not have up-to-date D3D11 headers. Travis CI is long overdue to upgrade their OS. See https://github.com/travis-ci/travis-ci/issues/2046.
It appears that their new container-based build infrastructure is also runs on Ubuntu 12.04 LTS. So, no choice but to disable thos new CI build jobs for now.
2015-03-31 19:18:10 +08:00
Yao Wei Tjong 姚伟忠
601dfc4603 Enhance the 'rake make' task to utilise all the logical cpu cores.
[ci package]
2015-03-31 17:08:21 +08:00
Yao Wei Tjong 姚伟忠
47b64f0364 For Travis CI - Remove duplicated CI job. 2015-03-30 23:08:11 +08:00
Yao Wei Tjong 姚伟忠
41d9ab29a9 For Travis CI - add CI build jobs for Direct3D 11.
Fix Emscripten build due to earlier faulty fix on MinGW build to support building of PackageTool for both host and target systems.
2015-03-30 23:02:01 +08:00
Yao Wei Tjong 姚伟忠
6125f08716 Fix MinGW build when PackageTool is built for both host and target. 2015-03-30 20:47:13 +08:00
Yao Wei Tjong 姚伟忠
377fd30e9a Minor code cleanup on handling of URHO3D_D3D11 and URHO3D_OPENGL. 2015-03-30 20:22:26 +08:00
Yao Wei Tjong 姚伟忠
02c2b57cea Minor tweaks and fixes for Emscripten build settings. 2015-03-30 18:36:42 +08:00
Lasse Öörni
73b0a8221a Fix illegal use of texture3D on OpenGL 3. Closes #683. 2015-03-25 14:18:33 +02:00
urho3d-travis-ci
769cbcaf86 Travis CI: API documentation update at 2015-03-25 10:15:47 UTC.
[ci package]
2015-03-25 10:15:47 +00:00
Lasse Öörni
5282cda206 Do not show the Is Modal attribute in editor, as if it's enabled, the user can do nothing except dismiss it by ESC. Closes #682. 2015-03-25 12:02:33 +02:00
urho3d-travis-ci
de1b9b2e1a Travis CI: API documentation update at 2015-03-24 21:54:08 UTC.
[ci package]
2015-03-24 21:54:08 +00:00
Lasse Öörni
d06ffe1445 Merge pull request #680 from urho3d/render-refactor
Render refactor
2015-03-24 23:34:39 +02:00
Lasse Öörni
234c57a598 Minor documentation update. [ci rebase] 2015-03-24 18:21:49 +02:00
Lasse Öörni
7666853b3a Revert "Create depth-stencil texture instead of renderbuffer on OpenGL 3 / Intel / Windows to work around a driver bug." as the issue is fixed on the latest Intel driver. There was also a OpenGL 2 corrupted rendering bug related to clip planes on the earlier driver version, which was not fixable.
This reverts commit d99fefa68b.
2015-03-23 20:54:33 +02:00
Chris Friesen
909860635a Fix usage of word 2015-03-22 20:30:05 -05:00
Chris Friesen
8e2b9475a8 Fix spelling 2015-03-22 20:21:53 -05:00
Lasse Öörni
d99fefa68b Create depth-stencil texture instead of renderbuffer on OpenGL 3 / Intel / Windows to work around a driver bug. 2015-03-23 03:06:18 +02:00
Lasse Öörni
64600d5526 Enable GLEW experimental mode only on a 3.2+ context so that OpenGL 2 extensions can be checked strictly. 2015-03-22 19:00:04 +02:00
Lasse Öörni
ac60622d6b Fix WinXP compatibility of kNet's Clock class. 2015-03-22 15:16:54 +02:00
Lasse Öörni
b7f76ea711 Search for DirectX SDK also on OpenGL build to fix build failure on old Visual Studio (2008/2010) if the SDK is not set as a VS default include directory.
Conflicts:
	CMake/Modules/FindDirect3D.cmake
2015-03-22 15:03:00 +02:00
Lasse Öörni
f9d02e7299 Search for DirectX SDK also on OpenGL build to fix build failure on old Visual Studio (2008/2010) if the SDK is not set as a VS default include directory. 2015-03-22 14:51:40 +02:00
Lasse Öörni
596c32345e Force extra screen buffers to RGBA only on OpenGL 2. 2015-03-21 23:38:33 +02:00
Lasse Öörni
b8c7c59eca Configure amount of allowed bones for hardware skinning based on the rendering API. Allow 128 bones on Direct3D 11 & OpenGL 3. Add -mb (maxbones) parameter to AssetImporter & OgreImporter. When using OpenGL 3, allow deferred rendering to use different MRT formats without forcing an RGBA substitute rendertarget. 2015-03-21 23:22:08 +02:00
Lasse Öörni
a363fa2b0e Update documentation related to DirectX SDK and shader compiling. 2015-03-21 13:31:01 +02:00
Lasse Öörni
7989be4ba8 Set D3D11 textures also for the vertex shader to enable vertex texture fetch to work as on OpenGL. 2015-03-21 02:03:40 +02:00
Lasse Öörni
81e6647b60 Clean up OpenGL Graphics class code. Use core functions for instancing on OpenGL 3. Do not enable/disable texture targets on OpenGL 3. Removed the framebuffer aging mechanism; instead framebuffers are cleaned up on context loss (resolution change.) Disable OpenGL constant buffer use by default (from Uniforms.glsl) as they were found to be slower in practice. 2015-03-21 01:56:38 +02:00
Lasse Öörni
7716b4860c Use a reinterpret-cast trick to eliminate code duplication from Graphics::SetVertexBuffers(). Removed D3DCOMPILER_STRIP_PRIVATE_DATA flag as it may be undefined when compiling using the DirectX SDK. 2015-03-20 18:34:31 +02:00
Lasse Öörni
f4dc0bf149 If GL3 context creation fails, retry with GL2. 2015-03-20 12:31:46 +02:00
urho3d-travis-ci
ff91008697 Travis CI: API documentation update at 2015-03-20 00:29:33 UTC.
[ci package]
2015-03-20 00:29:33 +00:00
Lasse Öörni
0e17c34570 Typo fix and minor documentation tweak. 2015-03-20 01:17:05 +02:00
Lasse Öörni
99e49ac3b8 Add an 8-bit timestamp to client controls, which gets incremented on each sent update. Echo this timestamp back in server updates sent to client. Allow to intercept network attribute updates into an event instead of applying them immediately, to facilitate implementing application-level client prediction. Add simulated latency & packet loss parameters to Network. Note that these changes break protocol compatibility with earlier Urho3D releases. 2015-03-20 01:05:11 +02:00
Lasse Öörni
227b2b03dc Fix / simplify GL3 or GL2 detection. 2015-03-19 12:43:22 +02:00
Lasse Öörni
607b173e53 Reinterpret-cast shader parameter source hash values consistently to const void* to avoid potential 64bit build warnings. 2015-03-19 02:01:07 +02:00
Lasse Öörni
cdfb6b77d9 Set shaders before material state to ensure changing the depth bias on OpenGL dirties the camera shader parameter group properly. 2015-03-19 01:25:59 +02:00
Lasse Öörni
bd8f455e15 Minor code formatting. 2015-03-19 00:26:16 +02:00
Lasse Öörni
88b05c738f Remember shader parameter sources inside individual ShaderPrograms to reduce redundant uniform assignments. 2015-03-19 00:05:07 +02:00
Lasse Öörni
42963a7300 Keep track of last bound VBO & UBO to avoid redundant binding. 2015-03-18 23:09:39 +02:00
Lasse Öörni
040b6263f5 Fix crash with null constant buffer slots. 2015-03-18 20:54:21 +02:00