Commit Graph

9869 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
4d565aa401 Add new 'package' CMake built-in target for generating binary packages.
This is in preparation for setting up Travis CI build to upload binary packages to a central hosting server.
2014-02-21 15:43:31 +08:00
Yao Wei Tjong 姚伟忠
d3382cbb13 Convert 1.3 lw-tag to annotated tag at the time of its creation. 2014-02-20 21:20:51 +08:00
Lasse Öörni
8337ea6813 Merge pull request #206 from Amadeus-osa/master
Do not crash when cloning components without attributes.
2014-02-20 13:01:58 +02:00
Amadeus
cfd3cdc048 Do not crash when cloning components without attributes. 2014-02-20 10:43:53 +01:00
Lasse Öörni
af11693a35 Use safe form of pointer for the work item in WorkItemCompleted event. 2014-02-19 15:39:52 +02:00
aster2013
9b17bc6328 Remove fullName_ member variance. 2014-02-19 16:40:18 +08:00
aster2013
8fc76e81fd Replace tab with space. 2014-02-19 14:15:04 +08:00
aster2013
9b31d29a54 Add GetFullName in ShaderVariation, make code more clear. 2014-02-19 13:37:39 +08:00
aster2013
dd16f85568 Change the copyright for 2014. 2014-02-19 12:32:08 +08:00
urho3d-travis-ci
07b50c597d Travis CI: API documentation update at 2014-02-19 01:44:03 UTC.
[ci skip]
2014-02-19 01:44:03 +00:00
Yao Wei Tjong 姚伟忠
71458a5eb3 Fix tolua++ binding for Drawable::IsInView().
Expose the method as 'inView' readonly property, similar to how it is being exposed in AngelScript API.
2014-02-19 09:28:46 +08:00
urho3d-travis-ci
83dc9892cf Travis CI: API documentation update at 2014-02-18 15:44:03 UTC.
[ci skip]
2014-02-18 15:44:03 +00:00
Yao Wei Tjong 姚伟忠
5ec3c02025 Revert back the logic to auto generate pkg list. 2014-02-18 23:24:31 +08:00
Lasse Öörni
92611f1249 Avoid string based duplicate detection in ShaderPrecache when possible. 2014-02-18 15:17:22 +02:00
Yao Wei Tjong 姚伟忠
30807ff796 For Travis CI - fix a typo in error handling execution path. [ci skip] 2014-02-18 20:58:38 +08:00
Lasse Öörni
77db4a4743 Removed extra slash from filename, added line break to prints. 2014-02-18 14:01:46 +02:00
Lasse Öörni
e10ef520cd Merge remote-tracking branch 'remotes/mike3d/master' 2014-02-18 12:29:03 +02:00
Lasse Öörni
592f0db8ce Fixed null exception when toggling orthographic camera in UI element selection mode. Updated editor documentation. 2014-02-18 11:52:18 +02:00
Mike3D
4d70e65254 Lua script compiler 2014-02-18 10:20:56 +01:00
Chris Friesen
0ad0ded90b editor orthographic camera & switch to zoom for mousewheel 2014-02-18 01:21:31 -06:00
Yao Wei Tjong 姚伟忠
48eb60fd8e Rename 'magic' module to 'common' module to reflect its purpose better.
The purpose of Urho3D-CMake-common module is to store all the commonly used CMake commands and macros in one place so that they can be reused by other external projects using Urho3D as external library by simply including this module in their own CMakeList.txt.
2014-02-18 12:55:13 +08:00
Yao Wei Tjong 姚伟忠
ea1372e05b Add copyright protection for Travis CI setup. 2014-02-18 12:35:32 +08:00
Lasse Öörni
2c255f7c53 More fixes for outdated documentation. 2014-02-17 23:57:13 +02:00
Lasse Öörni
5a6a11c521 Minor documentation / comment fixes. 2014-02-17 23:43:59 +02:00
Lasse Öörni
0e5d11541f Fix missing root of shader precache file if loading it fails. Reset (clear) XMLFile when loading fails so that no illegal content will be saved when it's programmatically modified and then saved. 2014-02-17 22:56:03 +02:00
Lasse Öörni
cc9e5e1994 Moved to XML based shader precache files. Refactored shader precaching code to its own class. Closes #199. 2014-02-17 22:19:55 +02:00
Yao Wei Tjong 姚伟忠
cb4257a599 For Travis CI - main repo only has amalgamated build option for LuaJIT. 2014-02-17 23:04:00 +08:00
Yao Wei Tjong 姚伟忠
091bad25e4 For Travis CI - clean up the comment lines. alle grün :)
[ci skip]
2014-02-17 22:36:47 +08:00
Yao Wei Tjong 姚伟忠
83a5aae303 Fix Clang-Makefile Debug configuration build detected by OSX-CI.
For Travis CI - consider nothing to commit as OK to proceed to next step.
2014-02-17 21:43:39 +08:00
Lasse Öörni
e922b5d1c5 Merge pull request #201 from Amadeus-osa/master
Fixed ComponentAdded event.
2014-02-17 15:00:13 +02:00
Amadeus
167c68aea0 Fixed ComponentAdded event. 2014-02-17 13:15:02 +01:00
Yao Wei Tjong 姚伟忠
b0623e8965 For Travis CI - set MinGW cross-compiling build as mandatory to pass.
Preparation for OSX-CI build.
2014-02-17 19:44:37 +08:00
Lasse Öörni
21d97420ea Fixed line break in the NinjaSnowWar shader precache list. 2014-02-17 01:09:12 +02:00
Lasse Öörni
fd80972e47 Merge pull request #198 from GKR/master
Fix for vegetation vertex shader variable naming typo (GLSL)
2014-02-17 00:05:43 +02:00
urho3d-travis-ci
4380a9c7cb Travis CI: API documentation update at 2014-02-16 20:36:43 UTC.
[ci skip]
2014-02-16 20:36:43 +00:00
Lasse Öörni
abc6fcd8b8 Shader precaching mechanism. Call Graphics::BeginDumpShaders() or use the engine command line parameter -ds <file> to create a shader dump file of the variations that are loaded during program run, and Graphics::PrecacheShaders() to load the dump file.
Moved GetShader() from Renderer subsystem to Graphics, which is more logical as loading shaders is a low-level operation, while Renderer should be concerned with high-level rendering of 3D scenes. Now eg. UI does not need to depend on Renderer at all.

