Commit Graph

10192 Commits

Author SHA1 Message Date
aster2013
a910501027 Add ToDoxHook.lua to generate dox file from tolua++. 2014-02-13 19:49:28 +08:00
Lasse Öörni
f20e4968fc If a node is added to the scene with a zero ID (default), assign an ID. This would happen when constructing a node manually and adding it using AddChild(), instead of using CreateChild(). 2014-02-13 12:08:13 +02:00
Lasse Öörni
6a760116ff Added note on implementing scene logic, and that you should not subclass Node. 2014-02-13 11:43:42 +02:00
Yao Wei Tjong 姚伟忠
a6a19ebadb For Travis CI - make 32&64-bit and android build as mandatory to pass. 2014-02-13 15:11:38 +08:00
Lasse Öörni
e44e3f7652 Only signal work items that have specified or higher priority in WorkQueue::Complete(), to prevent lower priority work item events triggering when they shouldn't (in the middle of render update.) Set explicit max priority in Octree & View items, but leave default priority to the lowest for user items. Removed a static variable from WorkQueue::PurgePool(). 2014-02-12 23:04:48 +02:00
Yao Wei Tjong 姚伟忠
c8a8d15681 For Travis CI - attempt to fix 32-bit CI build. Skip Android SDK. 2014-02-13 00:05:32 +08:00
Lasse Öörni
b496c5a012 Added a square Urho icon (same as the Android icon) to use for the samples on desktop. 2014-02-12 15:19:58 +02:00
Lasse Öörni
705d2411ba Acquire event data for work item completion only when necessary. These are pooled by the Context so it shouldn't hurt performance. 2014-02-12 15:05:26 +02:00
Lasse Öörni
1e3722e54f Merge remote-tracking branch 'remotes/alexparlett/feature/pooled-work-queue' 2014-02-12 14:11:59 +02:00
Alex Parlett
884be1c22d Exposed ability to set the tolerance before the pool will begin erasing items.
Modified the way in which pooled items are tracked to remove a number of O(n) searches.
Modified the check for duplicate items into an assert so its caught in debug but not in release.
2014-02-12 10:47:48 +00:00
OvermindDL1
13e07265db Er, right, C code, no static_cast... 2014-02-12 03:03:22 -07:00
Lasse Öörni
00cf05c2a2 Document what is unsafe in WorkQueue work functions. 2014-02-12 11:58:27 +02:00
OvermindDL1
34fb889906 Added support for the Keyboard Raw value to Urho3D. 2014-02-12 02:56:14 -07:00
OvermindDL1
9f8a1ab977 Tabs to spaces indention changes to match everything else... 2014-02-12 02:48:20 -07:00
OvermindDL1
1ea3e8b0f9 *cough* ignore the duplicate comma... 2014-02-12 02:41:44 -07:00
OvermindDL1
d7f3c9ae66 Added support for raw keyboard keys to all other platforms, passes 0 for ones where there is not a raw code that makes sense, else passes in something sensible. 2014-02-12 02:33:54 -07:00
OvermindDL1
dba4216c86 Changed SDL to support unknown keys and pass them as the unused/raw keysym field as it seems that it used to do...
Will fix Urho3D to read that field and pass it to the Variant event for the systems to process if wanted.
2014-02-12 02:12:25 -07:00
Yao Wei Tjong 姚伟忠
f95328ac0f For Travis CI - speedup CI build for pull requests. 2014-02-12 16:21:38 +08:00
Yao Wei Tjong 姚伟忠
73732f6653 Fix luajit runtime error on 64-bit Mac OS X build. [ci skip] 2014-02-12 14:57:48 +08:00
urho3d-travis-ci
e18f481eea Travis CI: API documentation update at 2014-02-11 20:02:28 UTC.
[ci skip]
2014-02-11 20:02:28 +00:00
Lasse Öörni
fd140ddb32 Minor code reorganization of the HelloGUI example. Removed SubscribeToEvents() as it was only used for 1 event and events were also subscribed to elsewhere. 2014-02-11 21:41:57 +02:00
Lasse Öörni
e0166ce900 Merge remote-tracking branch 'remotes/mike3d/master' 2014-02-11 21:06:20 +02:00
Lasse Öörni
e4008732d1 Merge remote-tracking branch 'remotes/alexparlett/feature/pooled-work-queue' 2014-02-11 20:32:50 +02:00
Yao Wei Tjong 姚伟忠
0c41be144f Use CMake path instead of native path. Closes #188. 2014-02-11 23:53:29 +08:00
aster2013
9def6c0541 Fixed typo. 2014-02-11 23:53:06 +08:00
aster2013
df315fbeb4 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-02-11 23:50:13 +08:00
aster2013
b7990b94da Modify tolua_isnumber and tolua_isstring function to fixed issue #182. 2014-02-11 23:49:20 +08:00
Alex Parlett
e8abdfc366 Added Pool for WorkItem SharedPtrs to save allocation every frame. Its an optional construct to allow the user to create their own pools or not use the pool if they so desire.
Below is the profiling for the Octree and View changes to pooled allocation.

