Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
0fe2469957 Improved resource unloading. Make it possible to unload all resource types by partial name at once. Editor unloads unnecessary resources after scene load or clear. Add weak ref check to all resource unloading to avoid shader programs being left without their parent shader. 2013-11-20 22:41:21 +02:00
Yao Wei Tjong 姚伟忠
e3b53f97a1 Moved SDL header include dir to 'Engine' scope as it is being referenced by a few Engine sub-directories and not just Graphics. 2013-11-20 16:15:10 +08:00
Yao Wei Tjong 姚伟忠
f6186456a0 Fix SDK destination installation path for Windows platform.
It appears CMake has automatically prepended "Urho3D" to built-in CMAKE_INSTALL_PREFIX variable, so we don't need to prefix the path one more time. Also in the commits:
- Fix documentation on CMake module search path for Windows platform.
- Unified SDK destination installation for Windows and non-Windows platforms.
- Replace global include directories to SDL and export header to locally scoped include directories.
- Enhance Urho3D.pc generation to also provide additional compiler flags for DEBUG/RELEASE/RELWITHDEBINFO as comments/references.
2013-11-20 15:59:38 +08:00
Lasse Öörni
3c2110b81a Check for compound shape with zero child shapes to prevent Bullet assert. Closes #47. 2013-11-18 17:19:50 +02:00
Yao Wei Tjong 姚伟忠
e83d98f016 Fix Urho3D.pc file for Windows and Raspberry Pi platforms.
Document cross-compiling example using pkg-config for Raspberry Pi platform.
Disable Urho3D.pc file generation for Android and iOS platform.
2013-11-17 21:26:44 +08:00
Lasse Öörni
35b59e897f Allow setting AnimationState bone weights recursively. Added GetAnimationState() to public API of AnimationController. 2013-11-16 15:25:07 +02:00
Yao Wei Tjong 姚伟忠
36620dd819 Avoid hardcoding of include dirs in the Urho3D.pc.in input file.
Also revert decision to use smaller letter case cmake destination directory in previous commit :).
2013-11-16 16:21:13 +08:00
Yao Wei Tjong 姚伟忠
56798dcce9 Fix incorrect include dirs in the Urho3D.pc file.
Also:
- Change the CMake module installation destination to use small letter case.
- Update documentation on pkg-config invocation examples.
2013-11-16 14:49:34 +08:00
Yao Wei Tjong 姚伟忠
d7942132f1 Configure and install Urho3D.pc file for pkg-config tool.
This is useful for Urho3D library user via SDK installation without having CMake installed.
2013-11-15 18:33:51 +08:00
Lasse Öörni
dbb02e5789 Fix template code error. 2013-11-14 17:40:39 +02:00
Lasse Öörni
a2c87c6754 Fixed CompileAllShaders.bat compiling SM2 shaders into SM3 directory. 2013-11-14 17:37:07 +02:00
Lasse Öörni
51c892eff5 Refresh the generated scripting API docs. 2013-11-14 17:32:35 +02:00
Lasse Öörni
460a119e16 Use WeakPtr<RefCounted> consistently for the script WeakHandle type. 2013-11-14 17:31:10 +02:00
Lasse Öörni
ee0e3aa663 Removed the mechanism of binary-serializing resource name hashes instead of resource names. This is to allow correct resource loading from binary scene files on platforms that cannot iterate the resources in the application installation (eg. Android). This also affects networking, downside is increased network payload size when resource attributes are transferred. All binary scenes saved with old Urho versions are also invalidated. 2013-11-14 14:24:03 +02:00
Yao Wei Tjong 姚伟忠
f246126fe4 Update documentation on Using Urho3D library. 2013-11-14 15:10:55 +08:00
Yao Wei Tjong 姚伟忠
596aa3eac6 Fix AngelScriptAPI.h header generation.
- Define int64 and uint64 and redefine the existing type to closer match AngelScript documentation.
- Replace occurances of ?& (any reference) to void*.
2013-11-14 14:25:24 +08:00
Yao Wei Tjong 姚伟忠
889aabbbfe Source the helpers script after changing to project root directory.
So that the main script can be invoked from anywhere.
2013-11-14 12:45:14 +08:00
Yao Wei Tjong 姚伟忠
c96200b53b Fix AngelScript compilation due to a wrong letter case. 2013-11-14 11:36:50 +08:00
Lasse Öörni
3168019a5f Updated to AngelScript 2.28.0. Added dictionary addon from AngelScript SDK. Closes #46. 2013-11-14 00:16:56 +02:00
Yao Wei Tjong 姚伟忠
2ccf009362 Add linked resource to Bin output folder.
So that Eclipse binaries parser sees the executables and creates a corresponding Binaries virtual folder to contain them (easier to Run/Debug executable).
2013-11-13 17:41:09 +08:00
Yao Wei Tjong 姚伟忠
e1c8aa301f Add log file pattern to .gitignore. 2013-11-13 14:37:13 +08:00
Yao Wei Tjong 姚伟忠
657696cec5 Suppress Eclipse link resource overlaps warning during project import. 2013-11-13 12:55:16 +08:00
Lasse Öörni
bb56ee95d2 Added support for DelayedExecute() from free script functions. This allows calling free functions in the same script module as delayed. 2013-11-13 02:11:29 +02:00
Lasse Öörni
2c0c10cdcb Renamed "Example applications" Doxygen page to "Examples". 2013-11-12 01:42:58 +02:00
Lasse Öörni
ee8e8031d2 Rework command line options that need a parameter value to have a space in between. Fixes #44. 2013-11-12 01:33:15 +02:00
Yao Wei Tjong 姚伟忠
c3b95cf81e Eliminate overhead to maintain the pkg file list manually.
Also reorder output sections to be consistent with AngelScript API documentation.
2013-11-11 01:21:56 +08:00
Lasse Öörni
82007cc4f4 Removed the nonintuitive "invisible LOD factor" attribute from AnimatedModel and replaced it with updateInvisible flag similar to ParticleEmitter. This flag must be used for ragdolls or other physically animated objects to ensure that they come into view properly during animation if they previously were outside view. Fixes #40. 2013-11-09 21:26:08 +02:00
Yao Wei Tjong 姚伟忠
fd8ccff7ba Let our tools deal with CRLF instead of us. 2013-11-09 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
529f577e7a Fix index out of bound. 2013-11-09 08:53:08 +08:00
Yao Wei Tjong 姚伟忠
5bda958857 Enhance UpdateDocument.bat/sh script to also update LuaScriptAPI.dox.
Not fully tested UpdateDocument.bat on Windows platform yet.
2013-11-09 07:43:23 +08:00
Yao Wei Tjong 姚伟忠
a27560c719 Enhance ScriptCompiler to also dump API as C Header file.
The C Header file is intended to be 'force included' in the IDE to get content assist / code completion when editing AngelScript file in the C/C++ editor. The output section of DumpAPI() method is reordered slightly to keep the parser happy. This work is inspired by the work done by Vladimir Andri (see https://groups.google.com/forum/#!topic/urho3d/8WOOGAdwlEU).
2013-11-08 12:41:21 +08:00
Lasse Öörni
27d54428d5 Fix the delayed method calls attribute for a deserialized ScriptInstance overwriting a delayed method call that was newly stored in code (eg. inside script object's Start() function) 2013-11-07 22:53:57 +02:00
Lasse Öörni
efaf7d28f0 Merge remote-tracking branch 'remotes/szamq/master' 2013-11-06 21:31:14 +02:00
Yao Wei Tjong 姚伟忠
f5637c6fef Fix a formatting issue. 2013-11-06 23:06:43 +08:00
Yao Wei Tjong 姚伟忠
1b97acc6f3 Minor documentation update for Raspberry Pi cross-compiling build. 2013-11-06 22:53:45 +08:00
Yao Wei Tjong 姚伟忠
79ebb142d7 Use a more concise REGEX to prevent unwanted match. Closes #38. 2013-11-06 16:14:52 +08:00
Paweł Mogiła
1cb217a8ef Expose anisotropic friction to Lua and AngelScript 2013-11-06 01:53:22 +01:00
Paweł Mogiła
3cb9afe865 Added Bullet anisotropic friction to RigidBody 2013-11-06 01:23:44 +01:00
Yao Wei Tjong 姚伟忠
a96a94a4f6 Fix FindUrho3D.cmake module to include back SDL headers as dep.
Install SDL headers for all platforms (not just Android).
2013-11-06 08:04:48 +08:00
Lasse Öörni
a56be53ef4 Allow specifying -DUSE_OPENGL=0 for MinGW. Compiling ShaderCompiler is likely to fail in that case. Closes #36. 2013-11-06 01:27:43 +02:00
Lasse Öörni
719e640c99 Fixed Android file access from within the .apk. 2013-11-05 18:31:08 +02:00
Yao Wei Tjong 姚伟忠
bd3ee3f932 Fix the destination template dir for GCC only.
Android build on Windows platform should also use the same template location installed in the NDK or standalone toolchain.
2013-11-05 17:05:31 +08:00
Yao Wei Tjong 姚伟忠
24c11dda23 Revert "Setup Android template directory for both Windows and non-Windows."
This reverts commit 06f7d73922.
2013-11-05 17:00:43 +08:00
Yao Wei Tjong 姚伟忠
06f7d73922 Setup Android template directory for both Windows and non-Windows. 2013-11-05 16:36:14 +08:00
Yao Wei Tjong 姚伟忠
8a571ae437 Document how to install library and how to find it from installed SDK. 2013-11-05 15:52:37 +08:00
Lasse Öörni
cfa6b135ce Moved Urho3DPlayer class definition to a .h file. Updated documentation to refer to Urho3DPlayer. 2013-11-04 19:07:00 +02:00
Yao Wei Tjong 姚伟忠
768c28139e Change the scripts to use the new player name. 2013-11-04 19:42:08 +08:00
Yao Wei Tjong 姚伟忠
c1480abfb8 Rename Urho3D script host app from "Urho3D" to "Urho3DPlayer". 2013-11-04 19:36:36 +08:00
Yao Wei Tjong 姚伟忠
017891d1e7 Temporary fix to work around Xcode generator bug for target installation. 2013-11-04 12:14:55 +08:00
Yao Wei Tjong 姚伟忠
a93d3fbf7e Add condition to turn off the temporary fix on CMake 2.8.12.
CMake/Xcode v2.8.12 appears to have fixed the iOS auto-linking issue. Tested on Xcode 5.
2013-11-04 10:21:36 +08:00