Simplified internal state of ShaderVariation & ShaderProgram objects, the success of compile/link can be deduced from the presence of a non-null GPU object.

Fixed FILE_READWRITE mode to not clear the file contents, and to handle alternating reads and writes correctly.
2014-02-16 22:23:07 +02:00
Lasse Öörni
c2e6904a6b Reduce kNet worker thread wait time for potentially less network latency. 2014-02-16 22:23:07 +02:00
Yao Wei Tjong 姚伟忠
798eb597b6 Misc. bug fixes detected by CI build for Windows platform.
- Fix finding Urho3D library when only debug version is available.
- Keep the library dependencies in the list as they are, even if that means a same library being listed twice (to fix dynamic library build for Windows platform).
- MinGW cross-compiling toolchain already has PIC flag set by default, so skip setting it one more time (to suppress compiler warnings spam).
2014-02-17 01:57:04 +08:00
urho3d-travis-ci
b93e3a31c5 Travis CI: API documentation update at 2014-02-16 14:39:26 UTC.
[ci skip]
2014-02-16 14:39:26 +00:00
Yao Wei Tjong 姚伟忠
51c749f301 Doxygen uses // comment style. Header file uses /**/ style. Phew. 2014-02-16 22:22:03 +08:00
Gunnar Kriik
f28827d3c9 Fixed vegetation shader vertex shader variable naming typo 2014-02-16 14:46:44 +01:00
urho3d-travis-ci
a1bec9b862 Travis CI: API documentation update at 2014-02-16 13:30:47 UTC.
[ci skip]
2014-02-16 13:30:47 +00:00
Yao Wei Tjong 姚伟忠
887c2ad748 Change comment style so that it also generates valid AngelScriptAPI.h. 2014-02-16 21:15:35 +08:00
urho3d-travis-ci
836831ebe4 Travis CI: API documentation update at 2014-02-16 08:14:40 UTC.
[ci skip]
2014-02-16 08:14:40 +00:00
Yao Wei Tjong 姚伟忠
2fb1dc2edc Mark the deprecated AS API bindings in the documentation.
Also print a warning when it is being used in the script.
2014-02-16 16:02:12 +08:00
Lasse Öörni
230a07e4d0 Fixed Resource::Load() in Lua saving instead of loading. 2014-02-15 21:27:19 +02:00
urho3d-travis-ci
b6d2bee509 Travis CI: API documentation update at 2014-02-15 17:46:33 UTC.
[ci skip]
2014-02-15 17:46:33 +00:00
Lasse Öörni
47836474e2 Variant pointer refactoring. Variant can now hold a weak pointer to a RefCounted object, which is safer, and is returned using GetPtr(). Engine events have been converted to use that mechanism. GetPtr() is also directly available in AngelScript, as well as assigning a RefCounted or derived class handle to a Variant.
Important: when you assign a non-RefCounted object as a void pointer to a Variant, you must now retrieve it with GetVoidPtr() instead.

The legacy methods in AngelScript for obtaining object handles from Variant, ie. GetNode(), GetUIElement() etc. still exist, but are considered deprecated.
2014-02-15 19:22:29 +02:00
Lasse Öörni
691492cf02 Fix AngelScript warning. 2014-02-15 15:15:58 +02:00
aster2013
82c1a7c59c Add UnsubscribeFromEvent function to ScriptObject, rename basic.lua to ToCppHook.lua. 2014-02-15 20:43:51 +08:00