Commit Graph

9869 Commits

Author SHA1 Message Date
aster2013
392efab9d7 Change GetIntensity, make it same to Color::Luma().[ci skip] 2015-02-04 13:26:41 +08:00
aster2013
bfea7a0e3f Use shared ptr to keep instance alive during invoking. 2015-02-04 12:13:11 +08:00
aster2013
a8104ef27c Use command to record add or remove event handler when invoking.
Convert tab to spaces.
2015-02-03 23:57:55 +08:00
aster2013
5882cb9975 Change argument type from String to StringHash. 2015-02-03 23:27:44 +08:00
aster2013
a6b4c78734 Return same LuaFunction object with index and funciton name. 2015-02-03 23:19:34 +08:00
Yao Wei Tjong 姚伟忠
1e7ec258d2 Better CMake error message when compiler not able to handle the flags.
With the precompiled header support now properly enabled for GCC (including all other cross-compiling toolchains based on GCC) and Clang, any incompabitility between the C++ compiler and the compiler flags required by Urho3D will be thrown out earlier at the time when CMake is about to generate the build tree, which is a good thing. Previously user would probably only know this much later when trying to build the project.
2015-02-03 22:38:27 +08:00
Lasse Öörni
d0d400b1a6 Windows.h in lowercase in kNet to fix case-sensitive MinGW cross-compile. 2015-02-03 15:44:31 +02:00
urho3d-travis-ci
40b1871c31 Travis CI: API documentation update at 2015-02-03 12:03:10 UTC.
[ci package]
2015-02-03 12:03:10 +00:00
Lasse Öörni
a2da4d9763 Include kNet memory leak check only on MSVC to fix possible build error. 2015-02-03 13:51:18 +02:00
aster2013
c8ed3759d8 Fix bug.[ci skip] 2015-02-03 19:36:28 +08:00
aster2013
82afdc9c02 Merge branch 'lua-event-handler' 2015-02-03 19:22:30 +08:00
aster2013
10f80cd011 Add LuaScriptEventInvoker in LuaScriptInstance. 2015-02-03 18:29:10 +08:00
aster2013
1782985056 Separate LuaScriptEventInvoker out of LuaScript. 2015-02-03 13:15:32 +08:00
aster2013
73fad1dc04 Fix build error. 2015-02-03 12:53:53 +08:00
Lasse Öörni
4d69285422 Update to kNet master branch latest revision, with Urho's custom flow control re-applied on top. Fixes #645. 2015-02-03 01:56:07 +02:00
Lasse Öörni
8bb3e649e5 Add profiling block for Lua garbage collection. 2015-02-02 23:12:09 +02:00
aster2013
ff91be64ad Fix bug. 2015-02-02 23:54:49 +08:00
aster2013
f5522a07a8 Add LuaScriptEventListener and LuaScriptEventInvoker. 2015-02-02 23:48:44 +08:00
Yao Wei Tjong 姚伟忠
060801abcc Correct MinGW sysroot path for RedHad-based host system.
[ci skip]
2015-02-02 20:42:23 +08:00
urho3d-travis-ci
5adbf2876d Travis CI: API documentation update at 2015-02-02 10:41:03 UTC.
[ci package]
2015-02-02 10:41:03 +00:00
hdunderscore
7000780beb Fixed an error in AngelScript bindings for Octree::GetDrawables (incorrect return type). 2015-02-02 21:30:59 +11:00
hdunderscore
3ec8ecdfcf Merge pull request #648 from friesencr/infinate_package
Fixed a bug in ResourceCache->AddPackageFile(string) that was causing infinite loop. The issue prevents packages loading in Emscripten.
2015-02-02 18:11:35 +11:00
hdunderscore
9a9a79412e Fixed a bug in ResourceCache->AddPackageFile(string) that was causing infinite loop. 2015-02-01 20:22:26 -06:00
Yao Wei Tjong 姚伟忠
365a83bda1 Revert back cmake_generic.bat changes. 2015-02-02 06:51:20 +08:00
Lasse Öörni
c08fa5e94d Calculate a shader parameter hash value to eliminate setting of unnecessary constants/uniforms when rendering with multiple materials that have the same parameters. 2015-02-01 15:20:07 +02:00
Lasse Öörni
2716bcf12e Code cleanup related to the D3D9 shader parameter change. 2015-02-01 13:56:07 +02:00
Lasse Öörni
73bbf3f787 Fix textures left bound in multiple units if the texture type (2D, cubemap) differs on OpenGL. 2015-02-01 13:33:37 +02:00
Lasse Öörni
79e45ba7e3 Reduce cost of shader switching on Direct3D9 by maintaining shader parameter list for each vertex/pixel shader combination similarly to the OpenGL ShaderProgram class. Remove the shadertype parameter from Graphics::HasShaderParameter() as unnecessary. 2015-02-01 13:33:37 +02:00
Yao Wei Tjong 姚伟忠
cfff44873f Bump missed out files. [ci skip]
$ for f in `git grep -l '2008-2014 the Urho3D project'`; do perl -pi -e 's/2008-2014 the Urho3D project/2008-2015 the Urho3D project/g' $f; done
2015-02-01 08:16:05 +08:00
Lasse Öörni
bb2ebf7568 Bump copyright to 2015. 2015-01-31 21:03:53 +02:00
Mike3D
fbc7c06929 Typo 2015-01-31 14:51:08 +01:00
Mike3D
5a7523eddd Urho2D documentation enhancement 2015-01-31 11:23:19 +01:00
Yao Wei Tjong 姚伟忠
88220f4f8a Simplify the variables used in two-phase setups of enable_pch() macro. 2015-01-30 11:46:07 +08:00
Yao Wei Tjong 姚伟忠
f9f13cd3fa Add build script for generating Code::Blocks project on Windows host.
Close #644.
2015-01-30 11:46:06 +08:00
urho3d-travis-ci
c747198101 Travis CI: API documentation update at 2015-01-29 14:56:49 UTC.
[ci package]
2015-01-29 14:56:49 +00:00
aster2013
c11db9fdcd Add SetAlpha in StaticSprite2D to AnimatedSprite2D alpha animation bug.
Add typedef in Vector and HashMap.
2015-01-29 22:45:22 +08:00
Yao Wei Tjong 姚伟忠
64a96090e3 Code and comment clean up. 2015-01-29 20:51:35 +08:00
Yao Wei Tjong 姚伟忠
8e81d3ff36 Use regex replacement to handle path with spaces in between correctly.
Enhance build scripts to handle source tree and build tree with spaces.
Fix PCH generation with incorrect compiler flags caused by -fPIC and -fpic from being added at the same time.
Fix compiler warning on Android platform with PCH enabled on the external main project due to CMake bug in 'VISIBILITY_INLINES_HIDDEN' implementation.
Close #637.
2015-01-29 20:15:13 +08:00
Yao Wei Tjong 姚伟忠
4db362f95c Use the actual dependency list returned by the compiler. 2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
9c61a7673b Add option to exclude individual C++ source file from using PCH.
Clean up enable_pch() macro and minor update on code comments.
2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
51178c4328 Enable PCH for Assimp library with GCC/Clang compilers too.
Simplify to always use force include when enabling the PCH.
2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
e0bab60f46 On MSVC also enable PCH in two phases to cater for generated C++ files. 2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
7ddd46b172 Move GenerateExportHeader module inclusion to Urho3D common module. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
11814c9cc6 Add check so that precompiled header is only included for C++ sources. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
18261e3d2a Use Cmake function to determine whether to add compiler export flags. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
f50ffaff8c Fix precompiling header file for Clang. [ci rebase] 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
8f2ac49cb0 Suppress GCC/Clang warning on pragma once on main file.
Fix precompiling header file on MinGW builds.
2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
fdcd44381a Keep the CMake version less than 2.8.12 happy. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
f719e3a429 Remove explicit inclusion of precompiled header file.
The precompiled header file would be included using compiler flags.
2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
8743413816 Attempt to enable precompiled header support for GCC and Clang. 2015-01-29 16:13:41 +08:00