Before:
UpdateDrawables                        35    0.139    0.193    0.135     4.871
SortAndUpdateGeometry          35    0.080    0.135    0.077     2.802

After:
UpdateDrawables                        21    0.082    0.172    0.078     1.735
SortAndUpdateGeometry          21    0.054    0.069    0.052     1.144
2014-02-11 15:46:05 +00:00
Yao Wei Tjong 姚伟忠
a6eb19f5ba For Travis CI - temporary disable 32-bit. Android CI build is OK now! 2014-02-11 23:23:05 +08:00
Yao Wei Tjong 姚伟忠
ca36bf1e17 For Travis CI - change the subshell to bash shell. Pardon our dust. 2014-02-11 23:03:32 +08:00
Yao Wei Tjong 姚伟忠
357019e0f3 For Travis CI - subshell could not export var, so define it elsewhere. 2014-02-11 22:55:19 +08:00
Yao Wei Tjong 姚伟忠
797528b3c8 For Travis CI - complete the last branching with a true command. 2014-02-11 22:07:10 +08:00
Yao Wei Tjong 姚伟忠
18c2418064 For Travis CI - change the sh option from -e to -c. 2014-02-11 21:54:02 +08:00
Yao Wei Tjong 姚伟忠
09742eb18e For Travis CI - another attempt to add more CI build matrix. 2014-02-11 21:50:12 +08:00
Yao Wei Tjong 姚伟忠
d85d24ae82 For Travis CI - attempt to setup 32-bit and Android CI build. 2014-02-11 21:39:56 +08:00
Mike3D
cde67d7391 Fix various order of exposition to lua 2014-02-11 13:53:26 +01:00
Mike3D
a0f42bee35 Added drag and tooltip to sample#2 HelloGUI 2014-02-11 09:49:53 +01:00
Yao Wei Tjong 姚伟忠
327ab9af76 Minor tweak to link lua/luajit tool without Urho3D dependency libs.
These changes should also reduce prerequisite for building 32-bit luaJIT VM (for Android and RASPI) on 64-bit host/build system.
2014-02-11 13:47:36 +08:00
urho3d-travis-ci
e2ea3404d6 Travis CI: API documentation update at 2014-02-11 01:34:00 UTC.
[ci skip]
2014-02-11 01:34:00 +00:00
Lasse Öörni
ffd5b7de5e Fix order of exposing AnimatedModel functions to Lua so that all overloads of SetMorphWeight() & GetMorphWeight() work. Closes #182. 2014-02-11 03:18:06 +02:00
Lasse Öörni
6dd168db5d Bullet rigidbody's inertia tensor does not depend on position, so no need to recalculate it if rigidbody position only is forced to a new value. 2014-02-10 22:50:47 +02:00
Lasse Öörni
ae626c861e Merge remote-tracking branch 'remotes/alexparlett/feature/work-item-refactor' 2014-02-10 21:39:38 +02:00
Mike3D
f254050b69 Added automatic extension when saving material as 2014-02-10 19:19:50 +01:00
Lasse Öörni
2186cb7c49 Better fix for kinematic rigidbodies: let Bullet ask the world transform (as intended) from the scene node instead of us forcing it. You can still force rigidbody position using RigidBody::SetPosition() but it should be unnecessary. 2014-02-10 16:25:31 +02:00
Alex Parlett
51a1e84248 Changed WorkQueue to use a List<SharedPtr<WorkItem> > and ensure that it doesn't contain duplicates.
Changed AddWorkItem to take in a SharedPtr<WorkItem>.
Changed Render functions to use new WorkItem design.
2014-02-10 14:10:19 +00:00
Lasse Öörni
a833141727 Do not force RigidBody's interpolation transform when the body is kinematic to allow velocity estimation to work right for dynamic bodies colliding with the kinematic body. Thanks to Andy51. 2014-02-10 13:56:09 +02:00
urho3d-travis-ci
2c986aa7cb Travis CI: API documentation update at 2014-02-10 06:08:42 UTC.
[ci skip]
2014-02-10 06:08:42 +00:00
Yao Wei Tjong 姚伟忠
4657518ec9 Code cleanup on error handling for ResourceCache. 2014-02-10 13:33:58 +08:00
urho3d-travis-ci
1274627893 Travis CI: API documentation update at 2014-02-10 00:07:21 UTC.
[ci skip]
2014-02-10 00:07:22 +00:00
Yao Wei Tjong 姚伟忠
0973829003 Enhance editor to pop open the console when receiving error events. 2014-02-10 07:49:08 +08:00