Commit Graph

5243 Commits

Author SHA1 Message Date
Blue, The Magnificent
864a455572 script scoped global variable not needed anymore 2016-03-15 06:47:08 +01:00
Blue, The Magnificent
f3b505ad26 Add binding for global variables getter and setter in angelscript and lua 2016-03-15 06:46:34 +01:00
Blue, The Magnificent
f1864f498a implement application wide global variable 2016-03-15 06:44:52 +01:00
urho3d-travis-ci
23bda782ca Travis CI: API documentation update at 2016-03-14 19:34:55 UTC.
[ci package]

Commit: 18f3204c14

Message: Change textureEdgeOffset to be pixels to work similarly regardless of texture size. Add AngelScript & Lua bindings for it. Change default offset to be 0 to not change existing behavior.
2016-03-14 19:34:55 +00:00
Lasse Öörni
18f3204c14 Change textureEdgeOffset to be pixels to work similarly regardless of texture size. Add AngelScript & Lua bindings for it. Change default offset to be 0 to not change existing behavior. 2016-03-14 21:17:32 +02:00
OvermindDL1
48346b278c Fix Sprite2D edge bleeding via new member variable. 2016-03-14 21:17:32 +02:00
Lasse Öörni
6869970375 Merge pull request #1240 from 1vanK/master
tabs to spaces
2016-03-14 00:11:41 +02:00
Ivan K
5f1f311535 tabs to spaces 2016-03-14 00:12:25 +04:00
Lasse Öörni
01cd737909 Hide tooltip if the target element becomes invisible. Possible fix for #1238. 2016-03-13 14:46:23 +02:00
ssinai1
ff4d5b4125 Fix terrain index data 2016-03-11 22:53:02 +01:00
urho3d-travis-ci
4cf41f1346 Travis CI: API documentation update at 2016-03-10 14:31:49 UTC.
[ci package]

Commit: 1fba0c80de

Message: Document additive animation blending.
2016-03-10 14:31:49 +00:00
Lasse Öörni
33bea5392d Rename AnimationBlendingMode to AnimationBlendMode for brevity and similarity with Graphics class BlendMode. Rename ABM_OVERRIDE to ABM_LERP. Implement weight to additive blending. Serialize blend mode over network for AnimationController. 2016-03-10 15:49:37 +02:00
Lasse Öörni
33d9dafc0c Merge remote-tracking branch '1vanK/master' 2016-03-10 14:42:51 +02:00
Lasse Öörni
aa48f333b3 Only update View3D rendertarget when it's visible in the UI. Closes #1228. 2016-03-09 15:07:23 +02:00
Lasse Öörni
49ce2984fe Generate skinning information if animated model has non-skinned subgeometries. Closes #1227. 2016-03-09 14:14:39 +02:00
Lasse Öörni
2e96545687 Output warning in AssetImporter when model has bones and consists of many submeshes, some of which don't have skinning information. 2016-03-09 00:38:47 +02:00
Ivan K
4e1eb4df74 AniamtionCotrol supports animation blending 2016-03-08 14:02:12 +04:00
Lasse Öörni
21e9ea07f2 Restore stb_image header credits. 2016-03-08 01:32:40 +02:00
Lasse Öörni
970ebe85db Merge remote-tracking branch 'dragonCASTjosh/STB_Update' 2016-03-08 01:31:31 +02:00
Lasse Öörni
6afb1bb164 Remove the uint overloads of Min() & Max() for now as they could lead to AngelScript ambiguous overload errors if the script author is not careful. 2016-03-06 15:30:48 +02:00
Lasse Öörni
d9a295a595 Re-enable the unsigned/signed mismatch warning. Code cleanup. 2016-03-06 15:10:34 +02:00
Lasse Öörni
039542e91c Warning, compile & script binding fixes related to MathDefs.h. Use multiple template parameters where necessary to allow e.g. Min() or Max() with mixed int and unsigned values. Silence repeated warnings in MathDefs.h on MSVC. 2016-03-05 23:47:49 +02:00
TheComet
f8760c8e5a Trig functions are now templated 2016-03-05 22:20:21 +02:00
TheComet
62d8143aa3 Template versions of math functions 2016-03-05 22:20:09 +02:00
Lasse Öörni
2cbff0669d Search for a common root up to the scene root node if necessary, if there seem to be multiple skeleton roots. Allow saving animations also when no geometry. To improve animation save in that case, prepend the output filename to animation filename in any case. Closes #1221. 2016-03-05 21:31:01 +02:00
Ivan K
1eeab3f2db Additive animation blending
Additive animation blending fix

Additive animation blending normalized rotation + bindings
2016-03-05 23:26:40 +04:00
urho3d-travis-ci
d0c35c2eaf Travis CI: API documentation update at 2016-03-05 14:56:06 UTC.
[ci package]

Commit: cf92a49696

Message: Since Variant::GetVectorBuffer() returns a new value copy, it doesn't need to be const. Fixes #1226.
2016-03-05 14:56:06 +00:00
Lasse Öörni
cf92a49696 Since Variant::GetVectorBuffer() returns a new value copy, it doesn't need to be const. Fixes #1226. 2016-03-05 16:37:01 +02:00
Yao Wei Tjong 姚伟忠
64dcd0e41a Do not build Urho3DPlayer when none of the script subsystem is enabled.
Fix #1224.
2016-03-05 21:03:29 +08:00
dragonCASTjosh
405e86db46 Removed Unused STB librarys and added Urho specific changes to STB 2016-03-05 12:27:26 +00:00
Lasse Öörni
6b5b6ab4b3 Document node & UI element tagging. Closes #1176. Fixes in scene model documentation. Tabs to spaces in Scene AngelScript API. 2016-03-05 13:13:50 +02:00
urho3d-travis-ci
3ccc22f63b Travis CI: API documentation update at 2016-03-05 10:56:18 UTC.
[ci package]

Commit: fc1f05f8dc

Message: Add script binding for SpriteSheet2D::SetTexture().
2016-03-05 10:56:18 +00:00
Lasse Öörni
fc1f05f8dc Add script binding for SpriteSheet2D::SetTexture(). 2016-03-05 12:45:14 +02:00
Lasse Öörni
89a1f84fd1 Code & API convention edits. 2016-03-05 12:32:26 +02:00
Lasse Öörni
d8ddc579c0 Squashed commit of the following:
commit a6fb2a3b49b52dfb559956a6dc3b2f59373f8487
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 15:19:38 2016 -0700

    Added a check to make TmxFile2D::SetInfo return false and do nothing if there is already layer data, likely to pretty well corrupt rendering and possible access invalid memory without it in worst-case.

commit a1e5150f993f92ae84a0513718ee2eee7bbbf2f0
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 15:16:34 2016 -0700

    Helps to return success, was planning for more functionality there, but TmxFile and Tilemaps need an overhaul.

commit 39618ce0713db0246a252e8f7ca8c03d39725338
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 13:44:33 2016 -0700

    Forgot a pointer...

commit 1f9e5caa3e888deedb7c3be48cfa3726adaaf4fd
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 13:43:34 2016 -0700

    Removed the .gitignore change, better to build out-of-tree in any case.

commit f56598abdebe33a125769c527495412e759ea532
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 13:31:51 2016 -0700

    Fix TmxFile2D::SetInfo

commit 108b0ccea1f842f676085a43c73613a8ed2bf786
Merge: 4b5d636 75fbe73
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:58:40 2016 -0700

    Added setter for SpriteSheet2D to actually be able to set a texture.  Closes urho3d/Urho3D#1202

commit 4b5d6364d67f26ad7ee38257fa2a6026750a93ff
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:56:27 2016 -0700

    Added setter for SpriteSheet2D to actually be able to set a texture.  Closes urho3d/Urho3D#1202

commit 75fbe730ef0d8fcc9db7b1831b602836e1093d14
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:56:27 2016 -0700

    Added setter for SpriteSheet2D to actually be able to set a texture.

commit 4352d1283b27665a3090145b6608bf724c73add5
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:41:55 2016 -0700

    Some setters for the Tilemap, but stopped, need to rewrite it to properly fix it, *way* too integrated with the TMX foramt for some reason...

commit 23dd624dbc7ed89658c394c9cac13d33c9d2df74
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:25:56 2016 -0700

    Fix gitignore to ignore a build directory

commit bfec381022e57f130b502f8c4877127460e6f351
Merge: 1851f27 281de05
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 11:52:00 2016 -0700

    Merge remote-tracking branch 'upstream/master'

commit 1851f27124b5eca2851771df7d4097f97d8d129d
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Sat Nov 15 00:22:39 2014 -0700

    Revert "Spelling fix:  curent -> current"

    This reverts commit 644eed43e9a61b7fedc01a21fb6a17244a815a51.

commit 644eed43e9a61b7fedc01a21fb6a17244a815a51
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Nov 14 23:43:49 2014 -0700

    Spelling fix:  curent -> current
2016-03-05 12:22:54 +02:00
dragonCASTjosh
5698f9205a Change towards getting STB working on shared 2016-03-04 21:01:59 +00:00
Lasse Öörni
6538f3bb4a Use glReadPixels() workaround to get texture data from rendertargets on GLES. For regular textures this cannot be used. 2016-03-02 18:16:58 +02:00
urho3d-travis-ci
65180c8b80 Travis CI: API documentation update at 2016-03-02 14:23:59 UTC.
[ci package]

Commit: 633a6fa512

Message: Add function to get a per-face image to TextureCube AngelScript API. Similar to GetImage for Texture2D, does not support block compressed formats.
2016-03-02 14:23:59 +00:00
Lasse Öörni
633a6fa512 Add function to get a per-face image to TextureCube AngelScript API. Similar to GetImage for Texture2D, does not support block compressed formats. 2016-03-02 16:14:14 +02:00
dragonCASTjosh
948f99bd6f Merge pull request #3 from urho3d/master
Update from master
2016-03-02 11:40:28 +00:00
Yao Wei Tjong 姚伟忠
3a29bc2f3c Suppress unnecessary debug log entry due to default autoload feature. 2016-03-02 17:46:54 +08:00
dragonCASTjosh
206176eb7a Changes to fix compile errors related to stb_vorbis 2016-02-29 12:59:00 +00:00
Lasse Öörni
84b41355a7 Fix compiling Urho3D without physics. Note that the editor would still be unable to run without physics support compiled in. Closes #1216. 2016-02-29 12:23:50 +02:00
dragonCASTjosh
10a92cd49a changes to CMake to add headers 2016-02-29 00:32:43 +00:00
dragonCASTjosh
f67f35f002 Changes to fix the compile error 2016-02-29 00:23:26 +00:00
dragonCASTjosh
4fb746bfd1 Removed code that no longer is needed (as far as i know) 2016-02-28 23:58:24 +00:00
dragonCASTjosh
103fe32dd1 Now working and Added initial .HDR support 2016-02-28 23:50:21 +00:00
dragonCASTjosh
eea684879b Add define for STB 2016-02-26 11:06:14 +00:00
TheComet
b64f4a7c2e Exposing AnimationTrack class as part of the public API 2016-02-24 22:48:56 +01:00
dragonCASTjosh
6313b6f80e Initial Work (May not work) 2016-02-24 11:46:18 +00:00
Lasse Öörni
8c839265f0 Use camera's frustum for Renderer2D culling always. Closes #1191. 2016-02-24 11:51:09 +02:00
Yao Wei Tjong 姚伟忠
6e0a447ebb Break fix for SDL library build when using Raspbian Jessie.
[ci only: RPI] [skip appveyor]
2016-02-22 23:26:41 +08:00
Lasse Öörni
86adac5ff7 When a 2D rigidbody is parented, make sure the transforms are applied in parent->child order. Also apply the world position also for a static or sleeping rigidbody when it's parented, to make sure the simulation and rendering transforms stay in sync. Fix possible issue with null weakptr during physics 2D update. Closes #1183. 2016-02-21 14:14:16 +02:00
urho3d-travis-ci
c070f76ad8 Travis CI: API documentation update at 2016-02-21 10:22:26 UTC.
[ci package]

Commit: 09e1330f5f

Message: Add Technique::Clone(). Improve Technique / Pass Lua bindings. Closes #1203.
2016-02-21 10:22:27 +00:00
Lasse Öörni
09e1330f5f Add Technique::Clone(). Improve Technique / Pass Lua bindings. Closes #1203. 2016-02-21 12:12:53 +02:00
Yao Wei Tjong 姚伟忠
3582dccabb Partially revert back changes in the FileWatcher class.
The thread needs to be stopped before closing the file watcher on OSX platform to avoid segfault.
Related to e1c5057bee.
2016-02-21 10:31:23 +08:00
Lasse Öörni
4b7307ca2f Always disable use of aligned structs in Bullet API. Closes #1193 and #1134. 2016-02-20 23:18:29 +02:00
Lasse Öörni
281de051a5 Remember to copy shader parameter hash when a material is cloned. Closes #1192. 2016-02-17 19:40:23 +02:00
Lasse Öörni
e1c5057bee Merge remote-tracking branch 'TheComet93/iss1196' 2016-02-17 19:10:26 +02:00
Lasse Öörni
9fa87d54b6 Similar implicit conversion for WeakPtr. 2016-02-15 17:58:35 +02:00
Lasse Öörni
01d98cdf2c Tab to space. Added contributor credit. 2016-02-15 17:46:46 +02:00
Lasse Öörni
67a7c3f2bc Merge remote-tracking branch 'AntonPetrov83/sharedptr-implicit-conversion' 2016-02-15 17:31:24 +02:00
Lasse Öörni
46e434141e Apply & further improve WorldToHeightMap() fix from Lumak. 2016-02-15 17:00:33 +02:00
TheComet
a48f0e57ad fixes #1196 - Filewatcher no longer gets stuck in read() 2016-02-13 01:53:48 +01:00
Антон Петров
a6015e921b Allow implicit conversions of SharedPtr objects. 2016-02-13 01:39:19 +03:00
Lasse Öörni
213be51f92 Fix 2D particle emitter case where it would potentially try to emit more particles than there is space reserved for. Thanks yiown. Closes #1190. 2016-02-11 17:32:35 +02:00
Lasse Öörni
30c9fcc8df Cleanup use of unsigned long from OBJ exporter code, as it's actually different sized on different platforms. 2016-02-10 11:11:23 +02:00
MonkeyFirst
4a9fb69f62 fix obj exporter bugs 2016-02-06 15:57:37 +06:00
Yao Wei Tjong 姚伟忠
b528268d81 Correct copy-paste error on Matrix2 header file.
[ci package]
2016-02-06 00:05:30 +08:00
urho3d-travis-ci
64877df1e3 Travis CI: API documentation update at 2016-02-05 12:05:57 UTC.
[ci package]

Commit: 45572769c6

Message: Merge remote-tracking branch 'TheComet93/matrix2'

# Conflicts:
#	Source/Urho3D/AngelScript/MathAPI.cpp
2016-02-05 12:05:57 +00:00
Lasse Öörni
45572769c6 Merge remote-tracking branch 'TheComet93/matrix2'
# Conflicts:
#	Source/Urho3D/AngelScript/MathAPI.cpp
2016-02-05 13:51:07 +02:00
TheComet
bfa6e3de91 Adding Lua bindings for Vector2::Angle() 2016-02-04 18:45:47 +01:00
TheComet
2281162d7a Adding AngelScript bindings for Vector2::Angle() 2016-02-04 18:44:27 +01:00
TheComet
d38c24d4f2 Wrote Angle() member function for Vector2 class 2016-02-04 18:42:45 +01:00
TheComet
217066baf2 Adding lua bindings for Matrix2 2016-02-04 18:41:38 +01:00
TheComet
a42299202c Adding AngelScript bindings for Matrix2 2016-02-04 18:41:23 +01:00
TheComet
ab2198ecb1 Added Matrix2 class 2016-02-04 17:20:52 +01:00
Yao Wei Tjong 姚伟忠
7c2be809c0 Don't use Clang color diagnostics when building LuaJIT_universal. 2016-02-03 15:40:40 +08:00
Yao Wei Tjong 姚伟忠
911d26674a Fix luajit (interpreter) target dependency.
It should just depend on LuaJIT_universal custom target instead of LuaJIT target when the custom target is available. This ensures parallel build always ends up in a deterministic/desired order. The issue was picked up thanks to Travis CI again.
[ci only: OSX] [skip appveyor]
2016-02-03 11:48:11 +08:00
Yao Wei Tjong 姚伟忠
1e311acb6a Speed up build for Debug configuration by building only active arch. 2016-02-02 22:19:57 +08:00
Yao Wei Tjong 姚伟忠
17026be8eb Expose RenderPathCommand and RenderTargetInfo as Urho public API. 2016-01-31 09:06:38 +08:00
Lasse Öörni
f651101a28 Merge master AnimatedModel bone bounding boxes from the other AnimatedModels in the same node to prevent culling errors. Closes #1179. 2016-01-30 15:30:35 +02:00
urho3d-travis-ci
dc91be4dd1 Travis CI: API documentation update at 2016-01-30 10:43:25 UTC.
[ci package]

Commit: dcdcccd541

Message: Added missing AS bindings for Quaternion
2016-01-30 10:43:25 +00:00
Mike3D
dcdcccd541 Added missing AS bindings for Quaternion 2016-01-30 11:25:26 +01:00
Lasse Öörni
6b775d7537 Refactor rendertarget update handling, to ensure both always-update and manual-update respect the order of backbuffer views rendering first. Closes #1171. 2016-01-27 20:45:30 +02:00
Lasse Öörni
e92a5c1c5f Merge remote-tracking branch 'TheComet93/c89_sdl_msvc2012_fix' 2016-01-26 17:01:30 +02:00
urho3d-travis-ci
1c72d5b10f Travis CI: API documentation update at 2016-01-26 14:15:06 UTC.
[ci package]

Commit: c4f6f315ff

Message: Travis CI: bump copyright to 2016.
[ccache clear]
2016-01-26 14:15:06 +00:00
urho3d-travis-ci
c4f6f315ff Travis CI: bump copyright to 2016.
[ccache clear]
2016-01-26 13:55:03 +00:00
TheComet
180fff7011 Using whitespace instead of tabs 2016-01-26 00:15:35 +01:00
TheComet
717f0d518c Fixes code that is not compliant with the C89 standard when compiling with MSVC 2016-01-26 00:08:31 +01:00
Lasse Öörni
45dfe368a5 Allow to call AnimatedModel::UpdateBoneBoundingBox() manually. Closes #1168. 2016-01-25 18:37:17 +02:00
Lasse Öörni
a2323a63a8 Fix missing return values in D3D9 Graphics::ResolveToTexture(). 2016-01-25 18:02:10 +02:00
Lasse Öörni
6bd8229819 Tabs to spaces. Fix copy-paste error in comment. 2016-01-25 17:23:11 +02:00
Yao Wei Tjong 姚伟忠
41b87b3690 Merge commit '3d5994381df631739187c89bd0c2752900ae6c2a' as 'Source/ThirdParty/nanodbc' 2016-01-25 15:59:30 +08:00
Yao Wei Tjong 姚伟忠
c1ae46ec41 Replace Source/ThirdParty/nanodbc subdirectory with subtree. 2016-01-25 15:59:26 +08:00
Yao Wei Tjong 姚伟忠
a68c36b7e5 Merge commit 'bcd587a1bef9d8ed0e37d38b0b00b4faf43cea6c' into master. 2016-01-24 13:25:41 +08:00
Yao Wei Tjong 姚伟忠
705e06dd1c Remove an unprintable \015 character in the cmake_codelite.sh.
The character had caused the script not operable.

For Travis CI and AppVeyor - bug fixes and improvement to make the CI builds more stable, hopefully.
2016-01-23 23:39:06 +08:00
urho3d-travis-ci
a5373fe83b Travis CI: API documentation update at 2016-01-22 17:55:28 UTC.
[ci package]

Commit: bd21208a5f

Message: Added contributor credit.
2016-01-22 17:55:28 +00:00
Lasse Öörni
474276fc17 Code convention & minor logic edits. Unify tag API between UIElement & Node. Use ; as the default tag separator to match the editor. Do not allow adding empty tags. 2016-01-22 17:51:31 +02:00
svifylabs
4297cdedd2 Added Simple String Multitag System
removed old implementation, no optimisation, scene caches tagged nodes
2016-01-22 17:51:31 +02:00
svifylabs
9bb980b8a1 Revert "multitag test"
This reverts commit 754210898c524c4d4275ef0ae1ccb0471f6c606c.
2016-01-22 17:51:30 +02:00
svifylabs
fd8b760330 multitag test 2016-01-22 17:51:30 +02:00
svifylabs
997906d55e added tag as a string for easy editing 2016-01-22 17:51:30 +02:00
svifylabs
41f5ff1a51 added node tags 2016-01-22 17:51:29 +02:00
urho3d-travis-ci
5e0701ad42 Travis CI: API documentation update at 2016-01-22 13:48:39 UTC.
[ci package]

Commit: a9e62241a7

Message: Unify fixed update source handling in ScriptInstance, LuaScriptInstance & LogicComponent. It can now be either PhysicsWorld or PhysicsWorld2D. Remove auto-creation of PhysicsWorld from ScriptInstance, as LogicComponent or LuaScriptInstance don't do that either, and the ScriptInstance can not known whether PhysicsWorld or PhysicsWorld2D should be created.
2016-01-22 13:48:39 +00:00
Lasse Öörni
a9e62241a7 Unify fixed update source handling in ScriptInstance, LuaScriptInstance & LogicComponent. It can now be either PhysicsWorld or PhysicsWorld2D. Remove auto-creation of PhysicsWorld from ScriptInstance, as LogicComponent or LuaScriptInstance don't do that either, and the ScriptInstance can not known whether PhysicsWorld or PhysicsWorld2D should be created. 2016-01-22 14:59:08 +02:00
Lasse Öörni
99c731db19 Merge remote-tracking branch 'ucupumar/particle-direction-fix' 2016-01-22 13:41:23 +02:00
Yao Wei Tjong 姚伟忠
d267c5ee3c Fix build system to find 32-bit readline package correctly on Debian. 2016-01-22 13:41:29 +08:00
Yao Wei Tjong 姚伟忠
1066c52fb6 Fix build system to find 32-bit packages correctly on Linux. 2016-01-22 12:01:23 +08:00
urho3d-travis-ci
cc6f1a3d81 Travis CI: API documentation update at 2016-01-21 19:58:41 UTC.
[ci package]

Commit: ff42717419

Message: Rename IsTagged -> HasTag. Pass tag scripts in Lua by value to match the other API bindings.
2016-01-21 19:58:41 +00:00
Lasse Öörni
ff42717419 Rename IsTagged -> HasTag. Pass tag scripts in Lua by value to match the other API bindings. 2016-01-21 21:42:18 +02:00
Ivan K
68668266d2 Add tags to UIElement 2016-01-21 21:42:17 +02:00
Yao Wei Tjong 姚伟忠
105aa2699e Use Readline library when it is found for Lua and isql. 2016-01-22 02:05:30 +08:00
Lasse Öörni
ca3f3ced4f Prefer to use camera's EffectiveWorldTransform for view inverse to avoid double inversing. 2016-01-21 18:44:02 +02:00
Lasse Öörni
1e8335d5a4 Merge remote-tracking branch 'hjmediastudios/AddViewMatrix' 2016-01-21 18:38:36 +02:00
Yusuf Umar
aa16b5003a Fixing some Coverity scan bug. 2016-01-21 22:49:08 +07:00
Yao Wei Tjong 姚伟忠
cff5fe2d3d For Travis CI - enable URHO3D_LUAJIT build option on iOS CI builds.
Upgrade to CMake 3.4.1 for OSX CI build jobs.
Close #1146
2016-01-21 19:28:02 +08:00
Yao Wei Tjong 姚伟忠
17734a1b77 Enable LuaJIT universal binary build on iOS platform. 2016-01-21 10:56:58 +08:00
Yao Wei Tjong 姚伟忠
44e7322e4e Enable LuaJIT universal binary build on OSX platform.
Enable universal binary executables by default when targeting 64-bit OSX platform.
2016-01-21 10:56:58 +08:00
Yao Wei Tjong 姚伟忠
50f64a88a1 Minor formatting correction. 2016-01-21 10:55:44 +08:00
Yao Wei Tjong 姚伟忠
da3a82979b Bake URHO3D_TESTING to ensure downstreams get consistent struct size. 2016-01-21 00:01:28 +08:00
Lasse Öörni
f721aea1d3 On D3D11, force dynamic textures to use 1 mip level, as more is not supported. Closes #1153. 2016-01-19 22:43:07 +02:00
Nick Royer
360328d2d1 Added inverse view matrix 2016-01-18 14:30:54 -06:00
Yao Wei Tjong 姚伟忠
0906da48ba Fix LuaJIT build for VS build to suppress unknown option warnings.
[ci only: AppVeyor]
2016-01-15 21:02:56 +08:00
Lasse Öörni
c46f414034 Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151. 2016-01-14 22:52:20 +02:00
urho3d-travis-ci
c3f336829e Travis CI: API documentation update at 2016-01-14 19:58:13 UTC.
[ci package]

Commit: 25ed4020a0

Message: Match the enum order in EmitterType edit field.
2016-01-14 19:58:13 +00:00
Lasse Öörni
25ed4020a0 Match the enum order in EmitterType edit field. 2016-01-14 21:14:43 +02:00
Lasse Öörni
e18f801103 Use GetStringListIndex() also for the emitter type. 2016-01-14 21:07:53 +02:00
Lasse Öörni
79f32fad0a Shorter name for the directional mode in XML serialization. Eliminate duplicate code from ParticleEffect. Eliminate manual string compare in favor of GetStringListIndex(). 2016-01-14 21:04:55 +02:00
Lasse Öörni
f5cee983f1 Code convention minor edits. Expose the new enum value to Lua. 2016-01-14 20:43:20 +02:00
Lasse Öörni
925b69ef4c Merge remote-tracking branch 'ucupumar/particle-editor' 2016-01-14 20:11:22 +02:00
Lasse Öörni
c04aadec58 Apply component ID save fix from vivienneanthony. Also verify that JSON save works similarly. Closes #1150. 2016-01-13 11:42:26 +02:00
Yao Wei Tjong 姚伟忠
e61cf6fc40 Upgrade to LuaJIT v2.1 (unstable) branch. 2016-01-13 01:22:01 +08:00
Yao Wei Tjong 姚伟忠
b36135489f Merge commit '643fa4aad86bba3567b3b7441e36c2cbd438d79c' into master 2016-01-13 01:21:26 +08:00
Yusuf Umar
a8d9308abe Moving billboard rotate computation from CPU to GPU. Particle with direction should run faster now. 2016-01-12 19:50:01 +07:00
Yusuf Umar
353c459e0d Adding direction for particle/billboard. It can create pseudo 3d effect inspired by Unity stretched billboard. Can be used by using face camera option 'Rotate Along Direction'. 2016-01-12 10:46:23 +07:00
urho3d-travis-ci
e5f07d790a Travis CI: API documentation update at 2016-01-11 15:19:32 UTC.
[ci package]

Commit: 5e780d9e8b

Message: Allow configurable minidump write location via ProcessUtils.h functions. Closes #1142.
2016-01-11 15:19:32 +00:00
Lasse Öörni
5e780d9e8b Allow configurable minidump write location via ProcessUtils.h functions. Closes #1142. 2016-01-11 17:06:38 +02:00
Lasse Öörni
4a6d39beee Implement missing applying of basepath to package file entries. Closes #1147. 2016-01-11 16:23:21 +02:00
Yao Wei Tjong 姚伟忠
5a97c68a49 Fix a regression issue caused by external project target renaming.
Close #1137.
2016-01-09 19:25:44 +08:00
Yao Wei Tjong 姚伟忠
d01bdbf2df Merge commit '68be709e44b87216b5c41a626571d8a8f44938e9' as 'Source/ThirdParty/LuaJIT' 2016-01-08 18:14:37 +08:00
Yao Wei Tjong 姚伟忠
7d65d52455 Remove LuaJIT subdirectory. It will be added back as subtree. 2016-01-08 18:13:52 +08:00
Yao Wei Tjong 姚伟忠
21b01fcd5b Refactor how the EXE and SHARED linker flags are being setup. 2016-01-06 16:38:59 +08:00
Yao Wei Tjong 姚伟忠
bc64b053a3 Bake URHO3D_LUAJIT as downstream project needs extra linker flags.
Without these extra linker flags the executable would most likely get a runtime error, especially when targeting 64-bit OSX platform.
2016-01-06 16:38:59 +08:00
Yao Wei Tjong 姚伟忠
431559c2bd For Travis CI & AppVeyor - unified 'ci' rake task and spring cleaning. 2016-01-06 16:38:58 +08:00
Yao Wei Tjong 姚伟忠
7252327e70 Minor code formatting on Variant.h file.
[ci skip]
2016-01-06 08:44:16 +08:00
Lasse Öörni
87a5e4fcb3 Simplify RigidBody code. Allow kinematic rigid body to set its initial transform in OnMarkedDirty() so that e.g. loaded prefabs in the editor don't appear to have their body in the wrong place initially. 2016-01-05 22:37:05 +02:00
Lasse Öörni
bdadb1b116 Fix missing export specifier for the specializations of Variant::Get<T>(). Closes #1138. 2016-01-05 22:20:44 +02:00
Lasse Öörni
087772c539 If AnimatedModel is temporary, make the bone nodes it creates temporary too. Closes #1135. 2016-01-05 11:27:56 +02:00
Lasse Öörni
dce2345b8a Disable BT_USE_SSE_IN_API in OSX debug mode. Closes #1132. 2016-01-04 22:07:18 +02:00
Lasse Öörni
05cd6f4346 Before rigidbody has simulated at least once, allow also setting the interpolation transform. Possible fix for #1128. 2016-01-04 15:57:23 +02:00
urho3d-travis-ci
4a0e883d7d Travis CI: API documentation update at 2015-12-28 18:44:03 UTC.
[ci package]

Commit: 7afc3cd9ce

Message: HasSubscribedToEvent() exposed to scripting. Closes #1122.
2015-12-28 18:44:03 +00:00
Lasse Öörni
7afc3cd9ce HasSubscribedToEvent() exposed to scripting. Closes #1122. 2015-12-28 20:32:52 +02:00
Yao Wei Tjong 姚伟忠
bf50a58a0a Fix clang-tools build.
[skip appveyor] [ci only: Annotate]
2015-12-27 15:51:28 +08:00
urho3d-travis-ci
e0d3b2339e Travis CI: API documentation update at 2015-12-26 21:42:23 UTC.
[ci package]

Commit: 9fccfe5417

Message: Fix error when serializing DropDownList. Fix scroll snap epsilon attribute default value. Closes #1121.
2015-12-26 21:42:23 +00:00
Lasse Öörni
9fccfe5417 Fix error when serializing DropDownList. Fix scroll snap epsilon attribute default value. Closes #1121. 2015-12-26 23:33:51 +02:00
Lasse Öörni
d2c47a14c4 Add hit fraction to PhysicsRaycastResult and set it for all physics cast tests. Similar to ConvexCast, set SphereCast result distance based on hit fraction. Closes #1120. 2015-12-26 22:03:53 +02:00
Yao Wei Tjong 姚伟忠
108705d0e2 Bake compiler defines used by the database subsystem.
The auto-discovered variables are removed as build options from cmake-gui when it is invoked by Urho3D downstream projects.
Still, ensure the auto-discovered variables prevail over conflicting values potentially specified by user manually or via CLI.
2015-12-26 19:38:17 +08:00
Lasse Öörni
1f4793031c Fix forced one-sample shadowing when hardware compare not supported (instead should be forced four-sample shadowing) 2015-12-25 15:24:54 +02:00
Yao Wei Tjong 姚伟忠
60b3d8af40 Fix GetCompilerDefines() for possibility of returning empty string.
[skip appveyor] [ci only: master, Emscripten]
2015-12-25 18:48:06 +08:00
Yao Wei Tjong 姚伟忠
5af983234f Check the compiler defines at the time when the lib is built instead. 2015-12-25 17:55:17 +08:00
Yao Wei Tjong 姚伟忠
68e2813298 Attempt to use try_run logic to auto-discover build options.
For AppVeyor - let URHO3D_D3D11 be auto-discovered when scaffolding.
Close #1066.
2015-12-25 10:37:56 +08:00
Lasse Öörni
b218aececc Sync AssetImporter documentation with the program's actual command line options. Simplify D3D9 uninitialization code with SAFE_RELEASE. Minor code convention edit. 2015-12-24 13:16:17 +02:00
yushli
86825b2ee8 add save as JSON option 2015-12-24 11:36:25 +08:00
urho3d-travis-ci
f4edf3fc15 Travis CI: API documentation update at 2015-12-23 14:52:21 UTC.
[ci package]

Commit: a3ba4d8ff6

Message: Check HRESULT and log error with it included in case of failure in D3D9/D3D11 code. Clean up releasing GPU objects. Clean up Texture3D to not have a RenderSurface, since it can't be rendered to. Fixed missing Lua Texture3D binding. Fixed binding of Texture3D SetSize() in AngelScript. Added checks to Texture2D/3D SetSize() that zero or negative size is not specified. Closes #1092.
2015-12-23 14:52:21 +00:00
Lasse Öörni
a3ba4d8ff6 Check HRESULT and log error with it included in case of failure in D3D9/D3D11 code. Clean up releasing GPU objects. Clean up Texture3D to not have a RenderSurface, since it can't be rendered to. Fixed missing Lua Texture3D binding. Fixed binding of Texture3D SetSize() in AngelScript. Added checks to Texture2D/3D SetSize() that zero or negative size is not specified. Closes #1092. 2015-12-23 16:43:43 +02:00
Lasse Öörni
04f46f9abc Fix bug in String::DecodeUTF16. Thanks graveman! 2015-12-23 11:41:02 +02:00
Lasse Öörni
48ab1f3bda Squashed commit of the following:
commit b21e10951ff9535e80f2b222336c5f88e11e63af
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 22:00:14 2015 -0600

    Added Context parameter in JSONValue::SetVariantVector to fix
    ResourceRef bug

commit 297f8bcde3e24ad67e5fce56b7d0bab6fb616432
Merge: 5a150b2 2802146
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 21:35:50 2015 -0600

    Merge branch 'JSONValueFix' of https://github.com/hjmediastudios/Urho3D into JSONValueFix

commit 5a150b298e860c81fa17e9f0c6906b493477f97b
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 21:35:23 2015 -0600

    Fixed bug caused by attempting to set a JSONValue to a VariantVector;
    previous behavior attempted to assign values to indices beyond the size
    of the JSONValue's array storage.

commit 2802146005849314d8d3662468ec324ae8b321b3
Merge: 65c8125 e1647d1
Author: NickRoyer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 21:29:06 2015 -0600

    Merge pull request #2 from urho3d/master

    Make Urho3D_universal custom target as one of the default target.
2015-12-23 11:23:02 +02:00
Yao Wei Tjong 姚伟忠
e1647d18dd Make Urho3D_universal custom target as one of the default target.
Close #1111.
2015-12-23 10:44:27 +08:00
urho3d-travis-ci
65c8125609 Travis CI: API documentation update at 2015-12-22 17:19:49 UTC.
[ci package]

Commit: 6d2853d81d

Message: Add 32-bit integer object index attribute for custom instancing schemes. May not work on GLES2 as it's using attribute index 13. Not supported on D3D9. Closes #1108.
2015-12-22 17:19:49 +00:00
Lasse Öörni
6d2853d81d Add 32-bit integer object index attribute for custom instancing schemes. May not work on GLES2 as it's using attribute index 13. Not supported on D3D9. Closes #1108. 2015-12-22 18:55:40 +02:00
Yao Wei Tjong 姚伟忠
e616662d69 Remove code duplication and minor code formatting. 2015-12-22 21:00:46 +08:00
Lasse Öörni
b593380632 When attaching a UIElement as child, apply potentially changed style recursively. Remove default size from Button's style (generally style shouldn't change element size.) Closes #1103. 2015-12-21 15:34:30 +02:00
Lasse Öörni
0dafa13b0c Ensure CustomGeometry world bounding box gets updated on Commit(). 2015-12-21 13:55:24 +02:00
Jukka Jylänki
f7d5684001 Implement GetNumPhysicalCPUs() and GetNumLogicalCPUs() on Emscripten, which calls to emscripten_num_logical_cores() (navigator.hardwareConcurrency API in JS when available, or a guessed "4 cores" when not) 2015-12-19 20:22:24 +02:00
urho3d-travis-ci
d9c412f7e8 Travis CI: API documentation update at 2015-12-18 12:57:29 UTC.
[ci package]

Commit: 6a3bbb8aab

Message: Fix D3D11 constant buffers for VSM. Fix editor shadow mode selection. Fix script API for new shadow modes. Fix debughud for new shadow modes. Edit documentation to refer to new shadow modes. Added contributor credit. Some code convention edits, e.g. VSM instead of Vsm. Dump new NinjaSnowWarShaders.xml file.
2015-12-18 12:57:29 +00:00
Lasse Öörni
6a3bbb8aab Fix D3D11 constant buffers for VSM. Fix editor shadow mode selection. Fix script API for new shadow modes. Fix debughud for new shadow modes. Edit documentation to refer to new shadow modes. Added contributor credit. Some code convention edits, e.g. VSM instead of Vsm. Dump new NinjaSnowWarShaders.xml file. 2015-12-18 14:22:24 +02:00
Lasse Öörni
1103fe2f3e Merge remote-tracking branch 'darwikey/master' 2015-12-18 12:34:42 +02:00
Lasse Öörni
415b15b421 Buffer variant serialization in Material. 2015-12-18 12:10:17 +02:00
Lasse Öörni
21f896fa49 Add possibility to set buffer type Variants as a shader parameter (will be interpreted as an array of floats.) 2015-12-18 11:41:47 +02:00
Xavier Maupeu
dbcfc9721e merge VSM shadow 2015-12-17 23:04:48 +01:00
Xavier Maupeu
cf501d9585 add functions in Renderer to set shadow softness and VSM shadow parameters 2015-12-17 19:16:52 +01:00
Xavier Maupeu
4dffd9d9ca minor stylistic modifications 2015-12-17 12:22:06 +01:00
Xavier Maupeu
583542bb19 SHADOWCMP must only be define when direct3d is used and Graphics::GetHardwareShadowSupport() returns false 2015-12-17 12:06:34 +01:00
Lasse Öörni
01857f5149 If sprite texture has the default wrap address mode, set to clamp. It's also possible to configure the texture to border address mode (via the XML parameters file), but that requires choosing a good border color. Closes #1096. 2015-12-16 19:31:35 +02:00
Yao Wei Tjong 姚伟忠
f471dd66dd Refactor installation structure for Windows platform.
Attempt to reenable the try_compile logic to verify if the found Urho3D
library is ABI-compatible with the chosen compiler toolchain.
2015-12-16 22:21:24 +08:00
Lasse Öörni
b49837f462 Added note of library modification. 2015-12-14 17:27:29 +02:00
Pranjal Raihan
b03a89c0e7 Fix narrowing conversion from int to unsigned char in jo_jpeg 2015-12-14 17:27:27 +02:00
urho3d-travis-ci
bbe8e77462 Travis CI: API documentation update at 2015-12-14 15:26:56 UTC.
[ci package]

Commit: b110b4e51b

Message: Tabs to spaces. Add Lua API for RaycastSingleSegmented().
2015-12-14 15:26:56 +00:00
Lasse Öörni
b110b4e51b Tabs to spaces. Add Lua API for RaycastSingleSegmented(). 2015-12-14 17:03:35 +02:00
Enhex
e57cc88020 Added PhysicsWorld::RaycastSingleSegmented(). It's much more efficient for big scenes with many bodies in them. 2015-12-14 17:03:33 +02:00
Yao Wei Tjong 姚伟忠
1cd242273e Verify found Urho3D library has matching ABI with the chosen compiler.
Check the CMake minimum version before setting project name as recommended by CMake.
Minor documentation update on how to setup downstream projects using Urho3D library as external library.
For AppVeyor - attempt to add scaffolding test using Urho3D SDK.
2015-12-14 22:43:00 +08:00
Lasse Öörni
e95feb9d7e Add URHO3D_API specifier. 2015-12-14 14:41:05 +02:00
Lasse Öörni
f41f1f2b10 Squashed commit of the following:
commit 8b26bb3353730a831952e30a91f0da43d98d5a69
Merge: dc248ce 746a57b
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:23:36 2015 -0600

    Merge remote-tracking branch 'refs/remotes/origin/master' into PathTools

    Conflicts:
    	Source/Urho3D/Navigation/NavigationMesh.cpp
    	Source/Urho3D/Navigation/NavigationMesh.h

commit dc248ce4e03c789f5417af00567b4c3915542d63
Merge: aa7e0e4 a2ba148
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:16:57 2015 -0600

    Merge branch 'refs/heads/urho3d-master' into PathTools

commit a2ba1482af2927f3e7349e65ac266cac414c5f3d
Merge: 90ab5ae aa7e0e4
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:15:00 2015 -0600

    Merge branch 'PathTools' into urho3d-master

    Removing conflicts

commit aa7e0e40a611c10cc4b5aa36829d958ca847e23d
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:07:55 2015 -0600

    Resolving conflicts for NavigationPathPoint

commit 90ab5aeaf0f5f657115e30f702bb7aaa3027f3db
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 11:59:43 2015 -0600

    Added documentation on the NavigationPathPoint struct.

commit 459e79f9ccda38d07be142aa0056def5fcb85ce8
Merge: 1ae5838 0302040
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 11:54:44 2015 -0600

    Merge remote-tracking branch 'refs/remotes/origin/master' into PathTools

commit 1ae5838d07ea01f8442b92aad1e6d9f22d886719
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 11:48:09 2015 -0600

    Altered the NavigationPathPoint structure to use predefined flags.

commit 7acba3bcd67bfc12fe5f9d33f1587c8bd60da13e
Author: NickRoyer <hjmediastudios@gmail.com>
Date:   Wed Dec 9 14:48:51 2015 -0600

    Update NavigationMesh.h

    Removed extra `_`'s from navigation point flags.

commit 9db9444ca8a5f8ba831d430acfc4e0032ff7e337
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Wed Dec 9 14:42:58 2015 -0600

    Added extra options for retreiving a path from a NavigationMesh.

commit af6080d8c9fd78978153f5efd69b8be8ec0ab999
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Wed Dec 9 13:11:59 2015 -0600

    Added expanded navigation path point structure.
2015-12-14 14:37:57 +02:00
Lasse Öörni
675aa9c94c Since it was encountered in the wild (#1092), make failure to create the read-only depth stencil view only result in a warning instead of error, and fallback to the normal view if read-only view is not available. It is only needed when sampling and depth-testing the same texture in the HWDepth renderpaths. 2015-12-14 12:28:35 +02:00
Yao Wei Tjong 姚伟忠
55286eb820 Fix host-tool building.
[skip appveyor]
2015-12-13 17:43:54 +08:00
urho3d-travis-ci
0d5a38540f Travis CI: API documentation update at 2015-12-11 22:33:24 UTC.
[ci package]

Commit: 42ba4f9824

Message: Fix material JSON save in editor. Fix AngelScript API bindings where XMLElement or JSONValue is passed as reference and should be modified (needs to be unsafe inout reference.)
2015-12-11 22:33:24 +00:00
Lasse Öörni
42ba4f9824 Fix material JSON save in editor. Fix AngelScript API bindings where XMLElement or JSONValue is passed as reference and should be modified (needs to be unsafe inout reference.) 2015-12-12 00:08:38 +02:00
Lasse Öörni
5165aa91fb Remove GetJsonType() function from editor resource browser code since JSON files don't have a similar root element name, and it was causing the editor not to compile. Fix save of ResourceRef / ResourceRefList in JSON. Fix missing child nodes in JSON scenes. Fix editor to use the correct function to save / load JSON nodes. Fix number of attempts in finding the attribute matching JSON data. 2015-12-11 22:57:33 +02:00
Lasse Öörni
2d7ab2080f Merge remote-tracking branch 'hjmediastudios/master' 2015-12-11 21:36:30 +02:00
Yao Wei Tjong 姚伟忠
13e4cc332e For downstream - auto detect Urho3D lib type from build artifact. 2015-12-11 22:54:30 +08:00
Lasse Öörni
5acb70802c Re-enable OpenGL depth test in the beginning of frame in case of third party overlay programs such MSI Afterburner having modified it. Closes #1089. 2015-12-11 11:47:31 +02:00
Nick Royer
fdb14bf0d7 Merge branch 'master' of https://github.com/hjmediastudios/Urho3D 2015-12-10 14:31:52 -06:00
Nick Royer
10bad1e36a Added JSON animation triggers as well as a few quick file filter
settings for the editor and documentation changes.
2015-12-10 14:31:05 -06:00
NickRoyer
746a57bbd4 Merge pull request #3 from urho3d/master
Updating from main repository
2015-12-10 12:01:06 -06:00
urho3d-travis-ci
8eaa00c4aa Travis CI: API documentation update at 2015-12-10 12:50:54 UTC.
[ci package]

Commit: e09413bec8

Message: Merge remote-tracking branch 'hjmediastudios/NavEventsChange'
2015-12-10 12:50:54 +00:00
Lasse Öörni
e09413bec8 Merge remote-tracking branch 'hjmediastudios/NavEventsChange' 2015-12-10 13:59:24 +02:00
Lasse Öörni
2b25100ef6 Fix writing to the inverse size uniforms as if they were Vector4's. Closes #1087. 2015-12-10 13:42:19 +02:00
Nick Royer
6ce8cc0f62 Merge branch 'master' of https://github.com/hjmediastudios/Urho3D 2015-12-09 12:41:46 -06:00
NickRoyer
0302040389 Merge pull request #1 from urho3d/master
Updating dev fork
2015-12-09 12:41:30 -06:00
Nick Royer
6dc3051702 Added SpriteSheet2D JSON loading capability. 2015-12-09 11:52:35 -06:00
Nick Royer
2b2408118b Added SpriteSheet2D JSON loading capability. 2015-12-09 11:45:58 -06:00
Nick Royer
295adceef6 Added material load type selection (JSON/XML) by file extension. 2015-12-09 11:32:25 -06:00
Nick Royer
fe408e4910 Added AngelScript Serializable API JSON functions 2015-12-09 11:22:13 -06:00
Nick Royer
318e0f6552 Added node-specific CrowdAgent events 2015-12-09 11:17:12 -06:00
Lasse Öörni
bd6845d50e Fix off by one error in mipmap data size counting. Image code cleanup. Closes #1072. 2015-12-09 17:52:57 +02:00
Nick Royer
bab7daa211 Added expanded structure for path calculation and appropriate FindPath
method.
2015-12-09 07:27:50 -06:00
Nick Royer
a3326e086a Made CrowdAgent emit events from the attached Node as well as the
associated CrowdManager, to allow for simpler reaction of other
components on the same Node to crowd agent events.
2015-12-08 20:12:06 -06:00
Nick Royer
ecdb9f84c4 Added JSON loading support for materials. 2015-12-08 13:08:24 -06:00
Nick Royer
79bc4feb1e Updated Lua API with scene and node JSON load/save capabilities. 2015-12-08 12:15:48 -06:00
Nick Royer
44bdb94047 Updated Scene and Node AngelScript APIs to reflect JSON scene and node
save/load features.
2015-12-08 12:09:37 -06:00
Nick Royer
379860e543 Added functions for scenes, nodes, etc. to be saved/loaded to JSON data
as well as XML.
2015-12-08 11:56:40 -06:00
urho3d-travis-ci
c0c149dfa5 Travis CI: API documentation update at 2015-12-08 12:08:06 UTC.
[ci package]

Commit: 310c32db9e

Message: Adapt PhysicsWorld::GetRigidBodies() to use Nick Royer's immediate contact test code to work with static bodies properly. (https://github.com/urho3d/Urho3D/pull/1077) Exposed PhysicsWorld::GetCollidingBodies() for the previous behavior, similar to RigidBody::GetCollidingBodies().
2015-12-08 12:08:06 +00:00
Lasse Öörni
310c32db9e Adapt PhysicsWorld::GetRigidBodies() to use Nick Royer's immediate contact test code to work with static bodies properly. (https://github.com/urho3d/Urho3D/pull/1077) Exposed PhysicsWorld::GetCollidingBodies() for the previous behavior, similar to RigidBody::GetCollidingBodies(). 2015-12-08 13:58:20 +02:00
Lasse Öörni
45c11acd6c Create a read-only depth stencil view and use it when depth write is disabled to allow simultaneous sampling of the depth buffer in pixel shader. Closes #1076. 2015-12-07 15:55:55 +02:00
Xavier Maupeu
fc41f4bfa6 fix bug with simple shadow and pcf shadow in direct3d9 2015-12-05 19:09:49 +01:00
Xavier Maupeu
45aa12c496 VSM shadow map can be blurred 2015-12-05 13:26:38 +01:00
Lasse Öörni
e9cf66b992 Marked todo related to child priority sorting. 2015-12-04 12:44:51 +02:00
Lasse Öörni
3c792eb2cd Merge remote-tracking branch '1vanK/master' 2015-12-04 12:34:06 +02:00
Lasse Öörni
733c2e2d5b Fix DropDownList placeholder text not hiding when an item is selected. Clarify function comments on use of placeholder text. 2015-12-03 10:59:27 +02:00
Ivan K
372c5b3481 editor: fix positioning of status text 2015-12-02 19:14:32 +04:00
Ivan K
b3656119fd unnecessary if 2015-12-02 18:04:03 +04:00
Xavier Maupeu
0567cbeaf4 remove shadow bias for vsm 2015-12-01 16:57:23 +01:00
urho3d-travis-ci
41672c95cb Travis CI: API documentation update at 2015-12-01 14:18:07 UTC.
[ci package]

Commit: a4e22db6e5

Message: Auto-resize the UI root when scale is changed. Fix Console to support scaled UI. Add UI scale Lua bindings. Tweak UI scale AngelScript bindings. Fix UI render scissor region to work properly with scaled UI. Added brief documentation on UI scaling.
2015-12-01 14:18:07 +00:00
Lasse Öörni
a4e22db6e5 Auto-resize the UI root when scale is changed. Fix Console to support scaled UI. Add UI scale Lua bindings. Tweak UI scale AngelScript bindings. Fix UI render scissor region to work properly with scaled UI. Added brief documentation on UI scaling. 2015-12-01 16:08:15 +02:00
Lasse Öörni
a0386ea75c Merge remote-tracking branch 'ninjastone/uiscale' 2015-12-01 12:47:46 +02:00
Lasse Öörni
f0b615f1e2 When the engine is exiting, make sure the load queue is cleared in BackgroundLoader before going to superclass teardown (thread exit.) Closes #1063. 2015-11-30 15:29:19 +02:00
urho3d-travis-ci
4b15a38bb4 Travis CI: API documentation update at 2015-11-30 12:43:54 UTC.
[ci package]

Commit: 23cdecd5db

Message: Merge pull request #1064 from cosmy1/patch-1

Add missing IntRect & IntVector2 getters and setters in XMLElement
2015-11-30 12:43:54 +00:00
Xavier Maupeu
78a85ff2c6 simple VSM is working 2015-11-29 11:26:36 +01:00
cosmy1
d2e9e1f718 Add missing IntRect & IntVector2 getters and setters in XMLElement 2015-11-28 22:06:22 +01:00
ninjastone
f39dbb2830 Fix touch positions in scaled UI. 2015-11-29 04:32:56 +09:00
Lasse Öörni
11856fd7be Make sure to send the particle effect finish event in the main thread. 2015-11-28 02:04:34 +02:00
urho3d-travis-ci
893b47f238 Travis CI: API documentation update at 2015-11-27 23:48:59 UTC.
[ci package]

Commit: 1840c749f0

Message: Particle effect finish event. Closes #1058.
2015-11-27 23:48:59 +00:00
Lasse Öörni
1840c749f0 Particle effect finish event. Closes #1058. 2015-11-28 01:39:06 +02:00
Lasse Öörni
ac67a462ba Animation finish event. 2015-11-28 00:54:20 +02:00
Lasse Öörni
d3d1538e5b Force the RigidBody's interpolation transform only inside FixedUpdate() to prevent strange behavior with parented rigidbodies. 2015-11-28 00:19:43 +02:00
Yao Wei Tjong 姚伟忠
510f7e31df Add new CMake module to detect PulseAudio development library.
[ccache clear] [ci only: RPI]
2015-11-27 01:17:29 +08:00
Yao Wei Tjong 姚伟忠
32fb97b5c9 Avoid SDL dependency when building mini Urho for PackageTool target.
[skip appveyor] [ci only: Emscripten]
2015-11-26 19:56:13 +08:00
Xavier Maupeu
362242bd3b update script API for ShadowQuality 2015-11-26 11:27:20 +01:00
Xavier Maupeu
4e41906157 first modifications in order to integrate VSM shadow 2015-11-26 10:13:27 +01:00
urho3d-travis-ci
1a1ccb0b65 Travis CI: API documentation update at 2015-11-26 08:00:16 UTC.
[ci package]

Commit: 29e62526eb

Message: Added event for sound playback finished. Deprecate SoundSource::SetAutoRemove() and change samples + NinjaSnowWar to not use it. Fix network replication of SoundSource to work with repeated playback on the same source.
2015-11-26 08:00:17 +00:00
Lasse Öörni
29e62526eb Added event for sound playback finished. Deprecate SoundSource::SetAutoRemove() and change samples + NinjaSnowWar to not use it. Fix network replication of SoundSource to work with repeated playback on the same source. 2015-11-25 22:50:19 +02:00
Yao Wei Tjong 姚伟忠
86037b99dc Quick fix for RPI cross-compiling build on a host with PulseAudio. 2015-11-25 00:15:37 +08:00
Lasse Öörni
7094817a2d Further fix for Quaternion VS2010 crash issue. 2015-11-24 17:55:31 +02:00
Jukka Jylänki
811712e141 Work around VS2010 compiler bug with SSE and copy construction/assignment misalignment. Closes #1044. 2015-11-24 17:29:16 +02:00
Jukka Jylänki
04dbf71e71 Work around bug #1053 (https://connect.microsoft.com/VisualStudio/feedback/details/2053175) by replacing the SSE1 specific _mm_ucomige_ss() with SSE2 specific _mm_cvtsi128_si32(_mm_castps_si128(c)) == -1. Given that URHO3D_SSE is targeting SSE2, this workaround has no drawbacks. Closes #1053. 2015-11-24 15:22:59 +02:00
Lasse Öörni
eb9c04fcac Make sure ScreenToWorldPoint() correctly returns points on a plane with the specified distance (Z). 2015-11-23 14:42:25 +02:00
Yao Wei Tjong 姚伟忠
371a49afb0 Escape dollar sign in the custom commands. Pardon our dust.
[skip appveyor] [ci only: OSX] [ci package]
2015-11-23 13:43:35 +08:00
Yao Wei Tjong 姚伟忠
974867cc42 For Travis CI - another attempt to remove Android SDK before packaging.
Fix a typo in custom commands for Urho3D universal build target.

[ci package] [ci only: Android, OSX] [skip appveyor]
2015-11-23 13:07:54 +08:00
Yao Wei Tjong 姚伟忠
2d39e2823e Simplify "logic" for 'Urho3D_universal' custom target.
For Travis CI - adjust heuristic rule for cutting of iOS universal binary build.
For Travis CI - clean up the Android SDK before performing the packaging for Android build.

(Test quotation marks escape in commit message)
[ci only: Android, OSX] [skip appveyor] [ci package]
2015-11-23 11:58:18 +08:00
Yao Wei Tjong 姚伟忠
90edf01c7c For Travis CI - avoid CMake 3.4 to fix #1043.
Another attempt to fix Android Intel Atom CI builds.

[skip appveyor] [ci package] [ci only: OSX, Android]
2015-11-22 16:47:38 +08:00
Yao Wei Tjong 姚伟忠
d4929af473 For Travis CI - attempt to fix Android Intel Atom CI builds.
Alter the debug print for troubleshooting iOS CI builds.
[ci package] [skip appveyor] [ci only: Android, OSX]
2015-11-22 12:01:27 +08:00
Yao Wei Tjong 姚伟忠
59fedbda58 Fix the setup of Urho3D_universal custom target on iOS build.
[ci package]
2015-11-22 09:50:41 +08:00
Yao Wei Tjong 姚伟忠
688f1f4892 For Travis CI - add debug print for iOS build. 2015-11-22 09:48:43 +08:00
Yao Wei Tjong 姚伟忠
8296370cf3 Only check for pkg-config when targeting Linux platform. 2015-11-22 09:48:43 +08:00
Lasse Öörni
ed99f4094c Make sure Application.h is usable without any other include files. Closes #1051. 2015-11-21 13:50:12 +02:00
urho3d-travis-ci
b9e939a3e8 Travis CI: API documentation update at 2015-11-17 20:46:15 UTC.
[ci package]

Commit: c614a5d321

Message: Retain node's Z position when applying 2D physics transform. Code cleanup. Closes #1045.
2015-11-17 20:46:15 +00:00
Lasse Öörni
c614a5d321 Retain node's Z position when applying 2D physics transform. Code cleanup. Closes #1045. 2015-11-17 22:38:00 +02:00
ninjastone
25433e2b5e Merge branch 'master' of https://github.com/urho3d/Urho3D into uiscale 2015-11-17 22:11:53 +09:00
ninjastone
f0532d5d61 Add script bindings to UI scaling functions.
Fix UI elements getting clipped when scaling down.
2015-11-17 22:08:32 +09:00
Lasse Öörni
e4b5140cab Eliminate KNET_UNIX define from kNet build and consequently from Urho3D client programs. 2015-11-16 14:31:05 +02:00
Lasse Öörni
a47c72aa4b Use _WIN32 define in kNet. 2015-11-16 14:31:04 +02:00
Lasse Öörni
c1893c7c51 CMakeLists formatting. 2015-11-16 14:31:03 +02:00
Jordan Patterson
bc917769d1 Build SDL with PulseAudio if available 2015-11-16 14:31:01 +02:00
Lasse Öörni
52af7a6bb8 Remove threading from Octree raycasts to prevent worker thread spin-up time and possible threading related crashes in case there are thread-unsafe custom drawable classes. 2015-11-16 11:31:23 +02:00
Lasse Öörni
1f0fc3de93 Added missing DelayedStart() functionality to LuaScriptInstance. 2015-11-16 11:20:51 +02:00
Lasse Öörni
594b91ba19 Add TryAcquire() to Mutex. Closes #1038. 2015-11-13 20:33:24 +02:00
Lasse Öörni
a51d8d0657 Merge remote-tracking branch 'evolarium/xrandr' 2015-11-13 20:11:52 +02:00
Lasse Öörni
19517e8aa4 Move empty Texture::SetShadowCompare() in D3D9 code to .cpp file to prevent warnings in client programs. 2015-11-13 17:03:43 +02:00
Lasse Öörni
c1cc27c888 Include the dummy floats in BoundingBox regardless of URHO3D_SSE to prevent ABI incompatibility if URHO3D_SSE has different value in the client application. 2015-11-13 17:03:10 +02:00
Lasse Öörni
99d93393d1 Prevent losing input focus when using an external window, as the window flags are not reliable in that case. 2015-11-13 11:08:23 +02:00
Lasse Öörni
973a6fa807 Use _WIN32 consistently in Urho3D engine code. Simplify some preprocessor conditionals. Closes #1036. 2015-11-13 10:53:36 +02:00
Jordan Patterson
d01b7315ab Backport XRandR and memory leak fix
https://hg.libsdl.org/SDL/rev/d3fa6d0d3793
https://hg.libsdl.org/SDL/rev/5fa8cf552d05
2015-11-11 18:06:59 -07:00
Lasse Öörni
e4b6749880 Convert primitive type to point list regardless of draw call specified primitive type to emulate point fill mode on D3D11. Closes #1028. 2015-11-11 16:19:59 +02:00
aster2013
a003f68be6 Add distance to 2D, now 2D object first sort with distance from camera, then use draw order. #1003 2015-11-10 21:28:22 +08:00
Lasse Öörni
e55d989475 Zero-initialize Drawable's local bounding box to make sure it doesn't contain infinities if the Drawable subclass never defines it. Closes #1027. 2015-11-10 11:36:38 +02:00
urho3d-travis-ci
0cb8d93d33 Travis CI: API documentation update at 2015-11-09 10:04:59 UTC.
[ci package]

Commit: 28acbf12b0

Message: Update changelog.
2015-11-09 10:04:59 +00:00
Lasse Öörni
6b919a8fd4 Merge remote-tracking branch 'jsandusky/TileCacheLayers' 2015-11-09 10:54:29 +02:00
JSandusky
003aedb298 Add configuration of maximum layers in DynamicNavigationMesh
- Valid range of 3 - 255
- Angelscript + Lua bindings
- Layer maximum changes only effects nav mesh build and does not trigger
a build
2015-11-08 19:15:56 -05:00
JSandusky
0994584506 Add protected check to script variable population 2015-11-08 14:05:18 -05:00
Lasse Öörni
96c14871db Fix ambiguous call on VS2010. 2015-11-08 16:02:14 +02:00
urho3d-travis-ci
38ba5f8557 Travis CI: API documentation update at 2015-11-08 13:01:48 UTC.
[ci package]

Commit: 0a88fdbc21

Message: Remove workaround fix for resource prefix path in Urho3DPlayer too.
[ccache clear]
2015-11-08 13:01:48 +00:00
Yao Wei Tjong 姚伟忠
0a88fdbc21 Remove workaround fix for resource prefix path in Urho3DPlayer too.
[ccache clear]
2015-11-08 20:34:04 +08:00
Lasse Öörni
8463b48e96 Remove SplitMode enum in favor of a bool to simplify script binding. Reverse the default behavior to not return empty strings to ensure correctness of existing code. Fix resource prefix path list to not require a space. Fix ResourceRefList deserialization. Closes #1014. 2015-11-08 14:14:46 +02:00
Colin Barrett
d83f9d0a41 New String::Split implementation; keeps empty splits by default, optionally omit-able using splitMode parameter 2015-11-07 13:00:50 +00:00
Lasse Öörni
73d7db3342 Added inaccurate (source file size) memory use reporting to ParticleEffect & ParticleEffect2D, to avoid it being zero. 2015-11-06 12:35:42 +02:00
yushli
1f8db177e7 Update AnimationSet2D.cpp
set memory usage when loading spine animation data
2015-11-06 10:17:10 +08:00
Lasse Öörni
c8eb116df9 Do not reset input state on subsequent screen mode changes, to allow key-ups / mouse-ups to happen naturally. Closes #1012. 2015-11-05 14:30:14 +02:00
Lasse Öörni
898f730d9b Let go of drag UI elements when mouse button is released, even if the cursor is hidden. Closes #1010. 2015-11-04 20:51:36 +02:00
Yao Wei Tjong 姚伟忠
587344af8a Minor cleanup to simplify the override condition for sample code. 2015-11-04 22:26:36 +08:00
Lasse Öörni
0a3e487a9e Log warnings when illegal attribute registration or base type attributes copying is attempted. 2015-11-04 14:43:03 +02:00
Lasse Öörni
77e6703b15 Detect attempt to copy a base class's attributes onto itself, and early-exit in that case. 2015-11-04 13:50:12 +02:00
Yao Wei Tjong 姚伟忠
f47c04dcee Minor fix on code comment. [ci skip] 2015-11-04 00:16:27 +08:00
Yao Wei Tjong 姚伟忠
8c8e2a97b5 Allow -pp and URHO3D_PREFIX_PATH to override the sample default paths.
This is useful for user to try out the apps with alternate asset directories.
2015-11-04 00:06:34 +08:00
Lasse Öörni
4c65b77999 Fix Spine animation update threadsafety. Fix typos & whitespace. Closes #1005. 2015-11-03 17:48:43 +02:00
Lasse Öörni
bdded7a4f7 Position 2D particles correctly on the Z axis. Closes #1007. 2015-11-03 14:36:06 +02:00
Lasse Öörni
d731b218f1 When allocating a spritesheet dynamically, leave 1 pixel empty row/column inbetween to avoid errors at the edges of sprites. Set the whole texture data at once. 2015-11-03 13:51:25 +02:00
Yao Wei Tjong 姚伟忠
4f1722f223 Fix RPATH for tools built with Shared Urho3D library type. 2015-11-03 17:57:50 +08:00
Yao Wei Tjong 姚伟忠
22bd3de807 Refactor resource prefix path parameter to accept a list of paths.
Close #1000.
2015-11-03 17:46:56 +08:00
JSandusky
500d59c032 Use Urho3D M_INT_MAX instead of INT_MAX in OBJ export 2015-11-02 16:11:24 -05:00
JSandusky
056f1a391a Fix handling of indices in OBJ export 2015-11-02 15:49:31 -05:00
Lasse Öörni
af985e0df1 Alternative O key to create obstacles in the navigation demos. Closes #995. 2015-10-31 22:01:04 +02:00
Lasse Öörni
12bac51e78 Use freopen() instead of low level API calls to redirect stdin & stdout to opened console window to fix crash on 64bit build. Closes #999. 2015-10-31 18:07:19 +02:00
Yao Wei Tjong 姚伟忠
95580f6ba0 For Appveyor - first attempt to enable 32-bit CI jobs on Windows host. 2015-10-31 23:13:19 +08:00
Lasse Öörni
385493f39a Explain that touch input is needed for multiple dragging. Closes #997. 2015-10-31 16:48:25 +02:00
Yao Wei Tjong 姚伟忠
c0d8415ae8 Fix the spawn button label in CrowdNavigation demo.
[ci skip]
2015-10-31 14:41:26 +08:00
Yao Wei Tjong 姚伟忠
deaa23a140 Ensure SIMD code path is being used when BT_USE_SSE is on.
Related to ommit dabfcff14e.
2015-10-30 13:18:29 +08:00
Yao Wei Tjong 姚伟忠
dabfcff14e Enable BT_USE_SSE on Windows platform using MinGW compiler toolchain. 2015-10-29 23:30:15 +08:00
Lasse Öörni
94a7f4ef63 Make UI element layouting not modify the user assigned minSize. Instead keep record of the min.size required by layout separately. Fix HelloGUI sample to the new behavior. Closes #955. 2015-10-29 17:22:53 +02:00
Yao Wei Tjong 姚伟忠
d31fbf2f45 Fix LuaJIT SSE2 detection on 32-bit MSVC build. 2015-10-29 21:49:34 +08:00
Yao Wei Tjong 姚伟忠
2e4a076e5e Fix LuaJIT SSE2 detection on 32-bit MinGW build. 2015-10-29 19:48:07 +08:00
urho3d-travis-ci
fb7f622858 Travis CI: API documentation update at 2015-10-29 10:53:03 UTC.
[ci package]

Commit: d4a5b74cc5

Message: Also add updateEnabled to PhysicsWorld. Make Scene, PhysicsWorld and PhysicsWorld2D behave in the same way: when auto update is disabled, manual stepping can still be performed. Rewrite some comments for clarity.
2015-10-29 10:53:03 +00:00
Lasse Öörni
d4a5b74cc5 Also add updateEnabled to PhysicsWorld. Make Scene, PhysicsWorld and PhysicsWorld2D behave in the same way: when auto update is disabled, manual stepping can still be performed. Rewrite some comments for clarity. 2015-10-29 12:43:53 +02:00
cosmy1
3cb48a64a6 Minor whitespace edit 2015-10-29 11:46:16 +02:00
cosmy
04996445cc Add function to control 2D physics update 2015-10-29 11:45:57 +02:00
Lasse Öörni
00410aabd8 Move ParticleEffect::GetEffect() into the .cpp implementation, as it uses shared pointer access. 2015-10-29 11:34:16 +02:00
Yao Wei Tjong 姚伟忠
fa82c55efd Suppress warnings on MinGW build. 2015-10-29 11:24:03 +08:00
Lasse Öörni
239ab98315 Omit static keyword from kNet's custom debug memory allocation functions to allow compilation on VS2015 Update 1. 2015-10-28 20:16:23 +02:00
Yao Wei Tjong 姚伟忠
db5cb36057 Remove the quick fix now that the ABI is correctly detected for MinGW.
Related to #872 and commit 6ca3bdbb1c.
2015-10-28 19:15:59 +08:00
urho3d-travis-ci
5270af7bb1 Travis CI: API documentation update at 2015-10-28 08:30:46 UTC.
[ci package]

Commit: 416da06b74

Message: Merge pull request #989 from newbthenewbd/master

Fix Android MIPS build
2015-10-28 08:30:46 +00:00
Newb I the Newbd
dd2494cb33 Fix Android MIPS build. 2015-10-28 03:07:45 +01:00
urho3d-travis-ci
aa60a1aea6 Travis CI: API documentation update at 2015-10-27 22:51:55 UTC.
[ci package]

Commit: eff2c913e8

Message: Remove defined_ bool from Rect & Sphere. Closes #986.
2015-10-27 22:51:55 +00:00
Lasse Öörni
eff2c913e8 Remove defined_ bool from Rect & Sphere. Closes #986. 2015-10-28 00:40:20 +02:00
Lasse Öörni
608183ba22 Reset HashMap & HashSet bucket pointers when beginning clear. As ResourceCache may not be returned during exit phase, add nullchecks to ScriptFile & Shader. Should help with #988. 2015-10-27 15:00:04 +02:00
Lasse Öörni
812e019d03 Minor whitespace edit. 2015-10-27 11:20:50 +02:00
cosmy1
c8fb90898f Trigger double-click event over no element
Since E_UIMOUSECLICK is triggered also over no element most people want the same effect with E_UIMOUSEDOUBLECLICK
2015-10-26 15:08:33 +01:00
Lasse Öörni
1b7e1fdf5c Simplify code and use static cast since the type is checked beforehand. Allow to create CollisionChain2D from editor. 2015-10-26 11:19:11 +02:00
cosmy1
444695f2a6 Check vertices count
Check vertices count for chain shape collision before creating fixture.
2015-10-26 10:49:48 +02:00
urho3d-travis-ci
55d97b1ba9 Travis CI: API documentation update at 2015-10-25 19:13:43 UTC.
[ci package]

Commit: 13bc777ab6

Message: Fix using old attribute name in the editor. Closes #979.
2015-10-25 19:13:43 +00:00
Lasse Öörni
60d946eb64 Option to enable threaded occlusion rendering. May actually result in worse performance, so disabled by default. Report number of rendered occluders accurately (taking into account occluders rejected by being occluded themselves, or by running out of triangles.) Closes #970. 2015-10-25 20:53:25 +02:00
Lasse Öörni
9661f33f01 Fix uninitialized variables in ParticleEmitter. Closes #981. 2015-10-25 20:44:05 +02:00
ninjastone
4daf7fd3f0 Added rendering scale to UI 2015-10-26 01:35:44 +09:00
Yao Wei Tjong 姚伟忠
d7bc2d6a0d Move GetFileSizeString() to StringUtils. 2015-10-24 10:34:04 +08:00
Lasse Öörni
ae52d8ce45 Fix logging in Engine.cpp. 2015-10-23 22:31:54 +03:00
Lasse Öörni
b616aa6272 Merge remote-tracking branch '1vanK/master'
Conflicts:
	Source/Urho3D/Engine/DebugHud.cpp
	Source/Urho3D/Engine/Engine.cpp
2015-10-23 22:27:39 +03:00
urho3d-travis-ci
92e976eb0f Travis CI: API documentation update at 2015-10-23 11:53:15 UTC.
[ci package]

Commit: 6f60ee7f48

Message: Print memory use for all resources in ResourceCache::PrintMemoryUsage(). Change memory budget & use API to use unsigned long long (64bit). Expose GetFileSizeString() to script. Refactor Engine to use PrintMemoryUsage(). Match width of profiler and resource outputs. Rename Profiler::GetData() to Profiler::PrintData() to match the new ResourceCache function.
2015-10-23 11:53:15 +00:00
Lasse Öörni
6f60ee7f48 Print memory use for all resources in ResourceCache::PrintMemoryUsage(). Change memory budget & use API to use unsigned long long (64bit). Expose GetFileSizeString() to script. Refactor Engine to use PrintMemoryUsage(). Match width of profiler and resource outputs. Rename Profiler::GetData() to Profiler::PrintData() to match the new ResourceCache function. 2015-10-23 14:12:13 +03:00
Lasse Öörni
19027b4ae4 Merge remote-tracking branch 'JSandusky/MemoryReporting' 2015-10-23 11:55:20 +03:00
urho3d-travis-ci
d3e5abb45f Travis CI: API documentation update at 2015-10-23 07:07:21 UTC.
[ci package]

Commit: 83d0f9a23c

Message: Add Z-up and handedness options to OBJ export
2015-10-23 07:07:21 +00:00
JSandusky
83d0f9a23c Add Z-up and handedness options to OBJ export 2015-10-22 22:44:28 -04:00
JSandusky
379a80f3f5 Remove ambiguity from ResourceCache mem use printing of lines 2015-10-22 20:06:14 -04:00
JSandusky
8e39692ef3 Show "Memory usage" DebugHud in all samples (F3 key) 2015-10-22 19:49:49 -04:00
JSandusky
44aac796fb Add resource memory usage display to DebugHud 2015-10-22 19:49:14 -04:00
Ivan K
4532a3a72e LOGRAWF -> URHO3D_LOGRAWF 2015-10-23 00:34:01 +04:00
Ivan K
4b015f3c51 LOGERRORF -> URHO3D_LOGERRORF 2015-10-23 00:32:06 +04:00
Ivan K
bfe60520bd LOGWARNINGF -> URHO3D_LOGWARNINGF 2015-10-23 00:29:24 +04:00
Ivan K
f3de678cfd LOGINFOF -> URHO3D_LOGINFOF 2015-10-23 00:28:05 +04:00
Ivan K
c9a77c8d56 LOGDEBUGF -> URHO3D_LOGDEBUGF 2015-10-23 00:26:04 +04:00
Ivan K
ecafb47f73 LOGRAW -> URHO3D_LOGRAW 2015-10-23 00:20:52 +04:00
Ivan K
ad2eb74d83 LOGERROR -> URHO3D_LOGERROR 2015-10-23 00:17:49 +04:00
Ivan K
3a7e7f058e LOGWARNING -> URHO3D_LOGWARNING 2015-10-23 00:06:38 +04:00
Ivan K
d53fc4b94b LOGINFO -> URHO3D_LOGINFO 2015-10-22 23:59:47 +04:00
Ivan K
0c3f67abfe LOGDEBUG -> URHO3D_LOGDEBUG 2015-10-22 23:53:15 +04:00
Ivan K
ec17b8f73d IS_ASSET -> URHO3D_IS_ASSET 2015-10-22 23:44:39 +04:00
Ivan K
d78219d014 ASSET -> URHO3D_ASSET 2015-10-22 23:41:04 +04:00
Lasse Öörni
48c600711a Fix wrong boolean check for determining what viewport read/write operations are used by the renderpath. Closes #974. 2015-10-22 12:22:59 +03:00
Lasse Öörni
7fc377b546 Make Text3D refresh the text batches (triggering font face reload) if the font texture(s) have data lost. Closes #967. 2015-10-22 00:44:54 +03:00
Lasse Öörni
c810f9908f DLL export specializations of the Swap function. 2015-10-21 23:00:05 +03:00
Ivan K
db15f0358e PROFILE -> URHO3D_PROFILE 2015-10-21 23:46:50 +04:00
Ivan K
31f3c9ab65 DEFINE_APPLICATION_MAIN -> URHO3D_DEFINE_APPLICATION_MAIN 2015-10-21 23:08:28 +04:00
Ivan K
a976309138 DEFINE_MAIN -> URHO3D_DEFINE_MAIN 2015-10-21 22:59:09 +04:00
Ivan K
fe05d4b16c UPDATE_ATTRIBUTE_DEFAULT_VALUE -> URHO3D_UPDATE_ATTRIBUTE_DEFAULT_VALUE 2015-10-21 22:50:08 +04:00
Ivan K
3959d569fa MIXED_ACCESSOR_ATTRIBUTE -> URHO3D_MIXED_ACCESSOR_ATTRIBUTE 2015-10-21 22:45:13 +04:00
Ivan K
83b811b7e8 ENUM_ACCESSOR_ATTRIBUTE -> URHO3D_ENUM_ACCESSOR_ATTRIBUTE 2015-10-21 22:39:49 +04:00
Ivan K
212f419026 ACCESSOR_ATTRIBUTE -> URHO3D_ACCESSOR_ATTRIBUTE 2015-10-21 22:32:36 +04:00
Ivan K
14b1669735 ENUM_ATTRIBUTE -> URHO3D_ENUM_ATTRIBUTE 2015-10-21 22:18:12 +04:00
Ivan K
431e29d2cd ATTRIBUTE -> URHO3D_ATTRIBUTE 2015-10-21 22:14:03 +04:00
Ivan K
8b351bcf01 REMOVE_ATTRIBUTE -> URHO3D_REMOVE_ATTRIBUTE 2015-10-21 22:08:33 +04:00
Ivan K
82b9a034a2 COPY_BASE_ATTRIBUTES -> URHO3D_COPY_BASE_ATTRIBUTES 2015-10-21 22:05:52 +04:00
Ivan K
4bcbae61fe HANDLER -> URHO3D_HANDLER 2015-10-21 21:49:02 +04:00
Ivan K
f954325243 HANDLER_USERDATA -> URHO3D_HANDLER_USERDATA 2015-10-21 21:39:04 +04:00
Ivan K
974ae9d4bb fix ScriptAPIDump.cpp 2015-10-21 21:33:28 +04:00
Ivan K
6abe6b66c0 PARAM -> URHO3D_PARAM 2015-10-21 21:28:02 +04:00
Ivan K
6b54578bc5 EVENT -> URHO3D_EVENT 2015-10-21 20:43:05 +04:00
Lasse Öörni
24ac93600e Go through all vertices of the StaticSprite2D to update its bounding box. Closes #972. 2015-10-21 11:32:09 +03:00
Ivan K
f02cd63437 OBJECT -> URHO3D_OBJECT 2015-10-21 11:12:45 +04:00
Lasse Öörni
1d4e379dea Implement proper rounding in the fixed point to integer conversion (>> 6). Fixes #968. 2015-10-20 16:15:02 +03:00
urho3d-travis-ci
246aaf703f Travis CI: API documentation update at 2015-10-20 10:46:03 UTC.
[ci package]

Commit: 9469ef1a67

Message: Merge remote-tracking branch 'JSandusky/DetourCrowdLocalSpace'
2015-10-20 10:46:03 +00:00
Lasse Öörni
9469ef1a67 Merge remote-tracking branch 'JSandusky/DetourCrowdLocalSpace' 2015-10-20 12:26:34 +03:00
Lasse Öörni
52a9c9853a Merge pull request #962 from ijsonlin/hotfix
fixed the wrong behavior of spriter animation
2015-10-19 21:49:29 +03:00
JSandusky
77942c4f1a Make obstacle seek up through ALL parents to find mesh 2015-10-19 14:48:05 -04:00
Lasse Öörni
5395082c36 To match Bullet's own behavior when debug rendering the whole physics world, also draw disabled constraints. Closes #964. 2015-10-19 17:49:21 +03:00
Yao Wei Tjong 姚伟忠
d7eee3b134 Only update the toluabind.c back to source tree when it is opted. 2015-10-19 16:12:57 +08:00
JSandusky
8df17a41ee Bind GetParentComponent to angelscript and lua
- Fix issues encountered in testing Node::GetParentComponent
2015-10-18 22:48:07 -04:00
JSandusky
9c90ac913d Make obstacle seek upwards to find DynamicNavigationMesh
- Also reset ownerMesh on scene change to null to facilitate transfer
between scenes
2015-10-18 22:31:41 -04:00
JSandusky
b5af4fcf96 Addition of "GetParentComponent" methods for seeking components up the scene tree 2015-10-18 22:19:24 -04:00
Jukka Jylänki
cd48b1fcb8 Manually optimize Quaternion construction from __m128 to avoid bad codegen from Visual Studio 2015. 2015-10-19 03:09:58 +03:00
Jukka Jylänki
984e52dbea Use slower but precise SSE mathematics for Quaternion operations. Closes #959. 2015-10-19 03:08:43 +03:00
aster2013
466c2f73a4 Remove unused OnFlipChanged, Move OnWorldBoundingBoxUpdate to StaticSprite2D. 2015-10-18 21:03:35 +08:00
aster2013
7aa6b9d6e0 Fix issue #963 2015-10-18 20:24:01 +08:00
Hualin Song
c4edf6d327 fixed wrong attribute name for spriter scml file
Recently versions of the Spriter use the attribute name "object_type" instead of "type"
2015-10-17 17:20:36 +08:00
Hualin Song
c35e4283e0 Correct the values of SpriteInfo x and y
When we has only one texture in the scml file, we will get wrong x and y values of SpriteInfo, and then the code in line 490 would cause invalid rectangle area.
2015-10-17 17:14:40 +08:00
Hualin Song
da3848716c Correct the frameWidth and frameHeight
We will get wrong values of frameWidth and frameHeight sometimes when we run SpritePacker without the option "-trim".
2015-10-17 17:10:42 +08:00
Yao Wei Tjong 姚伟忠
e03965fbbf Mark local changes in Bullet source files for NEON support on Android. 2015-10-17 10:54:15 +08:00
Lasse Öörni
e95542e9d6 Fix missing export specifier in HttpRequest. Closes #957. 2015-10-16 16:44:15 +03:00
Jukka Jylänki
e28a678914 Optimize away some uses of _MM_TRANSPOSE4_PS(), to remove two shuffles, two movs and replace shufps with the lighter movehl/lh and unpacks. Also do vector loads and stores manually in BoundingBox::Transformed() to avoid VS2015 from generating dirty asm code for the function. This has a few percent improvement on the heavy BoundingBox::Transformed() function call. 2015-10-16 13:21:33 +03:00
Yao Wei Tjong 姚伟忠
8a447c7eda Enable BT_USE_SSE on Linux platform & BT_USE_NEON on Android platform.
Add new build option URHO3D_NEON to enable/disable NEON code branch.
Fix a bug where previously URHO3D_SSE was also erroneously being used to switch off BT_USE_NEON on iOS.
Add new build option URHO3D_DEPLOYMENT_TARGET to set the GCC/Clang target arch (-march compiler flag). Default value is 'native'. Setting this to any cpu type higher than Pentium 4 may influence the effective SSE level being used in the build. The BulletPhysics library may switch to use higher level SSE as the result, for instance.
2015-10-16 16:32:28 +08:00
urho3d-travis-ci
1abd059b66 Travis CI: API documentation update at 2015-10-15 22:50:43 UTC.
[ci package]

Commit: 9bd1a02655

Message: Copy the nostencil flag correctly from the source view.
2015-10-15 22:50:43 +00:00
Lasse Öörni
9bd1a02655 Copy the nostencil flag correctly from the source view. 2015-10-16 01:30:23 +03:00
Lasse Öörni
bd3efa69c1 Remove code duplication from render stats gathering. 2015-10-16 01:15:04 +03:00
Lasse Öörni
5161060d5b Allow to define a culling camera for Viewport. When defined, multiple views can share the same culling and other view preparations, reducing CPU use. 2015-10-16 01:11:22 +03:00
Lasse Öörni
d66e8787e3 Only find AnimationController states using the animation's resource name (instead of user-supplied) to avoid potential ambiguous/unsanitated resource names leading to creation of duplicate animation states. 2015-10-14 11:24:53 +03:00
urho3d-travis-ci
58df09ae95 Travis CI: API documentation update at 2015-10-13 14:38:40 UTC.
[ci package]

Commit: 42ac49d933

Message: Merge remote-tracking branch 'juj/no_boundingbox_bool'
2015-10-13 14:38:40 +00:00
Lasse Öörni
42ac49d933 Merge remote-tracking branch 'juj/no_boundingbox_bool' 2015-10-13 16:13:58 +03:00
Lasse Öörni
563c4cc2d6 Merge remote-tracking branch 'juj/sse_opt_quat' 2015-10-13 16:13:46 +03:00
Lasse Öörni
222cb27a74 Add URHO3D_API specifier to SourceBatch struct. 2015-10-13 14:17:43 +03:00
Jukka Jylänki
fbd07ac39c Remove BoundingBox::defined_ boolean and instead have min = INF and max = -INF denote the case when a bounding box is degenerate. This helps reduce branching and SSE'ifying BoundingBox. SSE optimize some hot BoundingBox functions. 2015-10-13 13:58:04 +03:00
Jukka Jylänki
a44466c150 SSE optimize Quaternion.h. 2015-10-13 13:52:48 +03:00
Lasse Öörni
af5a14c3d9 Mark potentially dangerous math class constructors explicit. Closes #947. 2015-10-13 11:18:12 +03:00
Jukka Jylänki
fd6a6e9336 SSE optimize Quaternion multiplication. 2015-10-12 20:45:38 +03:00
Jukka Jylänki
86e86bcd30 SSE optimize BoundingBox::Transformed(). 2015-10-12 20:45:38 +03:00
Jukka Jylänki
4ffff7ab4c SSE optimize Matrix3x4 construction from translation, rotation and scale. 2015-10-12 20:45:37 +03:00
Lasse Öörni
173080cbc8 Make bounding box undefined if it was clipped to be degenerate. Closes #944. 2015-10-12 12:10:45 +03:00
Lasse Öörni
52805e2709 Merge remote-tracking branch 'juj/sse_matrix_math' 2015-10-12 11:49:14 +03:00
Lasse Öörni
3988f8873e Merge remote-tracking branch 'juj/unsynchronized_jacks' 2015-10-12 11:44:26 +03:00
Yao Wei Tjong 姚伟忠
d45c85302b Rectify wrong object registration.
[ci skip]
2015-10-12 15:37:38 +08:00
aster2013
b7ee2575d7 Convert tab to spaces, [ci skip] 2015-10-12 13:59:54 +08:00
aster2013
27184504c9 Reset slots to setup pose, fix issue #932. 2015-10-12 13:40:47 +08:00
urho3d-travis-ci
7af9276249 Travis CI: API documentation update at 2015-10-12 04:35:21 UTC.
[ci package]

Commit: 96917c5412

Message: Minor Fix, Thanks @weitjong
2015-10-12 04:35:21 +00:00
aster2013
96917c5412 Minor Fix, Thanks @weitjong 2015-10-12 11:42:16 +08:00
aster2013
a1105f7d38 Minor refactor, add comment to type info. 2015-10-12 10:31:38 +08:00
Jukka Jylänki
bf9111b862 Make Jacks not walk in synchronized lockstep timing in 06_SkeletalAnimation sample. 2015-10-11 19:05:51 +03:00
aster2013
3a948899a7 Add type info, remove BASEOBJECT macro, now user can use type info check object type. for example:
Button::IsTypeOf<UIElement>() is ture, Button::IsTypeOf<BorderImage>() is ture, Button::IsTypeOf<CheckBox>() is false.
2015-10-11 23:26:29 +08:00
aster2013
6bd1d77634 Add baseTypeName argument to OBJECT macro. 2015-10-11 22:17:55 +08:00
Jukka Jylänki
3ac2cb6e37 Avoid depending on 64-bit only function _mm_cvtsi128_si64() in Matrix operator == to allow targeting 32-bit as well. 2015-10-11 01:07:01 +03:00
Lasse Öörni
af7ed744f0 URHO3D_THREADING build option. Closes #939. 2015-10-10 23:17:03 +03:00
Jukka Jylänki
0107a0bf75 SSE optimize Urho3D/Math/Matrix3x4.h and Urho3D/Math/Matrix4.h. These yield a ~3% improvement in 06_SkeletalAnimation sample with 2000 Jacks in it. 2015-10-10 21:20:29 +03:00
Lasse Öörni
da81b99ca3 Do not return a resolution list containing 1x1 on Emscripten, rather return empty. Do not check fullscreen mode validity if the resolution list is empty. 2015-10-10 19:29:28 +03:00
Lasse Öörni
e6e16b90ed Minor code formatting. Document that we have returned to the old behavior of not notifying dirty node transform if it was already dirty before, and users of the TransformChanged() function should read the node's world transform to ensure continued notifications. 2015-10-10 14:42:29 +03:00
Jukka Jylänki
d168ab9d91 Optimize Node::MarkDirty() implementation by a) relying on the invariant that all children of a dirty node must also be dirty, and that all parents of a clean node must also be clean, b) avoid double-dereferencing Component WeakPtr in listeners, c) use the swap-with-last erase trick to avoid O(n^2) behavior in removing listeners, and d) perform tail call optimization to avoid excessive recursive function calls when marking children dirty. This optimizes the Node::MarkDirty() time in 06_SkeletalAnimation scene with 2000 Jacks from 42.73% down to 16.43%, a net saving of -61.5% less time spent in that call site. Closes #931. 2015-10-10 14:42:28 +03:00
Yao Wei Tjong 姚伟忠
fde2ad45ac Fix Android and Raspberry-Pi build by always disabling SSE support.
[ci only: RPI, Android]
2015-10-10 17:49:29 +08:00
Yao Wei Tjong 姚伟忠
d05226e448 Only include object/bitcode files when archiving the hard way on Win.
Fix #937.
[ci only: master, Emscripten]
2015-10-10 12:12:34 +08:00
urho3d-travis-ci
2d80a25394 Travis CI: API documentation update at 2015-10-09 22:24:01 UTC.
[ci package]

Commit: 4bdd80775b

Message: Add accelerator keys for reset pos/rot/scale also in editor standard mode. Add reset transform function (Alt-Q).
2015-10-09 22:24:01 +00:00
Lasse Öörni
0e8aafbbb6 Make the Slerp approximation conditional of Emscripten platform to preserve consistency with rest of the math operations. 2015-10-09 23:24:04 +03:00
Lasse Öörni
7287e02278 Expose Node::MarkDirty() to AngelScript for consistency. 2015-10-09 23:12:30 +03:00
Lasse Öörni
f9de34e994 Code formatting. 2015-10-09 22:34:11 +03:00
Lasse Öörni
ed633009c2 Merge remote-tracking branch 'juj/approx_quat_slerp' 2015-10-09 22:29:22 +03:00
Lasse Öörni
e82708d0e0 Merge remote-tracking branch 'juj/ANGLE_instanced_arrays' 2015-10-09 22:29:12 +03:00
Lasse Öörni
b9d753171f Merge remote-tracking branch 'juj/sse_matrix' 2015-10-09 22:28:56 +03:00
Jukka Jylänki
52ef3e92eb Optimize Quaternion::Slerp() to remove the costly trigonometric functions and replace them by approximations instead. The approximations have been profiled to generate a maximum interpolation error of 0.38 degrees (see test Quat_Slerp_precision in MathGeoLib). In native 64bit Windows 8.1 VS2015 builds, testing in 06_SkeletalAnimation sample with 2000 Jacks, the time taken in Quaternion::Slerp() is reduced by -17.4%, and in Emscripten build of the same sample running in Firefox 41, the time taken by Quaternion::Slerp() is reduced by -44.7%. Closes #914. 2015-10-09 21:35:34 +03:00
Jukka Jylänki
af8d27e8b4 Use fast and sub-millisecond-precise Emscripten-specific emscripten_get_now() for timer queries instead of gettimeofday(), which is slower and has only millisecond precision. Closes #916. 2015-10-09 21:34:10 +03:00
Jukka Jylänki
e3ce38bb52 Remove code repetition in Source/Urho3D/Core/Timer.cpp. 2015-10-09 21:34:00 +03:00
Jukka Jylänki
3ad9ba306d SSE optimize matrix-matrix multiplications when URHO3D_SSE is enabled. These constitute 7.82% of 06_SkeletalAnimation sample with 2000 Jacks in it. After SSE optimizations applied, matrix multiplication takes only 2.13% of total time in AMD CodeXL profile. This change also seems to have the effect that in scalar version, VS2015 did not dare to inline Matrix3x4 multiplication in AnimatedModel::UpdateSkinning(), but after SSE, the instruction count is small enough that it happily does so. 2015-10-09 20:36:10 +03:00
Jukka Jylänki
fc0d427557 Add support for GPU hardware instancing on Emscripten. In WebGL 1 it is exposed by the ANGLE_instanced_arrays ( https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/ ) extension, and in WebGL 2, it is enabled in core. 2015-10-09 18:58:42 +03:00
Lasse Öörni
2cc066d709 Update Bullet to 2.83.6. Thanks to Jukka for the initial work & Emscripten fix. Closes #929. 2015-10-09 16:52:51 +03:00
urho3d-travis-ci
0cefd559a7 Travis CI: API documentation update at 2015-10-08 19:32:15 UTC.
[ci package]

Commit: 7db65a8952

Message: Added possibility to set time position of attribute or object animation manually. SetAnimationEnabled(false) should be used in that case to disable auto update. Closes #926. Added RemoveObjectAnimation() and RemoveAttributeAnimation() to Animatable. Closes #928. Fixed attribute animations in hierarchy (e.g. in components) not getting removed when a null object animation is assigned.
2015-10-08 19:32:15 +00:00
Lasse Öörni
7db65a8952 Added possibility to set time position of attribute or object animation manually. SetAnimationEnabled(false) should be used in that case to disable auto update. Closes #926. Added RemoveObjectAnimation() and RemoveAttributeAnimation() to Animatable. Closes #928. Fixed attribute animations in hierarchy (e.g. in components) not getting removed when a null object animation is assigned. 2015-10-08 22:18:06 +03:00
urho3d-travis-ci
bef4de0bc1 Travis CI: API documentation update at 2015-10-08 12:09:46 UTC.
[ci package]

Commit: 730388c0ce

Message: Fixed SplinePath AngelScript bindings and added documentation for it.
2015-10-08 12:09:46 +00:00
Mike3D
730388c0ce Fixed SplinePath AngelScript bindings and added documentation for it. 2015-10-08 14:00:44 +02:00
aster2013
1ab328db34 Only apply world transform for active and awake rigid body. 2015-10-08 18:10:01 +08:00
aster2013
67a3b10e94 Remove half size offset in D3D mode in Sprite2D::GetDrawRectangle. Fix #927 2015-10-08 13:57:59 +08:00
Lasse Öörni
2a223949aa Optionally move model's initial bone positions to bind pose (-bp argument). 2015-10-06 23:15:37 +03:00
Yao Wei Tjong 姚伟忠
e1341f7261 Replace the usage of Emscripten define and include to follow its norm.
Close #921.
[ci only: Emscripten]
2015-10-06 17:42:15 +08:00
Yao Wei Tjong 姚伟忠
01cae9de6a Switch off the sound support for most of the sample apps by default.
Close #924.
[ci package]
2015-10-06 16:58:02 +08:00
Lasse Öörni
b6ff82571a Remove glEnable & glDisable calls related to GL texture types, as they're not needed with GLSL shaders, which Urho3D uses always. Ensure that SetTextureForUpdate() also correctly unbinds the old texture type if it changes in the unit. Closes #922. 2015-10-06 11:35:46 +03:00
Lasse Öörni
9fcf88eb2c Merge pull request #923 from juj/webgl_etc1_pvrtc
Add support for detecting ETC1 and PVRTC extensions in Emscripten/WebGL.
2015-10-06 10:38:50 +03:00
Yao Wei Tjong 姚伟忠
5961b7f2d6 Always use file symlinks for dummy custom library targets.
So that when in fallback mode, the post-build step will use copy_if_different for each individual file to avoid unnecessary file copying and triggering subsequent dependency to rebuild. Close #913.
2015-10-06 11:40:36 +08:00
Jukka Jylänki
78514da22e Add support for detecting ETC1 and PVRTC extensions in Emscripten/WebGL. 2015-10-05 20:22:15 -07:00
Lasse Öörni
e6416070f2 Force loading of the space glyph even if the font's charcode listing doesn't mention it. 2015-10-05 20:38:53 +03:00
Lasse Öörni
7b9692cbfb Disable frame limiter Sleep() on Emscripten builds. Closes #915. 2015-10-05 19:29:33 +03:00
Lasse Öörni
03ed41ccb7 Store resource dependencies always, so that switching on resource autoreload in the middle of execution will work correctly. Closes #919. 2015-10-05 11:54:37 +03:00
urho3d-travis-ci
ee08479d7a Travis CI: API documentation update at 2015-10-04 15:17:35 UTC.
[ci package]

Commit: 4360c5ed21

Message: Register BorderImage functions to Window in AngelScript API. Closes #912.
2015-10-04 15:17:35 +00:00
Lasse Öörni
4360c5ed21 Register BorderImage functions to Window in AngelScript API. Closes #912. 2015-10-04 18:08:44 +03:00
Yao Wei Tjong 姚伟忠
ff1ee0e4ad Fix the Urho3D DLL installation for targets in external projects. 2015-10-02 14:24:06 +08:00
Yao Wei Tjong 姚伟忠
929c842b57 Copy/Install Urho3D shared library to the runtime dir outside of 'bin'.
Fix doc target dependencies to include other non-generated dox files.
2015-10-01 00:15:26 +08:00
Lasse Öörni
65d36e4db2 Fix crash / null exception in CharacterDemo which would result if the character node did not exist after loading the scene. 2015-09-30 16:34:24 +03:00
urho3d-travis-ci
fcfd76328a Travis CI: API documentation update at 2015-09-29 18:22:02 UTC.
[ci package]

Commit: 315115295b

Message: Fix OBJ output when vertex data has all of pos/uv/normal.
2015-09-29 18:22:02 +00:00
Lasse Öörni
315115295b Fix OBJ output when vertex data has all of pos/uv/normal. 2015-09-29 21:11:04 +03:00
JSandusky
4a16d34367 Implement OBJ export functionality in editor
- Global utility method for writing Drawables to an OBJ in Drawable
- AllContentOctreeQuery added
- Minor fixes to Octree query angelscript bindings
2015-09-29 20:24:33 +03:00
JSandusky
57cff2fcd3 Apply Urho3D specific config changes 2015-09-29 20:24:32 +03:00
JSandusky
a8d42c8f99 Fix crowdmanager angelscript bindings of methods with dtPolyRef* outputs 2015-09-29 20:24:32 +03:00
JSandusky
928c08d22e Update Angelscript to 2.30.2, resolves #892 in Urho3D master 2015-09-29 20:24:31 +03:00
JSandusky
8239cc2e5e Update Angelscript to 2.30.1 2015-09-29 20:24:30 +03:00
Lasse Öörni
e76dd6e4b9 Return cast travel distance using m_closestHitFraction in ConvexCast() result. If desired, the distance to hit position from start position (earlier behavior) can be calculated manually. Closes #906. 2015-09-28 21:10:26 +03:00
Lasse Öörni
04bbaf588a Make sure a null pointer is not returned from RigidBody::GetCollidingBodies(), if a colliding body was just destroyed. 2015-09-27 15:38:30 +03:00
Yao Wei Tjong 姚伟忠
8652de217d Rename Source/Urho3D/Script to Source/Urho3D/AngelScript. 2015-09-27 16:06:49 +08:00
Yao Wei Tjong 姚伟忠
f34205fd3b More scaffolding for Clang-tools build. Pardon our dust.
[ci only: Annotate]
2015-09-26 23:35:33 +08:00
Yao Wei Tjong 姚伟忠
566d0767e2 Fix Android and Rasperry-Pi cross-compiling build due to LuaJIT change.
[ci only: Android, RPI]
2015-09-26 13:12:08 +08:00
Yao Wei Tjong 姚伟忠
8538620437 Fix Emscripten build using incoming branch 1.34.10.
Close #905.
2015-09-26 12:52:34 +08:00
Yao Wei Tjong 姚伟忠
add1c2c67b Fix a typo which had caused wrong LuaJIT OS to be detected. 2015-09-26 12:50:50 +08:00
Yao Wei Tjong 姚伟忠
1e0c51fbe7 Fix dependency issue when building AutoBinder on host with no symlink. 2015-09-25 21:30:26 +08:00
Yao Wei Tjong 姚伟忠
a25f982043 Add more scaffolding logic in build system for AutoBinder invocation.
[ci only: Annotate]
2015-09-25 17:00:45 +08:00
Yao Wei Tjong 姚伟忠
b6abf67ca1 Trim the dependency libs of our Clang-tools.
[ci only: master, Annotate]
2015-09-25 10:59:55 +08:00
Yao Wei Tjong 姚伟忠
ba837af5a4 Add skeleton project for AutoBinder tool.
[ci only: Annotate]
2015-09-24 19:57:18 +08:00
Yao Wei Tjong 姚伟忠
fb8bd56874 Minor restructuring to prepare for annotating other symbol categories.
[ci only: Annotate]
2015-09-22 21:15:39 +08:00
urho3d-travis-ci
0cff0eb837 Travis CI: API documentation update at 2015-09-22 11:15:21 UTC.
[ci package]

Commit: e55915502e

Message: Added MM_FREE mouse mode, which allows the cursor to move around and go out of the window also when hidden, and give accurate GetMousePosition() readings when inside the window. Closes #904.
2015-09-22 11:15:21 +00:00
Lasse Öörni
e55915502e Added MM_FREE mouse mode, which allows the cursor to move around and go out of the window also when hidden, and give accurate GetMousePosition() readings when inside the window. Closes #904. 2015-09-22 13:36:07 +03:00
Lasse Öörni
b6b0f01794 Merge branch 'update-assimp' 2015-09-21 19:14:25 +03:00
Yao Wei Tjong 姚伟忠
1cc28dfe1c Make it possible to invoke Annotate tool on already annotated codes.
[ci annotate]
2015-09-21 19:23:04 +08:00
Yao Wei Tjong 姚伟忠
448f3ebf44 Fix the Rewriter not saving to filesystem issue.
It turns out that RefactoringTool and RefactoringCallback classes are not made for each other.
For Travis CI - attempt to push the annotated source files into a new branch. DO NOT check out from this branch, instead just use GitHub GUI to browse through the changes.
[ci only: Annotate]
2015-09-20 15:57:37 +08:00
Lasse Öörni
69f4a405b7 Removed mention of missing functionality from CrowdNavigation help text. Fixed double -> float conversion warning. 2015-09-19 13:29:37 +03:00
Yao Wei Tjong 姚伟忠
dbd23c17a1 Add new wrapper target to invoke the newly added clang-query tool.
It seems there is a bug in the rewriter that prevents it to save the source files with replacements out to disk, so at the moment nothing get changed yet in the source tree.
[ci only: Annotate]
2015-09-19 17:21:02 +08:00
Yao Wei Tjong 姚伟忠
4355e99c36 Restructure to run the extract and annotate in a single tool.
The AST matcher is currently only able to extract the exposed class names.
[ci only: Annotate]
2015-09-18 00:11:46 +08:00
Lasse Öörni
befdd58483 Allow creating forced headless (CPU-only) vertex & index buffers although the engine itself is running in headful mode. Useful for custom created physics only collision models. 2015-09-16 21:07:50 +03:00
Lasse Öörni
10c3e15298 Do not require index data for convex hulls, as it's not used. 2015-09-16 21:07:50 +03:00
urho3d-travis-ci
a6c3915e50 Travis CI: API documentation update at 2015-09-16 17:34:44 UTC.
[ci package]

Commit: c4e3633baf

Message: Store CustomGeometry's componentID instead of nodeID to CollisionShape in SetCustomConvexHull() & SetCustomTriangleMesh() functions. This allows using multiple customgeometries in the same node.
2015-09-16 17:34:44 +00:00
Lasse Öörni
c4e3633baf Store CustomGeometry's componentID instead of nodeID to CollisionShape in SetCustomConvexHull() & SetCustomTriangleMesh() functions. This allows using multiple customgeometries in the same node. 2015-09-16 20:24:57 +03:00
urho3d-travis-ci
0e682d5bbc Travis CI: API documentation update at 2015-09-16 15:08:29 UTC.
[ci package]

Commit: 6f01d1cac9

Message: Added globalVars VariantMap to AngelScript API which can be used to share data between script modules or persist data through script reloads.
2015-09-16 15:08:29 +00:00
Lasse Öörni
6f01d1cac9 Added globalVars VariantMap to AngelScript API which can be used to share data between script modules or persist data through script reloads. 2015-09-16 17:58:49 +03:00
Lasse Öörni
8720cea4c3 More MinGW missing Direct3D defines. Potential fix for #898. 2015-09-16 13:46:35 +03:00
Lasse Öörni
07374ffb3f Remove unnecessary line from Assimp CMakeLists. 2015-09-16 11:48:42 +03:00
urho3d-travis-ci
541d590537 Travis CI: API documentation update at 2015-09-16 06:38:44 UTC.
[ci package]

Commit: b9155ca8b3

Message: CirCle -> Circle. Convert color to uint prior to drawing the lines, instead of converting on each line.
2015-09-16 06:38:44 +00:00
Lasse Öörni
b9155ca8b3 CirCle -> Circle. Convert color to uint prior to drawing the lines, instead of converting on each line. 2015-09-15 22:34:45 +03:00
Lasse Öörni
f7dac783ee Merge remote-tracking branch '299299/pull_branch' 2015-09-15 21:38:25 +03:00
Yao Wei Tjong 姚伟忠
b3e01a1424 Add another skeleton project for for script binding extractor tool.
[ci only: Annotate]
2015-09-16 00:12:46 +08:00
Yao Wei Tjong 姚伟忠
14e0626c62 Minor code formatting and suppress warning from Clang compiler. 2015-09-16 00:12:46 +08:00
Lasse Öörni
08293b4cf4 Fix non-MSVC build. 2015-09-15 18:58:49 +03:00
Lasse Öörni
eee58fe742 Nullcheck tiles before operating on them in DetourNavMesh & DetourTileCache destructors. Closes #895. 2015-09-15 17:17:52 +03:00
Lasse Öörni
6f75a777cb Fixes for non-C++11 support. 2015-09-15 16:31:54 +03:00
aster2013
92eefa7fc0 Refactor JSONValue SetVariantXXX functions. 2015-09-15 20:06:58 +08:00
aster2013
f091c6591f Recover sprite sheet support for spriter animation. 2015-09-15 19:35:19 +08:00
Lasse Öörni
07dab99469 Update Assimp to latest head from github. Closes #786. 2015-09-15 14:29:53 +03:00
lixin
8954f1d0a4 fix for typo and coding convention 2015-09-15 16:09:58 +08:00
Yao Wei Tjong 姚伟忠
f2289b10e1 Avoid hardcoding to improve the chance of using it on Windows host.
[ci annotate]
2015-09-15 14:57:06 +08:00
lixin
44638345e7 add method for circle,cross,quad debug renderering 2015-09-15 12:58:12 +08:00
urho3d-travis-ci
a1fc1b8f6e Travis CI: API documentation update at 2015-09-14 20:50:39 UTC.
[ci package]

Commit: dc7eb0d17a

Message: Make the editor's cube map save path setting relative to the scene resource path, instead of being a relative filesystem path. Ensure that the generated cube map XML does not have double slashes and uses resource path relative filenames. Minor code cleanup.
2015-09-14 20:50:39 +00:00
Lasse Öörni
f2ad55556d Create intermediate paths in FileSystem::CreateDir() as necessary. 2015-09-14 23:39:45 +03:00
Lasse Öörni
b8fea26470 Do not attempt to capture 16bit or float textures to Image, as that is unsupported by the Image class. Delete image if format was illegal. 2015-09-14 21:22:41 +03:00
Lasse Öörni
06f4eee4a9 Merge remote-tracking branch 'jsandusky/CubeMapGeneration' 2015-09-14 21:01:21 +03:00
urho3d-travis-ci
9bbc81e6a4 Travis CI: API documentation update at 2015-09-14 17:57:42 UTC.
[ci package]

Commit: ae0544291a

Message: Add wrapper functions for NavigationMesh functions that take optional pointer parameters to fix crashes on MSVC. Closes #889.
2015-09-14 17:57:42 +00:00
Lasse Öörni
ae0544291a Add wrapper functions for NavigationMesh functions that take optional pointer parameters to fix crashes on MSVC. Closes #889. 2015-09-14 20:47:47 +03:00
Yao Wei Tjong 姚伟忠
c68f957dc4 Add a new section on how to start the Clang-tools development.
[ci annotate]
2015-09-14 22:44:20 +08:00
Yao Wei Tjong 姚伟忠
f9fd477103 For Travis CI - attempt to fix Annotator linking issue on CI server.
[ci only: Annotate, Emscripten]
2015-09-14 22:01:12 +08:00
Yao Wei Tjong 姚伟忠
440bc484e7 Add skeleton project for Annotator tool.
Currently it just dumps the AST out instead of actually annotating.
[ci only: master, Annotate]
2015-09-14 20:13:26 +08:00
Lasse Öörni
556fe7de87 Make skeleton bones initial transform modifiable in AngelScript. 2015-09-14 10:59:34 +03:00
Yao Wei Tjong 姚伟忠
2fcf1d3146 Only patch Android assets directories when it is being requested.
Without the patch though, the FileSystem::DirExist() works with reduce accuracy and FileSystem::ScanDir() no longer ables to differentiate between files and directories (thus, cannot scan recursively as well).
2015-09-13 21:35:51 +08:00
Lasse Öörni
9b41a9974c Safeguard against animation state or its node getting removed during trigger processing. Iterate using indices instead of iterator in AnimationController::Update() so that adding animation while iterating doesn't cause potential illegal memory access. Fixes #885. 2015-09-12 16:40:49 +03:00
Lasse Öörni
2fa676337b Removed unneeded script API helper functions. 2015-09-11 16:18:40 +03:00
urho3d-travis-ci
e08883122c Travis CI: API documentation update at 2015-09-11 13:17:42 UTC.
[ci package]

Commit: 7356bdecfb

Message: Add API to Animation / AnimationTrack to create tracks and keyframes and expose it to script. Change AnimationTracks to be stored in a HashMap so that removal and creation is safe without invalidating pointers. Changed the AnimationTriggerPoint API to resemble the AnimationTrack API, and change it to be handled as a value type in AngelScript API. Closes #878.
2015-09-11 13:17:42 +00:00
Lasse Öörni
7356bdecfb Add API to Animation / AnimationTrack to create tracks and keyframes and expose it to script. Change AnimationTracks to be stored in a HashMap so that removal and creation is safe without invalidating pointers. Changed the AnimationTriggerPoint API to resemble the AnimationTrack API, and change it to be handled as a value type in AngelScript API. Closes #878. 2015-09-11 16:08:48 +03:00
Yao Wei Tjong 姚伟忠
fe6d397609 Revert back whitespaces found in the original 3rdparty source file.
Make life easier when we have merged from upstream again.
2015-09-11 15:19:56 +08:00
Yao Wei Tjong 姚伟忠
a2d8f8670e Revert back the generated toluabind.c. 2015-09-10 15:18:48 +08:00
JSandusky
da0463ec49 Add cubemap generation capability to the Urho3D editor 2015-09-10 00:13:38 -04:00
Yao Wei Tjong 姚伟忠
71a8f6d104 Parameterise the asset directory indicator character(s) using env-var. 2015-09-10 00:51:58 +08:00
Lasse Öörni
7c5e441e89 Fixed Graphics::ResolveToTexture() to support less than full screen viewport on D3D11. Fixed missing release of source texture in failure case with a multisampled screenshot. Closes #882. 2015-09-09 18:04:06 +03:00
aster2013
b8a21972ed Add empty line at file end.[ci skip] 2015-09-09 13:57:10 +08:00
aster2013
1c58846f2d Add more curve type support in Spriter. 2015-09-09 13:48:47 +08:00
Lasse Öörni
87e882e261 Fix Graphics::ResolveToTexture() erroneously reading current rendertarget instead of backbuffer on D3D11. Work around less-than-fullscreen viewport not resolving properly on D3D11. 2015-09-08 18:13:57 +03:00
Yao Wei Tjong 姚伟忠
ac2b2ba121 Add new JNI function to interface with AssetManager.list() method.
Fix #855.
2015-09-08 22:37:45 +08:00
aster2013
d1f22dd80a Add missing files. 2015-09-08 13:55:46 +08:00
aster2013
27aaabd6d7 Move spriter from ThirdParty to Urho2D, credit to @weitjong. 2015-09-08 13:52:30 +08:00
urho3d-travis-ci
fe5b01b56d Travis CI: API documentation update at 2015-09-07 11:31:39 UTC.
[ci package]

Commit: 634393d7c8

Message: Add network replication for animations' removeOnCompletion flag. Add GetRemoveOnCompletion(). Add Lua binding for removeOnCompletion. Fix missing AngelScript binding for GetFadeTime().
2015-09-07 11:31:39 +00:00
Lasse Öörni
634393d7c8 Add network replication for animations' removeOnCompletion flag. Add GetRemoveOnCompletion(). Add Lua binding for removeOnCompletion. Fix missing AngelScript binding for GetFadeTime(). 2015-09-07 14:23:03 +03:00
Lasse Öörni
29b178914c Merged hjmediastudios/master. Adds removeOnCompletion functionality to AnimationController. 2015-09-07 13:33:57 +03:00
urho3d-travis-ci
b159735d85 Travis CI: API documentation update at 2015-09-07 09:02:35 UTC.
[ci package]

Commit: b61a239d51

Message: Merge pull request #877 from bjorn/fix-tmx-docs

Removed outdated warning in TMX documentation
2015-09-07 09:02:35 +00:00
aster2013
fc2a3805ea Remove line end spaces.[ci skip] 2015-09-07 12:22:29 +08:00
aster2013
60dff27440 Merge branch 'spine-spriter-new' 2015-09-07 12:19:24 +08:00
aster2013
5d50ad4b71 Change SetAnimtion function in AnimatedSprite2D. 2015-09-06 20:37:15 +08:00
aster2013
dc0e1023da Add entity attribute in AnimatedSprite2D. 2015-09-06 17:58:20 +08:00
aster2013
2de2f633c6 Minor Fix. 2015-09-06 17:05:20 +08:00
aster2013
0d20befa70 Fix build error on Ubuntu. 2015-09-06 12:02:46 +08:00
aster2013
5dedc993a9 Remove URHO3D_SPINE option, if exists ThirdParty/spine make URHO3D_SPINE enabled. 2015-09-05 23:44:45 +08:00
Yao Wei Tjong 姚伟忠
dbfd0ca65c Add new job matrix for linked LLVM bitcode Emscripten CI build.
Upload HTML5 samples built from this new job matrix.
[ci package] [ci only: Emscripten]
2015-09-05 23:21:23 +08:00
aster2013
5bcb12afa2 Fix comment. 2015-09-05 22:28:39 +08:00
aster2013
0cded698e4 Merge from spine-spriter branch.
Main changes:
     Make spriter as a lib
     Enable spine support in AnimatedSprite2D and Animation2D.
2015-09-05 22:23:35 +08:00
Lasse Öörni
0fa04d4c3f Keep track of animation being dirtied while model was invisible, and force update in that case during UpdateGeometry(). Potentially a fix for #875. 2015-09-04 16:35:04 +03:00
Yao Wei Tjong 姚伟忠
3e765ba446 Minor code clean up for build system.
Suppress tolua++ tool not found message in the stderr stream on initial build.
Raise a fatal error message when user attempting to generate VS2008 project with spaces in the source/build tree path.
2015-09-04 13:14:52 +08:00
Yao Wei Tjong 姚伟忠
c4a138ae4f Add new build option to allow host tool building to use native ABI.
Possibly fix issue #872.
2015-09-04 11:20:26 +08:00
Lasse Öörni
0d54cb1b7f Fallback for VS2008, do not enclose library names in quotes for the librarian. Downside is that build path with spaces will not work (again.) Closes #873. 2015-09-03 18:23:41 +03:00
Yao Wei Tjong 姚伟忠
353ee7f870 Remove force include as now export header is auto-included once again. 2015-09-03 22:40:13 +08:00
Yao Wei Tjong 姚伟忠
2731e48405 Improve build robustness. Prevent make clean to remove toluabind.c. 2015-09-03 20:14:23 +08:00
Lasse Öörni
c2301bfc6f Remove the mechanism to comment out "attribute" as the COMPILEVS / COMPILEPS define mechanism already takes care of that, as long as it's also used for user-defined custom attributes. Fixes #870. 2015-09-03 11:35:22 +03:00
urho3d-travis-ci
1486904964 Travis CI: API documentation update at 2015-09-02 15:48:49 UTC.
[ci package]

Commit: 5bd672f02a

Message: Add missing Lua bindings to SplinePath. Make hierarchy & inspector windows the same width on editor startup. Remove unnecessary attributes from EditorHierarchyWindow.xml.
2015-09-02 15:48:49 +00:00
Lasse Öörni
5bd672f02a Add missing Lua bindings to SplinePath. Make hierarchy & inspector windows the same width on editor startup. Remove unnecessary attributes from EditorHierarchyWindow.xml. 2015-09-02 18:07:42 +03:00
MonkeyFirst
aafca39d39 add length property for scripts 2015-09-02 18:07:32 +03:00
Yao Wei Tjong 姚伟忠
4914b0e71c Remove file generation timestamp to avoid unnecessary git diff. 2015-09-02 22:40:11 +08:00
Yao Wei Tjong 姚伟忠
d71b76ed27 Add automation to generate toluabind.c and toluabind.h. 2015-09-02 17:40:01 +08:00
Lasse Öörni
0a6a8a9de6 Allow the application to get access to a View's occlusion buffer for debug visualization. Clear occlusion buffer to farclip Z value instead of maximum (0x7fffffff) 2015-08-31 20:57:00 +03:00
Lasse Öörni
6b33ba60f9 Allow multiple resource routers in ResourceCache. Script subsystem installs its own resource router to allow loading compiled scripts (.asc) when the originals (.as) don't exist. Closes #864. 2015-08-31 12:41:12 +03:00
Yao Wei Tjong 姚伟忠
4ff826ddf8 Support spaces in source and/or build tree path for Windows build.
Close #779.
2015-08-31 16:15:46 +08:00
Yao Wei Tjong 姚伟忠
05e4001697 Support spaces in source and/or build tree path for OSX and iOS build.
[ci only: OSX]
2015-08-30 18:27:58 +08:00
Yao Wei Tjong 姚伟忠
a234ab4e6e Support spaces in source and/or build tree path for Linux build. 2015-08-30 16:40:41 +08:00
Lasse Öörni
7845389866 Nullcheck UI in UIElement functions that may be called at exit time when UI is already destroyed. Closes #860. 2015-08-29 12:41:12 +03:00
Yao Wei Tjong 姚伟忠
f9e27e33f2 Ensure Lua function references are released when refcounter reaches 0.
Add support for constructing Lua function from C function.
2015-08-28 16:27:30 +08:00
Yao Wei Tjong 姚伟忠
2a5d659c2e Reorganize includes. [ci skip] 2015-08-28 10:23:56 +08:00
Yao Wei Tjong 姚伟忠
c2471a240a Reorganize includes for Samples and Extras.
Since the URHO3D_PCH build option is made available to support non-PCH build, our build system does not rely on precompiled header to include the Urho3D.h export header anymore. The export header is auto-included by one of Urho3D headers when it is required using the right format with the help of URHO3D_IS_BUILDING compiler define. As such, there is no need to explicitly include Urho3D.h in external project too. Sorry for the flip-flop.
2015-08-27 18:07:20 +08:00
Yao Wei Tjong 姚伟忠
9f75ea54a1 Minor clean up to remove unused instance variable. 2015-08-27 18:06:57 +08:00
aster2013
349a3ee981 Sort include file in samples. 2015-08-27 13:54:54 +08:00
urho3d-travis-ci
d17dbebcf4 Travis CI: API documentation update at 2015-08-27 03:10:06 UTC.
[ci package]

Commit: d8cfd72571

Message: Fix JSONNumberType enum error.
2015-08-27 03:10:06 +00:00
aster2013
d8cfd72571 Fix JSONNumberType enum error. 2015-08-27 10:59:41 +08:00
aster2013
b27d32a134 JSONFile
- SetRoot
    + GetRoot
JSONValue
    Rename GetUint to GetUInt
    - GetType
    + GetValueType GetNumberType
    + SetVariantXXX GetVariantXXX
2015-08-26 20:26:51 +08:00
aster2013
7082d17555 Add FALLBACK_TO_COPY argument in create_symlink.[ci skip]. 2015-08-26 20:02:13 +08:00
Lasse Öörni
e0ce3e4ad0 Take into account CollisionShape's offset position & rotation in ConvexCast. Closes #856. 2015-08-26 14:52:03 +03:00
urho3d-travis-ci
46b7d0cd89 Travis CI: API documentation update at 2015-08-25 07:28:37 UTC.
[ci package]

Commit: 2fafa4c366

Message: Add rudimentary Lua function overload checker to catch invalid order.
Fix two of the pkg files being detected to have wrong order declared.
2015-08-25 07:28:37 +00:00
Yao Wei Tjong 姚伟忠
2fafa4c366 Add rudimentary Lua function overload checker to catch invalid order.
Fix two of the pkg files being detected to have wrong order declared.
2015-08-25 15:19:53 +08:00
urho3d-travis-ci
25c00c895d Travis CI: API documentation update at 2015-08-24 14:22:21 UTC.
[ci package]

Commit: 770be2319e

Message: Fix Lua bindings for AnimationSet2D and Vector2 classes.
2015-08-24 14:22:21 +00:00
Yao Wei Tjong 姚伟忠
770be2319e Fix Lua bindings for AnimationSet2D and Vector2 classes. 2015-08-24 22:12:23 +08:00
urho3d-travis-ci
d78ea9175a Travis CI: API documentation update at 2015-08-24 10:23:12 UTC.
[ci package]

Commit: 934c640835

Message: Fix Lua binding for Localization and Database subsystems.
Fix Lua version of the localization demo.
2015-08-24 10:23:12 +00:00
Yao Wei Tjong 姚伟忠
934c640835 Fix Lua binding for Localization and Database subsystems.
Fix Lua version of the localization demo.
2015-08-24 18:14:06 +08:00
urho3d-travis-ci
3b8b06783e Travis CI: API documentation update at 2015-08-24 05:40:12 UTC.
[ci package]

Commit: 61647bb887

Message: Optimize Lua Variant class bindings.
Take advantage of Lua being type-less by binding generic methods that can handle all the supported data type conversion.
At the same time reduce the amount of the overloads generated by tolua++ which could be potentially just dead code.
2015-08-24 05:40:12 +00:00
Yao Wei Tjong 姚伟忠
61647bb887 Optimize Lua Variant class bindings.
Take advantage of Lua being type-less by binding generic methods that can handle all the supported data type conversion.
At the same time reduce the amount of the overloads generated by tolua++ which could be potentially just dead code.
2015-08-24 13:26:25 +08:00
urho3d-travis-ci
9c140b503a Travis CI: API documentation update at 2015-08-21 16:27:51 UTC.
[ci package]

Commit: 53b4afcab6

Message: Fix TOC for generated LuaScript API documentation page.
2015-08-21 16:27:51 +00:00
Yao Wei Tjong 姚伟忠
53b4afcab6 Fix TOC for generated LuaScript API documentation page. 2015-08-22 00:14:15 +08:00
urho3d-travis-ci
0bbf66f40f Travis CI: API documentation update at 2015-08-21 15:51:57 UTC.
[ci package]

Commit: b1e1ab47c3

Message: Fix Lua version of crowd simulation demo due to VariantMap API changes.
2015-08-21 15:51:57 +00:00
Yao Wei Tjong 姚伟忠
a0125a19c1 Move the pieces around for code reuse opportunity. 2015-08-21 23:32:37 +08:00
Yao Wei Tjong 姚伟忠
937b0bcbc6 Add exposed tolua functions into documentation page. 2015-08-21 23:32:36 +08:00
Yao Wei Tjong 姚伟忠
35f3bb0a4d Store Urho3D context directly inside Lua state global table.
Remove static Lua state to context mapping. Expose the context as global property.
Prevent potential Lua VM crash when trying to get event sender or handler outside of event handling.
2015-08-21 23:32:36 +08:00
Lasse Öörni
e7b492b307 Fix integer overflow in the Random(int) functions when the range is large. 2015-08-21 17:29:51 +03:00
Lasse Öörni
42fcc37acd Merge remote-tracking branch 'silverkorn/master' 2015-08-21 13:19:12 +03:00
urho3d-travis-ci
9a23f5f172 Travis CI: API documentation update at 2015-08-21 09:50:38 UTC.
[ci package]

Commit: f0b3c8b805

Message: Allow interchangeable numeric value in Variant GetXXX(), e.g. GetFloat() succeeds when it's actually an int. Comparison still requires type and value to match exactly. Closes #851.
2015-08-21 09:50:38 +00:00
Lasse Öörni
f0b3c8b805 Allow interchangeable numeric value in Variant GetXXX(), e.g. GetFloat() succeeds when it's actually an int. Comparison still requires type and value to match exactly. Closes #851. 2015-08-21 11:59:13 +03:00
Lasse Öörni
75b1b53416 Re-fix AngelScript API. JSONArray & JSONObject are not registered into AngelScript, so they cannot be mentioned in any bindings. 2015-08-21 11:42:35 +03:00
aster2013
cd71104e90 Merge branch 'master' of https://github.com/urho3d/Urho3D
Conflicts:
	Source/Urho3D/Script/ResourceAPI.cpp
2015-08-21 15:42:24 +08:00
aster2013
57551ca717 Remove At function in JSONValue, add SetXXX functions for LuaAPI. 2015-08-21 15:36:20 +08:00
urho3d-travis-ci
2486d36a60 Travis CI: API documentation update at 2015-08-21 07:04:33 UTC.
[ci package]

Commit: f7dd38d70e

Message: Remove M_INFINITY default value from PhysicsWorld AngelScript bindings, which is illegal to Bullet.
2015-08-21 07:04:33 +00:00
Lasse Öörni
f7dd38d70e Remove M_INFINITY default value from PhysicsWorld AngelScript bindings, which is illegal to Bullet. 2015-08-21 09:56:55 +03:00
Lasse Öörni
83c889ab48 Remove invalid JSONValue AngelScript bindings, which prevent AngelScript applications from starting. Fixes #852. 2015-08-21 09:56:15 +03:00
aster2013
ddc19bf278 Fix name error, add iterator for JSON object type. 2015-08-21 10:56:19 +08:00
Silverkorn
792531552f Fix missing escape characters for the Zerobrane Studio API. 2015-08-20 22:11:57 -04:00
aster2013
d3247fccf5 Minor fixed. 2015-08-21 00:30:49 +08:00
aster2013
c0014f40bb Accroding the discuss on forum by Lasse and other users and refer to the json code in Lasse's Turso3D engine, rewrite JSONFile and JSONValue class, make it looks like JSON. 2015-08-21 00:12:42 +08:00
Lasse Öörni
7b312275a2 Merge remote-tracking branch 'bjorn/fix-objecttype' 2015-08-20 10:59:45 +03:00
Lasse Öörni
b456f369c5 Merge remote-tracking branch 'bjorn/fix-typo' 2015-08-20 10:59:39 +03:00
Yao Wei Tjong 姚伟忠
f7a30b8306 Add back the logic to first check if keybinding length is correct. 2015-08-20 07:51:17 +08:00
Thorbjørn Lindeijer
094d146c3c TmxFile2D: Fix determination of object type
TmxObjectGroup2D::Load was using the presence of the "width" and
"height" attributes for deciding whether an object was a rectangle,
ellipse or something else. This is wrong, and the approach breaks for
maps saved in more recent versions of Tiled. This is because the width
and height are only saved when they differ from the default (0), and
because the width and height are now also used to store the size of tile
objects.

So for maps saved with Tiled >= 0.12, this change:

* Fixes identification of rectangle and ellipse objects with 0 width and
  height (which was leading to the entire map failing to load).
* Fixes identification of tile objects.
2015-08-19 21:45:22 +02:00
Thorbjørn Lindeijer
64afa327de Fix a typo: worlsScaleX -> worldScaleX 2015-08-19 21:26:47 +02:00
Yao Wei Tjong 姚伟忠
ded284e6c3 Fix a copy pasta error.
Related to commit 530950ed7c.
2015-08-20 00:41:05 +08:00
Lasse Öörni
7499e19998 Prevent creation of multiple value childs to XMLElement, when SetValue() is called several times. 2015-08-19 18:51:21 +03:00
Yao Wei Tjong 姚伟忠
530950ed7c Store keymap bindings for hat using an IntRect instead of String.
Fix #847.
2015-08-19 23:40:37 +08:00
Lasse Öörni
d4696f92a0 Make sure adding & deleting RigidBody2D fixtures doesn't reset the mass when not wanted (useFixtureMass = false). Fixed some mistaken if statement logic, and improved some RigidBody2D comments. Note that when useFixtureMass = false, you must set nonzero inertia to get rotation. Closes #844. 2015-08-19 18:19:31 +03:00
Yao Wei Tjong 姚伟忠
55635bdf3a Replace friend func with explicit template specialization for Get().
Credit to Aster Jian.
2015-08-19 22:11:27 +08:00
Lasse Öörni
44acf54118 Make sure the lowest bone influences are dropped if too many. 2015-08-18 21:58:24 +03:00
Lasse Öörni
b631612ff7 Force normalization of vertex weights in AssetImporter. More than 4 weights is no longer a fatal error, instead any more than that are dropped and a warning is logged. 2015-08-18 19:27:25 +03:00
Yao Wei Tjong 姚伟忠
102e8862bd Avoid repetition by accessing Variant::value directly via friend func. 2015-08-19 00:13:51 +08:00
urho3d-travis-ci
5c4562ba67 Travis CI: API documentation update at 2015-08-18 09:26:22 UTC.
[ci package]

Commit: b202aa6ee7

Message: Minor typo correction on Lua scripting documentation page.
2015-08-18 09:26:22 +00:00
Yao Wei Tjong 姚伟忠
4c7f8664b6 Further improve Lua binding for Variant and VariantMap classes.
- VariantMap can be indexed by a StringHash object directly.
- Bind a generic Get() method for Variant class to automatically "unbox" the stored object and assign it to a type less Lua object.
- Prevent Lua VM crashes when invalid type name is being passed when calling GetVoidPtr() and GetPtr().
2015-08-18 17:04:55 +08:00
Lasse Öörni
0f0a73c9f6 Fallback when crossproduct in Quaternion::FromLookRotation() becomes zero. Fixes #846. 2015-08-17 18:16:00 +03:00
Lasse Öörni
adc04560ce Added warning for infinite PhysicsWorld raycast. 2015-08-17 11:50:14 +03:00
Yao Wei Tjong 姚伟忠
1cc09cb704 For Coverity Scan - check in the failed model file anyway.
[ci skip]
2015-08-17 12:01:46 +08:00
Yao Wei Tjong 姚伟忠
0e031852d1 Suppress most of the false positive on out-of-bound access.
The affect of this change can only be checked after the next Coverity Scan run on this Thursday.
2015-08-16 16:44:19 +08:00
Yao Wei Tjong 姚伟忠
ff501b39cc Fix CID 105884 (UNINIT_CTOR) - initialize Renderer2D::viewMask_. 2015-08-16 16:44:19 +08:00
urho3d-travis-ci
002d5a2688 Travis CI: API documentation update at 2015-08-16 07:57:58 UTC.
[ci package]

Commit: 69dd312d54

Message: Reformat and reorganize include for Navigation sub-library.
2015-08-16 07:57:58 +00:00
Yao Wei Tjong 姚伟忠
69dd312d54 Reformat and reorganize include for Navigation sub-library. 2015-08-16 15:43:13 +08:00
Yao Wei Tjong 姚伟忠
ac0a712f0b Refactor to rename 'filter type' to 'query filter type'.
Minor clean up on the NavBuildData class.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
a58d855e60 Do not assume the location of the NavigationMesh component. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
27cc9c4277 Add filter and obstacle avoidance type attribute to CrowdManager class.
Enhance Editor to have functionality to edit the CrowdManager's filter and obstacle avoidance type attributes.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
b7d03abfe1 Add navigation mesh id attribute to CrowdManager class. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
c9bc4cbae3 Add new event for crowd agent formation.
Add convenient methods for querying point, path, raycast, etc using crowd's extent and filter type configuration.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
549b6fd8be Add crowd update callback support. Remove redundant vectors. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
2c3033d62a Limit interface to use only crowd agent's parameters and public APIs. 2015-08-16 15:43:12 +08:00
urho3d-travis-ci
1cd8ca0cd7 Travis CI: API documentation update at 2015-08-15 10:33:47 UTC.
[ci package]

Commit: 7f4b115744

Message: Make Drawable2D respect viewmask in rendering & raycast. Added viewmask attribute to Drawable2D's. Added proper category to 2D constraints to allow adding in editor. Closes #843.
2015-08-15 10:33:47 +00:00
Lasse Öörni
7f4b115744 Make Drawable2D respect viewmask in rendering & raycast. Added viewmask attribute to Drawable2D's. Added proper category to 2D constraints to allow adding in editor. Closes #843. 2015-08-15 13:23:37 +03:00
Yao Wei Tjong 姚伟忠
373d989d53 For Travis CI - keep the backup logic simple and stupid.
Related to commit 9d1a66d108
[ci skip]
2015-08-15 11:18:06 +08:00
Lasse Öörni
c24d709ee1 Use a free area index parameter instead of IntRect in AreaAllocator::SplitRect() to make it clear that the freeAreas_ is being manipulated inside the function. 2015-08-14 21:16:39 +03:00
Lasse Öörni
c3427a6dd5 Merge remote-tracking branch 'cosmy1/master' 2015-08-14 20:41:38 +03:00
Ivan K
b63167ebd8 fix add RigidBody2D after CollisionShape2D 2015-08-14 18:34:41 +04:00
cosmy
4f1c071452 Const references
Fixed some parameters wrongly passed by value
2015-08-14 15:10:20 +02:00
urho3d-travis-ci
ab2776e7d3 Travis CI: API documentation update at 2015-08-14 10:55:47 UTC.
[ci package]

Commit: 9e331d04d4

Message: Ensure correct 0,1,2 order in the RigidBody2D body type enum for serialization. Closes #837.
2015-08-14 10:55:47 +00:00
Lasse Öörni
9e331d04d4 Ensure correct 0,1,2 order in the RigidBody2D body type enum for serialization. Closes #837. 2015-08-14 13:40:22 +03:00
Lasse Öörni
3dcab4c039 Disable VS warning C6293, as the unsigned overflow trick used in reverse iteration is intentional. Added missing DebugNew.h includes. Closes #832. 2015-08-14 11:48:53 +03:00
Yao Wei Tjong 姚伟忠
7947df8299 For Travis CI - give instruction to [ccache clear]. Close #838. 2015-08-14 13:31:37 +08:00
cosmy
1b9f1f7fd9 Wrong Casting
Fixed some casting warnings
2015-08-14 01:26:46 +02:00
cosmy1
3e62884d69 Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 19:01:27 +02:00
cosmy1
258afe775b Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 19:00:45 +02:00
cosmy1
abcd534d30 Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 18:45:29 +02:00
cosmy1
ac5aac32f2 Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 18:43:52 +02:00
urho3d-travis-ci
a99da6d952 Travis CI: API documentation update at 2015-08-12 16:20:01 UTC.
[ci package]

Commit: 93a7ae4352

Message: Bind original Variant::GetBuffer() to Lua as GetRawBuffer().
Taking advantage of the new vector to table conversion template function.
2015-08-12 16:20:01 +00:00
Yao Wei Tjong 姚伟忠
93a7ae4352 Bind original Variant::GetBuffer() to Lua as GetRawBuffer().
Taking advantage of the new vector to table conversion template function.
2015-08-13 00:11:09 +08:00
Yao Wei Tjong 姚伟忠
b1c3261b91 Fix CID 104877 (UNINIT) - useScissor_ is uninitialized.
In fact this instance variable is not being used anymore.
2015-08-12 22:51:06 +08:00
Yao Wei Tjong 姚伟忠
55e68f4e0e Code cleanup and bug fixes for DB subsystem and ToluaUtils refactoring. 2015-08-12 17:33:25 +08:00
urho3d-travis-ci
d949b19b8d Travis CI: API documentation update at 2015-08-11 17:29:55 UTC.
[ci package]

Commit: 8658afabb0

Message: Clean up tolua++ bindings for handling (POD)Vector to table conversion.
Any C++ classes (either RefCounted or not) that are exposed to Lua scripting should be now supported in this conversion via new template function implementation. There should be no need to modify the ToluaUtils.cpp and .h anymore.
2015-08-11 17:29:55 +00:00
Yao Wei Tjong 姚伟忠
8658afabb0 Clean up tolua++ bindings for handling (POD)Vector to table conversion.
Any C++ classes (either RefCounted or not) that are exposed to Lua scripting should be now supported in this conversion via new template function implementation. There should be no need to modify the ToluaUtils.cpp and .h anymore.
2015-08-12 01:17:56 +08:00
Yao Wei Tjong 姚伟忠
1f3f5e4933 Suppress unavoidable build warnings when generating Lua bindings. 2015-08-10 22:49:50 +08:00
Yao Wei Tjong 姚伟忠
777889580f Cancel the GCC -ffast-math option only when the flag is found. 2015-08-10 18:51:27 +08:00
Lasse Öörni
79ef4c54c5 Fix ValueAnimation to override BeginLoad() correctly. Closes #828. 2015-08-10 12:06:04 +03:00
Lasse Öörni
5ce33abb51 Fix preprocessor condition in DatabaseAPI.cpp. 2015-08-10 11:20:54 +03:00
urho3d-travis-ci
875dffcc92 Travis CI: API documentation update at 2015-08-09 18:06:19 UTC.
[ci package]

Commit: 7a7f250996

Message: Add new documentation page for database subsystem.
2015-08-09 18:06:19 +00:00
Yao Wei Tjong 姚伟忠
7a7f250996 Add new documentation page for database subsystem. 2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
5fb6482e14 Add dependent C++ source file when building PackageTool for Emscripten.
[ci only: Emscripten]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
4edba76ec2 Fix AngelScript and Lua bindings. Fix Lua samples to use new getters.
Tips: use this one liner to convert Lua scripts to use new getter signature.
find . -type f -exec grep -lP "eventData:Get.+?\(.+?\)" {} \; |xargs -n 1  perl -pi.bak -e 's/eventData:Get(.+?)\((?:([^,)]+),\s*(.*?)|(.+?))\)/eventData[\3\4]:Get\1(\2)/g'
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
4807206bd7 Bind all variant types from C++ to Lua and vice versa. See #820.
Other misc Lua binding enhancements:
- VariantMap in Lua can be indexed using both string literal and unsigned int literal. Internally they are both converted to StringHash. Lua table of strings/variants and any registered user types are now accepted as RHS value when assigning VariantMap's value, the variant type would be set accordingly based on the lua object type. Refcounted object would end up as VAR_PTR while others as VAR_VOIDPTR.
- Variant knows how to convert to string implicitly.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
8acb9e6441 Fix Variant and VariantMap bindings to Lua. Close #820.
Add Lua bindings to return VariantVector as table of Variant.
Fix Lua database demo. It is in full working condition now.
[ci only: database, OSX]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
842de2fe48 Exposed the database subsystem API to scripting.
Add AngelScript version of the database demo.
Add Lua versio nof the database demo. WIP.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
d8181e0b5b Update to nanodbc release 2.2.2.
No need for local modifications anymore as they are already merged into nanodbc upstream repo.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
33145bf18f Use numCols to determine whether a result object impl has resultset.
Only supports one resultset per execution at the moment.
Enhance db sample demo to accept connectiong string setting to connect to different database during runtime.
[skip ci]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
d39a80b1a9 Pass compiler defines from the ODBC config tool to our build system.
Make FindODBC module to prefer unixODBC over libiodbc when both ODBC driver managers are available.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
f420b14ad2 Make URHO3D_DATABASE_ODBC suppresses URHO3D_DATABASE_SQLITE.
Correct a typo in the database demo.
[ci skip]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
0e2af9c788 Initial ODBC API support.
Enhance db demo to work with ODBC database connectioon string.
2015-08-10 01:51:25 +08:00
Yao Wei Tjong 姚伟忠
7d6f0ffeab Fix Database subsystem on Emscripten build.
[ci only: Emscripten]
2015-08-10 01:51:25 +08:00
Yao Wei Tjong 姚伟忠
560ef3bb37 Add Database subsystem. Add new build option to enable it.
Initial C++ sample database demo using execute immediate mode.
2015-08-10 01:51:25 +08:00
Lasse Öörni
ed39940b2e Added float <> half-float conversion functions. 2015-08-09 12:03:18 +03:00
Lasse Öörni
ca71cafcf5 Unify float texture data upload behavior between D3D & OpenGL: half float textures are expected to be provided in that format, and are not converted from single precision on OpenGL anymore. 2015-08-09 01:32:43 +03:00
Lasse Öörni
a626021d95 Fixes for VS texture fetch on D3D11. 2015-08-06 22:28:05 +03:00
urho3d-travis-ci
bc58db968d Travis CI: API documentation update at 2015-08-06 13:59:00 UTC.
[ci package]

Commit: b53b584123

Message: 8-bit render order support in materials. This adjusts the drawing order within a scene pass, and takes precedence over both state & distance sorting.
2015-08-06 13:59:00 +00:00
Lasse Öörni
b53b584123 8-bit render order support in materials. This adjusts the drawing order within a scene pass, and takes precedence over both state & distance sorting. 2015-08-06 16:42:52 +03:00
Lasse Öörni
3bd55ecc14 Fix DDS size calculation errors and potential unwanted object destruction in Image class. Closes #826. 2015-08-05 21:22:03 +03:00
urho3d-travis-ci
1592c95915 Travis CI: API documentation update at 2015-08-05 16:16:10 UTC.
[ci package]

Commit: a737bbb671

Message: Fix terrain occlusion leaving holes in the occlusion geometry, and being over-aggressive with height reduction, which would result in poor occlusion. Allow to configure terrain number of LOD levels to be less than 4. Allow to configure the LOD level used for terrain occlusion (not recommended to be changed.) Closes #825.
2015-08-05 16:16:10 +00:00
Lasse Öörni
a737bbb671 Fix terrain occlusion leaving holes in the occlusion geometry, and being over-aggressive with height reduction, which would result in poor occlusion. Allow to configure terrain number of LOD levels to be less than 4. Allow to configure the LOD level used for terrain occlusion (not recommended to be changed.) Closes #825. 2015-08-05 19:05:18 +03:00
urho3d-travis-ci
4d0f0b9ef3 Travis CI: API documentation update at 2015-08-05 12:26:11 UTC.
[ci package]

Commit: 5edc729ee5

Message: Remove occlusionOffset from TerrainPatch, instead calculate the minimum height in the neighborhood of each lowest LOD terrain vertex. Occlusion still uses lowest LOD to not use up occlusion triangles quickly. Fixes #822.
2015-08-05 12:26:11 +00:00
Lasse Öörni
5edc729ee5 Remove occlusionOffset from TerrainPatch, instead calculate the minimum height in the neighborhood of each lowest LOD terrain vertex. Occlusion still uses lowest LOD to not use up occlusion triangles quickly. Fixes #822. 2015-08-05 15:15:19 +03:00
Lasse Öörni
681e91635e Handle caching of SmoothedTransform in RigidBody component using a weak pointer instead of a bool flag so that it can be deleted by the client if necessary, without getting a state mismatch. 2015-08-05 10:47:06 +03:00
urho3d-travis-ci
be1feb49be Travis CI: API documentation update at 2015-08-05 00:53:57 UTC.
[ci package]

Commit: 7da3eb5616

Message: Exposed various kNet connection stats.
2015-08-05 00:53:57 +00:00
Lasse Öörni
7da3eb5616 Exposed various kNet connection stats. 2015-08-04 22:26:45 +03:00
urho3d-travis-ci
ad1ea20f20 Travis CI: API documentation update at 2015-08-04 14:58:47 UTC.
[ci package]

Commit: fba5948ab0

Message: Allow to disable rendering of the whole UI (except for the cursor and modal elements) by setting the UI root to not visible. Added new function UIElement::IsVisibleEffective() which checks for propagated visibility. Make sure to clear focus also if a child element (that has focus) becomes effectively invisible. Closes #811.
2015-08-04 14:58:47 +00:00
Lasse Öörni
fba5948ab0 Allow to disable rendering of the whole UI (except for the cursor and modal elements) by setting the UI root to not visible. Added new function UIElement::IsVisibleEffective() which checks for propagated visibility. Make sure to clear focus also if a child element (that has focus) becomes effectively invisible. Closes #811. 2015-08-04 17:47:46 +03:00
Lasse Öörni
b10b28eef3 Do not allow invisible UI elements to have focus. Lose focus when an element is hidden. Closes #819. 2015-08-03 13:20:29 +03:00
urho3d-travis-ci
0eda0fa9e2 Travis CI: API documentation update at 2015-07-31 16:47:06 UTC.
[ci package]

Commit: 97e8e89e23

Message: Merge remote-tracking branch 'jsandusky/DDSImageChain'
2015-07-31 16:47:06 +00:00
Lasse Öörni
97e8e89e23 Merge remote-tracking branch 'jsandusky/DDSImageChain' 2015-07-31 19:10:32 +03:00
JSandusky
8a1073b14f Correction of missing merge of Lua packages. 2015-07-30 22:05:08 -04:00
JSandusky
9d4f4f9bd9 Correction of misuses of xml element in OGLTextureCube 2015-07-30 21:35:32 -04:00
JSandusky
fc40614beb Loading cube images in OGL and D3D11. Scripting bindings for cube, array, and sRGB traits of image. 2015-07-30 21:28:33 -04:00
Lasse Öörni
bbfdafa00b Re-fix to previous commit to prevent endlessly forced material update. Added note that custom materials will not be modified. 2015-07-30 23:41:56 +03:00
Lasse Öörni
29c49afa3b Make sure the SDF shader flag is only updated on the relevant codepath to prevent possible erroneous state. 2015-07-30 23:37:34 +03:00
Lasse Öörni
9977ee909b Fix line height in the included .sdf font files. Force reevaluation of material when font changed from ttf to sdf or vice versa. Added .sdf to attribute editor font picker. Closes #801. 2015-07-30 23:27:31 +03:00
Lasse Öörni
a7c488b1bc Use SDL message box for ErrorDialog() function for cross-platform support. 2015-07-29 18:52:31 +03:00
Lasse Öörni
7abfe637e7 Prevent exactly zero Node scale on any axis. May be related to #796. 2015-07-29 17:57:32 +03:00
Lasse Öörni
13a8e7c9b6 Remove test code which wasn't seen to trigger in practice, when using the editor. 2015-07-27 18:20:53 +03:00
Lasse Öörni
50013c85d4 Merge remote-tracking branch 'monkeyfirst/hotkeys-smg-instances'
Conflicts:
	bin/Data/EditorStrings.json
2015-07-27 16:26:42 +03:00
Ivan K
6dc8dc9203 Localization: warning when translation is overrided 2015-07-27 14:42:44 +04:00
JSandusky
f0a7f30fa1 Expanded DDS support
- DX10 format support (only data formats compatible)
- Images may be "chained" as a list off of the first image (DDS
cubemaps, texture arrays)
- Direct3D9 cubemap loading from DDS cubemap
2015-07-26 17:55:17 -04:00
Lasse Öörni
21e401ddce Allow negative scale for nodes. 2015-07-25 22:56:50 +03:00
Lasse Öörni
6cab81cf50 Merge remote-tracking branch '1vanK/master' 2015-07-22 18:22:43 +03:00
Ivan K
d00438c224 Editor: select language in preferences 2015-07-22 15:40:35 +04:00
urho3d-travis-ci
0dc9256b2a Travis CI: API documentation update at 2015-07-22 06:14:06 UTC.
[ci package]

Commit: 3da81f2b91

Message: Added missing script bindings for Vector::Abs() & IsInsideFast()
2015-07-22 06:14:06 +00:00
Mike3D
3da81f2b91 Added missing script bindings for Vector::Abs() & IsInsideFast() 2015-07-22 08:06:57 +02:00
Ivan K
eb2457ce6a editor russification, add warnings to Localization::LoadJSON 2015-07-21 23:12:20 +04:00
urho3d-travis-ci
60ea83dbfd Travis CI: API documentation update at 2015-07-21 12:08:42 UTC.
[ci package]

Commit: c5a75e523a

Message: Added Node function to remove all components of type.
2015-07-21 12:08:42 +00:00
Lasse Öörni
c5a75e523a Added Node function to remove all components of type. 2015-07-21 14:51:38 +03:00
Lasse Öörni
e594b9e6dd Edit Localization docs. Minor comment edit. 2015-07-21 14:33:23 +03:00
Lasse Öörni
87c8a0874a Merge remote-tracking branch '1vanK/improvements' 2015-07-21 13:46:06 +03:00
Ivan K
8480f603fd Localization: asserts to warnings 2015-07-20 17:40:38 +04:00
Ivan K
d540f79eec Localization: fixes, adding comments, reworking samples, partial russification of editor 2015-07-19 16:07:24 +04:00
Ivan K
1d845712c8 Internationalization: initial commit
Localization
2015-07-18 14:43:51 +04:00
urho3d-travis-ci
472cdfa50f Travis CI: API documentation update at 2015-07-17 17:52:17 UTC.
[ci package]

Commit: 32ba366f0b

Message: Fixed return value for Image Save
2015-07-17 17:52:17 +00:00
Mike3D
32ba366f0b Fixed return value for Image Save 2015-07-17 19:43:48 +02:00
urho3d-travis-ci
bbe1e9a1bf Travis CI: API documentation update at 2015-07-16 11:28:51 UTC.
[ci package]

Commit: 3b4738ee25

Message: Clean up Spline comments. Add a Catmull-Rom full path mode which duplicates or loops the start and end. Closes #780.
2015-07-16 11:28:51 +00:00
Lasse Öörni
3b4738ee25 Clean up Spline comments. Add a Catmull-Rom full path mode which duplicates or loops the start and end. Closes #780. 2015-07-16 14:20:38 +03:00
Yao Wei Tjong 姚伟忠
7e2d897235 Avoid unnecessary library rebuild while still keeping CLion happy. 2015-07-15 22:46:41 +08:00
Yao Wei Tjong 姚伟忠
eb35aaf8f5 Restore copyright year.
[ci skip]
2015-07-15 11:54:52 +08:00
urho3d-travis-ci
a1edde4e4d Travis CI: API documentation update at 2015-07-14 19:35:54 UTC.
[ci package]

Commit: 52885a22c4

Message: Clean up Spline code, add support for Catmull-Rom interpolation of other values than Vector3, and fix out of bounds array access in Catmull-Rom interpolation. Add linear interpolation mode. Add script bindings of new interpolation mode enums. Closes #772. Closes #773.
2015-07-14 19:35:54 +00:00
Lasse Öörni
52885a22c4 Clean up Spline code, add support for Catmull-Rom interpolation of other values than Vector3, and fix out of bounds array access in Catmull-Rom interpolation. Add linear interpolation mode. Add script bindings of new interpolation mode enums. Closes #772. Closes #773. 2015-07-14 22:17:26 +03:00
Lasse Öörni
8539e64dff Merge remote-tracking branch 'szamq/master' 2015-07-14 20:21:32 +03:00
Lasse Öörni
6f8ed55c0a Fix the Depth shader on D3D11. Simplify View code to determine whether a substitute RT for the backbuffer is needed. Fix having to render the hardware depth stencil twice in the ForwardDepth renderpath. 2015-07-14 19:32:58 +03:00
szamq
7299f3abf1 delete old spline files 2015-07-14 17:47:54 +02:00
szamq
528493d3b5 Merge branch 'master' of https://github.com/szamq/Urho3D
Conflicts:
	Source/Engine/Core/Spline.cpp
	Source/Engine/Core/Spline.h
2015-07-14 17:32:41 +02:00
szamq
e75fbec200 Added Catmull-Rom spline type which interpolates through the control nodes 2015-07-14 17:30:05 +02:00
Lasse Öörni
56ad4078aa Added contributor credit. 2015-07-13 13:17:48 +03:00
Lasse Öörni
8bd0959342 Merge remote-tracking branch 'cosmy1/master' 2015-07-13 13:09:00 +03:00
Lasse Öörni
eb3408282d Ensure PackageFile::GetEntryNames() returns names with original case. Case-sensitive PackageFile operation on other platforms than Windows, to match host filesystem. 2015-07-13 12:34:30 +03:00
cosmy1
ee35539a32 Empty statement fix
Empty statement fix when URHO3D_LOGGING=0
2015-07-12 15:32:45 +02:00
Yao Wei Tjong 姚伟忠
7a80b37c22 Fix URHO3D_PACKAGING build option on Windows platform with SHARED lib.
[ci scan]
2015-07-12 19:04:19 +08:00
Lasse Öörni
304308ea83 Add warning for creating AnimatedSprite2D to the scene root. Closes #770. 2015-07-12 12:31:20 +03:00
Yao Wei Tjong 姚伟忠
60f6a7482a Fix control flow bug identified by Coverity Scan in recent refactoring.
[ci only: Scan]
2015-07-08 02:18:00 +08:00
Yao Wei Tjong 姚伟忠
1a5268f427 Reformat D3D9 and D3D11 source files. 2015-07-07 23:46:51 +08:00
Yao Wei Tjong 姚伟忠
86641d847c Fix MSVC debug build. 2015-07-07 23:43:57 +08:00
Yao Wei Tjong 姚伟忠
9770e3dc99 Include 'Precompiled.h' to auto generated Lua binding C++ source files. 2015-07-07 23:43:56 +08:00
Yao Wei Tjong 姚伟忠
fa77a456f8 Reformat Urho3D source files to get rid of the indents on empty lines.
Reorganize includes.
Misc. fixes to perform explicit C-style cast on type mismatch.
Misc. fixes on bugs identified by CLion's static analyzer.
2015-07-07 23:43:56 +08:00
Yao Wei Tjong 姚伟忠
f0d107d3db Add new build option to support non-PCH build.
In order to achieve this, the Precompiled.h is now included back in all the Urho3D implementation source file. So, when the Precompiled.h is not being force-included in the PCH build, then the compiler is still able to find all the required symbol declarations. By doing so, it should also fix the indexer in some IDEs to index all the Urho3D declared symbols correctly whether it is a PCH build or not.
2015-07-07 23:43:56 +08:00
Lasse Öörni
d44feb37ec Ensure replace blend mode before rendering quad geometry to emulate partial rendertarget clear on D3D11. Closes #764. 2015-07-05 13:34:17 +03:00
Lasse Öörni
d937b8fd0b Fix whitespace. 2015-07-04 13:08:35 +03:00
thebluefish
c3d5df1ea4 Update OGLGraphicsImpl.h
Added function GetGLContext().

This allows us to switch multiple contexts like so:

    auto graphics = _context->GetSubsystem<Urho3D::Graphics>();
    auto graphicsImpl = graphics->GetImpl();
    				
    SDL_GL_MakeCurrent(graphicsImpl->GetWindow(), graphicsImpl->GetGLContext());
    _engine->RunFrame();
2015-07-03 21:46:49 -07:00
Lasse Öörni
56d1cbba1f Silence unnecessary LogicComponent warning at construction time; event subscription will be handled later when the component has access to the scene. 2015-07-03 19:03:01 +03:00
Lasse Öörni
7ac5c2d542 Fix remaining classes for OnSceneSet(). 2015-07-02 20:20:09 +03:00
Lasse Öörni
7bff2a4734 Fixes for moving a node from one scene to another. Related CollisionShape & Constraint fixes. 2015-07-02 15:17:02 +03:00
Lasse Öörni
52b739e2a4 Initial work to separate Component's association with its owner node and scene (OnNodeSet() and OnSceneSet()). This should allow components to work properly when moved from one scene to another, or when created initially outside a scene, and be removed from rendering & physics when removed from the scene, even if the node's refcount keeps it alive after the removal. 2015-07-01 23:45:12 +03:00
Lasse Öörni
bcd2991fa2 Make Octree::Raycast() possible to call from worker threads. This doesn't necessarily mean that it's safe to do so, unless you make sure you're not modifying the scene in the main thread at the same time. 2015-07-24 15:17:32 +03:00
urho3d-travis-ci
29e02e0ae8 Travis CI: API documentation update at 2015-06-30 09:45:49 UTC.
[ci package]

Commit: caf78d6178

Message: Minor typo corection on binding and code comment.
2015-06-30 09:45:49 +00:00
Yao Wei Tjong 姚伟忠
caf78d6178 Minor typo corection on binding and code comment. 2015-06-30 17:35:40 +08:00
urho3d-travis-ci
3cf39a1389 Travis CI: API documentation update at 2015-06-29 19:53:46 UTC.
[ci package]

Commit: e8af02f453

Message: Add double serialization support to Variant, Deserializer/Serializer, XMLElement & JSONValue. Use double to store a Lua object's number attributes. Add editing of double attributes to the editor. Closes #758.
2015-06-29 19:53:46 +00:00
Lasse Öörni
e8af02f453 Add double serialization support to Variant, Deserializer/Serializer, XMLElement & JSONValue. Use double to store a Lua object's number attributes. Add editing of double attributes to the editor. Closes #758. 2015-06-29 22:36:12 +03:00
Lasse Öörni
4306985a47 Fix uninitialized variable in DetourCrowd. Closes #753. 2015-06-26 12:26:11 +03:00
Yao Wei Tjong 姚伟忠
3052385081 Fix build tree configuration and generation under CLion IDE. 2015-06-23 16:36:47 +08:00
Lasse Öörni
afd714ac00 Make sure blend mode of existing Urho2D materials is not overwritten. Closes #742. 2015-06-18 17:16:14 +03:00
Lasse Öörni
27735786da Merge remote-tracking branch 'feltech/lua-load-raw-script-files' 2015-06-16 15:34:13 +03:00
Yao Wei Tjong 姚伟忠
df31b6ad7c Fix ProcessRayQuery() method to use correct overload for RAY_TRIANGLE.
Minor formatting and code clean up.
2015-06-16 13:12:19 +08:00
David Feltell
414e92dad2 Tidied/updated Lua raw script loader CMake definition and documentation.
* Tidied CMake definition and defaulted to disabled for
multi-configuration build types.
* Added CMake variable to table in "Building Urho3D" docs page.
* Added a section on "Debugging script files" to the "Lua scripting"
docs page.
2015-06-15 23:59:38 +01:00
urho3d-travis-ci
13e854c946 Travis CI: API documentation update at 2015-06-15 21:06:30 UTC.
[ci package]

Commit: e89184b38c

Message: Rename texture_uv_ to textureUV_
2015-06-15 21:06:30 +00:00
nemerle
e89184b38c Rename texture_uv_ to textureUV_ 2015-06-15 20:15:28 +02:00
nemerle
8bad584cb4 Match project's coding conventions and expose the new functionality to angelscript and lua
Remove debugging code from Decals example.
2015-06-15 19:06:05 +02:00
nemerle
c479fd72d5 Convert back from c++11 2015-06-15 17:20:39 +02:00
nemerle
16006239c1 Add support for retrieving UV coordinates of successful Ray query.
Conflicts:
	Source/Samples/08_Decals/Decals.cpp
	Source/Urho3D/Graphics/Geometry.cpp
	Source/Urho3D/Graphics/Geometry.h
	Source/Urho3D/Graphics/OctreeQuery.h
	Source/Urho3D/Graphics/StaticModel.cpp
	Source/Urho3D/Math/Ray.cpp
	Source/Urho3D/Math/Ray.h
2015-06-15 17:05:50 +02:00
David Feltell
a8afde31b2 Fix tab indent to space indent. 2015-06-14 20:28:04 +01:00
David Feltell
67b6f0d533 Add luaL_loadfile support, with CMake option to prefer this strategy.
* Added `LuaScript::LoadRawFile` and `LuaScript::ExecuteRawFile` to load
files using `luaL_loadfile` rather than via the resource cache
(`luaL_loadbuffer`).  This strategy makes the source available to Lua
debuggers (e.g. eclipse LDT) for setting breakpoints, etc.
* Added a CMake option `URHO3D_LUA_RAW_SCRIPT_LOADER` to make
`luaL_loadfile` the default script loading strategy.
  - `LuaScript::ExecuteFile` will thus prefer the `luaL_loadfile`
strategy, aiding in debugging as above, but without needing to change
method calls.
  -  `LuaScript::Loader` will also prefer the `luaL_loadfile` strategy,
so that scripts `require`d in the main script are also amenable to
debugging.
  - If a script file cannot be loaded from the file system, then it will
fall back on the default resource cache `luaL_loadbuffer` strategy (e.g.
for packaged scripts).
2015-06-14 20:13:03 +01:00
urho3d-travis-ci
92075c6b43 Travis CI: API documentation update at 2015-06-14 12:28:34 UTC.
[ci package]

Commit: 476c4f25c8

Message: Allow GetChildrenWithClassName() in AngelScript API to return derived classes. Thanks to JSandusky for the original forum post on which the code is based.
2015-06-14 12:28:34 +00:00
Lasse Öörni
476c4f25c8 Allow GetChildrenWithClassName() in AngelScript API to return derived classes. Thanks to JSandusky for the original forum post on which the code is based. 2015-06-14 15:20:06 +03:00
Lasse Öörni
e142319eb0 Only perform animation length fixing for non-looped 2D animations. Fixes incorrect looping in animations where the start & end keyframes don't match. 2015-06-11 17:16:31 +03:00
Lasse Öörni
bb17ef1570 Blit to backbuffer before debug geometry if used resolve from backbuffer to acquire the scene initially for postprocessing. Closes #741. 2015-06-11 11:45:30 +03:00
Yao Wei Tjong 姚伟忠
6923bd0736 Install tools to the 'bin/tool' directory.
Related to commit 6b6447eb8c.
2015-06-10 18:39:39 +08:00
urho3d-travis-ci
f0999ad2ff Travis CI: API documentation update at 2015-06-10 10:22:01 UTC.
[ci package]

Commit: 3e930c5a6f

Message: Added IsAtEnd() function to AnimationController.
2015-06-10 10:22:01 +00:00
Lasse Öörni
3e930c5a6f Added IsAtEnd() function to AnimationController. 2015-06-10 13:13:00 +03:00
nemerle
a779d56c82 Fix lightmap texture imports - likely copy-paste error 2015-06-06 21:11:01 +02:00
urho3d-travis-ci
b3fda4de9c Travis CI: API documentation update at 2015-05-31 17:31:20 UTC.
[ci package]

Commit: 46ebfb4b22

Message: Fix GetData() from rendertarget textures on D3D9. Thanks for JSandusky for bringing into attention. Added GetComponents() to Texture to easily determine which kind of Image needs to be created to receive the texture data.
2015-05-31 17:31:20 +00:00
Lasse Öörni
46ebfb4b22 Fix GetData() from rendertarget textures on D3D9. Thanks for JSandusky for bringing into attention. Added GetComponents() to Texture to easily determine which kind of Image needs to be created to receive the texture data. 2015-05-31 20:16:28 +03:00
ninjastone
c984c18a8b removed unused lines 2015-06-01 00:32:02 +09:00
ninjastone
d0fea4abd3 Fixed: AssetImporter was not importing single keyframe animation correctly. 2015-05-31 23:37:14 +09:00
Lasse Öörni
1c4e6f43ff Added the AMD equivalent for NvOptimusEnablement. 2015-05-30 23:31:40 +03:00
urho3d-travis-ci
4e27d96482 Travis CI: API documentation update at 2015-05-28 14:10:58 UTC.
[ci package]

Commit: d090b0be56

Message: Added blendmode to renderpath commands (only used by QUAD commands.)
2015-05-28 14:10:58 +00:00
Lasse Öörni
d090b0be56 Added blendmode to renderpath commands (only used by QUAD commands.) 2015-05-28 17:00:00 +03:00
Lasse Öörni
6a21873824 Fix over-long time in 2D animations which would cause sprite flashing or sprites vanishing in clamp mode (for example the included "attack" animation) 2015-05-28 16:06:58 +03:00
urho3d-travis-ci
12f220618c Travis CI: API documentation update at 2015-05-28 10:02:09 UTC.
[ci package]

Commit: 88d86548a4

Message: Further minor clean up the CrowdAgent class.
Revise the sample so Jack walk and turn more naturally.
2015-05-28 10:02:09 +00:00
Yao Wei Tjong 姚伟忠
88d86548a4 Further minor clean up the CrowdAgent class.
Revise the sample so Jack walk and turn more naturally.
2015-05-28 17:52:12 +08:00
urho3d-travis-ci
fd386c8bcd Travis CI: API documentation update at 2015-05-27 13:59:39 UTC.
[ci package]

Commit: 6b72c4412a

Message: Minor code clean up and bug fixes for DetourCrowd implementation.
Avoid using multiple vectors to hold the same set of objects in the DetourCrowd sample.
2015-05-27 13:59:39 +00:00
Yao Wei Tjong 姚伟忠
6b72c4412a Minor code clean up and bug fixes for DetourCrowd implementation.
Avoid using multiple vectors to hold the same set of objects in the DetourCrowd sample.
2015-05-27 21:51:10 +08:00
Lasse Öörni
c94bd4310b Fix incorrect viewport size when mixing rendering to backbuffer and to other textures in the renderpath. 2015-05-26 01:32:24 +03:00
Mike3D
e166e7a84d Added moving obstacles and teleportation to sample 39. Also various behavior tweaks and ground texture modified to break monotony and discriminate with sample 15. If something doesn't appeal it can be reverted.
Also set default mask and areaID at OffMeshConnection initialization.
2015-05-23 09:27:39 +02:00
Yao Wei Tjong 姚伟忠
89ff346a2e Prefer class forward than full header include. 2015-05-22 18:56:48 +08:00
urho3d-travis-ci
96e9e87e35 Travis CI: API documentation update at 2015-05-22 08:30:22 UTC.
[ci package]

Commit: 4fab742e50

Message: Added accessors for navMesh debug geometry
2015-05-22 08:30:22 +00:00
Mike3D
4fab742e50 Added accessors for navMesh debug geometry 2015-05-22 10:22:01 +02:00
urho3d-travis-ci
24e11c6b6c Travis CI: API documentation update at 2015-05-22 06:08:11 UTC.
[ci package]

Commit: 44d5d21bbe

Message: Exposed Node::GetComponents(), Node::GetChildren() and Node::GetChildrenWithComponent() to lua
2015-05-22 06:08:11 +00:00
Mike3D
44d5d21bbe Exposed Node::GetComponents(), Node::GetChildren() and Node::GetChildrenWithComponent() to lua 2015-05-22 08:00:01 +02:00
urho3d-travis-ci
e78d91d00e Travis CI: API documentation update at 2015-05-21 14:08:22 UTC.
[ci package]

Commit: b274be3997

Message: Added Get/SetMaxObstacles() to DynamicNavigationMesh
2015-05-21 14:08:22 +00:00
Mike3D
b274be3997 Added Get/SetMaxObstacles() to DynamicNavigationMesh 2015-05-21 16:00:04 +02:00
JSandusky
a4cec53adb Iterate through updating the tilecache
until open request space is available during obstacle addition/removal.
Pending tile updates may interfere with processing requests.
2015-05-20 16:48:53 -04:00
Lasse Öörni
66f967c9eb Only enable quantized AABB compression on a collision mesh when triangle count is below one million, to work around a Bullet issue. Closes #730. 2015-05-20 16:35:20 +03:00
Mike3D
7f3a6ef86b Added off-mesh connections to sample 39 2015-05-20 10:56:32 +02:00
urho3d-travis-ci
dadca9931e Travis CI: API documentation update at 2015-05-19 14:37:15 UTC.
[ci package]

Commit: bb03eb0f12

Message: Moved the transformation of AngelScript function name to void signature to GetFunction() / GetMethod() to allow all of execute, delayed execute and event subscription to handle either a function name or full signature. Added HasMethod() to ScriptInstance to allow checking for existence of function (avoid error log print in cases where an "optional" function is being called on a script object.) Updated scripting documentation.
2015-05-19 14:37:15 +00:00
Lasse Öörni
bb03eb0f12 Moved the transformation of AngelScript function name to void signature to GetFunction() / GetMethod() to allow all of execute, delayed execute and event subscription to handle either a function name or full signature. Added HasMethod() to ScriptInstance to allow checking for existence of function (avoid error log print in cases where an "optional" function is being called on a script object.) Updated scripting documentation. 2015-05-19 17:27:58 +03:00
Lasse Öörni
8246bb003d Allow submitting bare function names to DelayedExecute. In this case function is assumed to be a void function without parameters. Log error when trying to execute a nonexistent script object method. 2015-05-19 16:17:09 +03:00
JSandusky
29d9892e9b Exclude nodes with Obstacle components from navigation mesh geometry collection 2015-05-18 13:28:04 -04:00
urho3d-travis-ci
058ba0a4c3 Travis CI: API documentation update at 2015-05-18 16:19:29 UTC.
[ci package]

Commit: 562700fceb

Message: Added more navigation bindings
Also added global toggle for NavArea::DrawDebugGeometry()
and OffMeshConnection::DrawDebugGeometry()
Also added lua binding for DrawDebugGeometry() in Component.pkg
2015-05-18 16:19:29 +00:00
Mike3D
562700fceb Added more navigation bindings
Also added global toggle for NavArea::DrawDebugGeometry()
and OffMeshConnection::DrawDebugGeometry()
Also added lua binding for DrawDebugGeometry() in Component.pkg
2015-05-18 18:11:21 +02:00
Yao Wei Tjong 姚伟忠
be2280918b Adjust .gitignore to filter generated stuff in non out-of-source build.
Related to #716. [ci skip]
2015-05-18 22:33:55 +08:00
Yao Wei Tjong 姚伟忠
9a7d51b0e1 Fix UI-Element debug draw. 2015-05-18 17:02:34 +08:00
Lasse Öörni
fd8703dcec Flush the DetourTileCache update queue if necessary, when adding or removing an obstacle. Closes #726. 2015-05-17 18:31:52 +03:00
urho3d-travis-ci
7d5fea25cb Travis CI: API documentation update at 2015-05-17 14:02:01 UTC.
Commit: f9f920964f

Message: Remove agents & obstacles on OnNodeSet(null), similar to Drawables. Do not allow adding an agent when node is already null. Added missing enum in AngelScript navigation API. Do not keep a persistent array of agent handles in the AngelScript crowd example, as that keeps the agents alive even past removal from scene. Closes #729.
[ci package]
2015-05-17 14:02:01 +00:00
Lasse Öörni
f9f920964f Remove agents & obstacles on OnNodeSet(null), similar to Drawables. Do not allow adding an agent when node is already null. Added missing enum in AngelScript navigation API. Do not keep a persistent array of agent handles in the AngelScript crowd example, as that keeps the agents alive even past removal from scene. Closes #729. 2015-05-17 16:54:57 +03:00
urho3d-travis-ci
dafca26c97 Travis CI: API documentation update at 2015-05-17 10:46:33 UTC.
Commit: https://github.com/$TRAVIS_REPO_SLUG/commit/$TRAVIS_COMMIT

Message: $COMMIT_MESSAGE
[ci package]
2015-05-17 10:46:33 +00:00
Lasse Öörni
4a79c14189 Fix missing Lua Component class property bindings. Removed some "unsafe" Node functions from Lua bindings. 2015-05-17 13:37:06 +03:00
Mike3D
cca861f6d3 Simplified sample 39 using the crowd manager 2015-05-17 10:15:41 +02:00
Yao Wei Tjong 姚伟忠
b1d6031673 Show root cause error from SDL when SDL fails to create main window. 2015-05-17 16:05:35 +08:00
urho3d-travis-ci
6bacbe4230 Travis CI: API documentation update at 2015-05-16 19:16:03 UTC.
[ci package]
2015-05-16 19:16:03 +00:00
Lasse Öörni
082cd11edc Expose DetourCrowdManager::GetActiveAgents() to Lua. Closes #728. 2015-05-16 22:08:36 +03:00
Lasse Öörni
33122036f3 Clear obstacleId_ also in silent mode obstacle removal. Fixed event type when obstacle removed. May or may not have anything to do with #726. 2015-05-16 19:44:54 +03:00
urho3d-travis-ci
3debae64f8 Travis CI: API documentation update at 2015-05-16 14:59:59 UTC.
[ci package]
2015-05-16 14:59:59 +00:00
Mike3D
fed3846611 Improved navigation debug geometry and added missing bindings 2015-05-16 16:50:15 +02:00
Lasse Öörni
9b25da5f7b Make sure agents are removed from crowd upon destruction. Closes #725. 2015-05-16 00:28:04 +03:00
Yao Wei Tjong 姚伟忠
dfab28fed6 Fix iOS host-tool building for Urho3D_universal target.
For Travis CI - when releasing disregard commit message instruction from the last commit being tagged. This is to ensure all CI jobs are run for releasing the artifacts.
[ci package]
2015-05-15 19:21:25 +08:00
Yao Wei Tjong 姚伟忠
5cd6272bf6 Fix iOS "unsupported architecture" issue when precompiling PCH.
When using Xcode, instead of precompiling PCH using our own build rules, simply switch on the Xcode support for PCH and delegate the task to it.
2015-05-13 16:41:26 +08:00
urho3d-travis-ci
064b67aba8 Travis CI: API documentation update at 2015-05-12 13:10:01 UTC.
[ci package]
2015-05-12 13:10:01 +00:00
Lasse Öörni
5b41352680 Minor whitespace and code convention edits. 2015-05-12 15:37:27 +03:00
Lasse Öörni
a4851ab36d Merge remote-tracking branch 'JSandusky/CrowdStateTracking' 2015-05-12 12:06:50 +03:00
Lasse Öörni
4c9005785b Do not use float luminance formats, as they are deprecated on GL3. Instead return R16F & R32F formats (red channel only) to match Direct3D behavior. Closes #722. 2015-05-12 12:02:57 +03:00
Lasse Öörni
507b1fd9ab Forward-declare Texture in Renderer.h. Fix potential missing return value for FindNamedTexture(). Closes #721. 2015-05-12 11:10:37 +03:00
JSandusky
ca7a6af1f3 CrowdAgent state handling
- CrowdAgentStateChanged event includes Node and Agent parameters
- CrowdAgentFailure event for target/agent-state failures
- GetAreaCost in NavigationMesh, script bindings updated
- Fixed error spawning Jack nodes on top of boxes in Angelscript sample
- DebugRendering for DynamicNavigationMesh layers
- Rename all references to AreaType as AreaID
- CrowdAgent angelscript enum bindings made consistent
- Include simple example handling of CrowdAgentFailure for faulty
initial state (sides of boxes) in all samples
- Consistent values in samples (box/mushroom counts)
- Completed "todo" for investigating rcFilterLedgeSpans in
DynamicNavigationMesh
2015-05-12 02:29:32 -04:00
Lasse Öörni
f42dd05319 Restored the previous mouse move logic for Emscripten only. 2015-05-10 14:28:51 +03:00
Lasse Öörni
16a1894cb2 Never use SDL mouse move event data when mouse is hidden and being recentered, as that causes RELATIVE mode to return wrong mouse deltas on OSX. 2015-05-10 12:41:16 +03:00
Yao Wei Tjong 姚伟忠
fb84bcf179 For Travis CI - tune down email notifications frequency.
Add checkpoint for Emscripten CI build and use it to determine whether to skip make test and/or scaffolding test when running short of time.

For Travis CI - perform the full CI jobs for topic branches and PRs.

For Travis CI - use custom data in .travis.yml for excluding samples.
2015-05-08 18:39:14 +08:00
Lasse Öörni
a19eead144 Fix non-desktop graphics builds. 2015-05-08 13:32:42 +03:00
urho3d-travis-ci
a88a57c6ca Travis CI: API documentation update at 2015-05-08 09:51:55 UTC.
[ci package]
2015-05-08 09:51:55 +00:00
Lasse Öörni
318a3db786 Merge branch 'renderpath-cubemap'
Conflicts:
	Source/Urho3D/Graphics/View.cpp
2015-05-08 11:40:01 +03:00
Lasse Öörni
c1e2d51338 Fix readable HW depth rendering on D3D11. Do not allocate a dummy color rendertarget for depth-only rendering unnecessarily on D3D11. 2015-05-08 01:53:54 +03:00
Lasse Öörni
0298740da2 Fix wrong viewport being used in depth-only rendering. Do not setup rendertarget & depth stencil for debug geometry rendering, if nothing to render. 2015-05-08 00:15:59 +03:00
Lasse Öörni
9f044cb1fa Refactor FindNamedTexture() so that programmatically stored cubemap textures without a proper file extension can be used for texture binding in the renderpath. Expose GetExistingResource() to script. 2015-05-07 21:45:18 +03:00
Lasse Öörni
b3f39da360 Fix missing camelcasing. 2015-05-07 21:28:18 +03:00
Lasse Öörni
4619040250 Fix GetExistingResource(). 2015-05-07 21:25:56 +03:00
Lasse Öörni
03c517ebda Fix out of bounds array access related to RenderPathCommand outputs. Changed to store name and face within a pair. Added missing render path-related script bindings. 2015-05-07 21:05:27 +03:00
Lasse Öörni
0bf8877d1e Fix D3D build. 2015-05-07 19:52:30 +03:00
Lasse Öörni
a8bf39ca7e Remove redundant check. 2015-05-07 19:43:32 +03:00
Lasse Öörni
15f338b3c0 Allow RenderPath to define cube map rendertargets. Allow RenderPath to refer to rendertargets created programmatically and stored as named manual resources. 2015-05-07 18:56:00 +03:00
Mike3D
581d1b550b Do not hardcode obstacle radius 2015-05-07 17:20:05 +02:00
urho3d-travis-ci
1e49c1938c Travis CI: API documentation update at 2015-05-07 10:15:09 UTC.
[ci package]
2015-05-07 10:15:09 +00:00
Yao Wei Tjong 姚伟忠
252206a207 Decouple Physics subsystem from DetourCrowd implementation.
Also minor code clean up (dot the i's and cross the t's).
2015-05-07 16:52:18 +08:00
Lasse Öörni
f4b5ead164 On D3D11 & OpenGL3, convert luminance & luminance-alpha textures to RGBA on upload. Revert RampGenerator & Spot/SpotWide texture changes to use RGB format. Closes #718. 2015-05-06 17:23:10 +03:00
Lasse Öörni
bb831d75f8 Added nullcheck to AnimatedSprite2D::UpdateAnimation(). Thanks to rku for noticing. 2015-05-06 13:07:00 +03:00
urho3d-travis-ci
bf1b4e3a15 Travis CI: API documentation update at 2015-05-06 09:09:03 UTC.
[ci package]
2015-05-06 09:09:03 +00:00
Lasse Öörni
42c352f2ba Tabs to spaces. Change NavArea Bounds to BoundingBox to match Urho convention elsewhere. Added NavArea component Lua binding. 2015-05-06 11:56:12 +03:00
Lasse Öörni
bc5f009d75 Readded nullcheck to AnimatedSprite2D::OnFlipChanged(). 2015-05-06 11:54:48 +03:00
urho3d-travis-ci
131d2122e8 Travis CI: API documentation update at 2015-05-05 17:32:38 UTC.
[ci package]
2015-05-05 17:32:38 +00:00
Mike3D
88459684ab Added some missing bindings for CrowdAgent (+indentations) 2015-05-05 19:22:47 +02:00
urho3d-travis-ci
2da72b4b89 Travis CI: API documentation update at 2015-05-05 15:21:32 UTC.
[ci package]
2015-05-05 15:21:32 +00:00
Lasse Öörni
8f29e751b7 Fix memory leak in NavBuildData. Match capitalization of the CrowdNavigation help text in all versions. 2015-05-05 17:58:31 +03:00
JSandusky
567a29d74e Implementation of DetourCrowd and DetourTileCache
Added Components:
- DynamicNavigationMesh (uses DetourTileCache)
- Obstacle (interacts with DynamicNavigationMesh)
- DetourCrowdManager (uses DetourCrowd for crowd control)
- CrowdAgent (interacts with DetourCrowdManager)
- NavArea (marks area types)

Changes:
- Refactor NavigationMesh build process
- Addition of cylinder debug rendering
- Exposed Area Type Costs in navigation

CrowdNavigation sample for Lua, Angelscript, and C++ using
DynamicNavigationMesh, Obstacle, CrowdAgent, and DetourCrowdManager
components.
2015-05-04 22:14:00 -04:00
Yao Wei Tjong 姚伟忠
2aa2cab2c6 Fix Assimp's CMakeLists.txt so the lib built successfully on Xcode.
Close #709.
For Travis CI - when performing a release, keep the CI mirror branches around for a little longer just in case we need to restart the CI job again due to Travis CI build error.
2015-05-02 21:05:49 +08:00
Lasse Öörni
830eede29b Restore old check for forceinline in stb_vorbis to fix MinGW build. 2015-05-01 15:56:40 +03:00
Lasse Öörni
20ac7fb2e5 Update STB libraries. 2015-05-01 15:33:39 +03:00
Lasse Öörni
e6c8acdf40 Add contributor credit. Mark AngelScript modifications. 2015-04-29 13:57:55 +03:00
Joshua Cearley
0b2228b7cd Support MinGW 4.7 ABIs on Clang. 2015-04-28 18:34:05 -05:00
urho3d-travis-ci
94372097fb Travis CI: API documentation update at 2015-04-27 10:40:13 UTC.
[ci package]
2015-04-27 10:40:13 +00:00
Lasse Öörni
ba777f0d17 Fix omissions in Lua VertexBuffer / IndexBuffer / Model bindings. Add 34_DynamicGeometry.lua example. Closes #704. 2015-04-27 13:32:39 +03:00
urho3d-travis-ci
3591990e24 Travis CI: API documentation update at 2015-04-27 07:37:18 UTC.
[ci package]
2015-04-27 07:37:18 +00:00
Lasse Öörni
0235c02653 Expose Geometry, IndexBuffer & VertexBuffer to script, with VB & IB content access using VectorBuffer. AngelScript 34_DynamicGeometry example. Lua version to follow. 2015-04-27 10:29:38 +03:00
Lasse Öörni
b227fb7680 Document where to find the QUALITY & SHADOWQUALITY constant definitions. 2015-04-25 01:08:57 +03:00
urho3d-travis-ci
2e81fa9c6a Travis CI: API documentation update at 2015-04-24 12:33:24 UTC.
[ci package]
2015-04-24 12:33:24 +00:00
Lasse Öörni
08ea925895 Fix Variant::GetUInt() return type. Closes #710. 2015-04-24 15:15:58 +03:00
urho3d-travis-ci
6424fa00c7 Travis CI: API documentation update at 2015-04-21 12:40:12 UTC.
[ci package]
2015-04-21 12:40:12 +00:00
aster2013
6beb325b69 Merge branch 'master' of https://github.com/urho3d/Urho3D 2015-04-21 20:29:07 +08:00
Lasse Öörni
9a3ec30b4a Add add-assign also for signed long and long long integers in String. Added contributor credit. 2015-04-16 16:51:10 +03:00
marynate
7df29b9897 Add unsigned long and unsigned long long support to String += operator 2015-04-16 19:42:18 +08:00
Lasse Öörni
ff8f4b7525 On Windows, when stdout/stderr has been redirected, use fprintf instead of WriteConsoleW() to allow capturing log output from tools. Closes #703. 2015-04-15 21:53:49 +03:00
Yao Wei Tjong 姚伟忠
67ce3e48bd Increase the multiplier for the EMRUN time out setting.
Emscripten has just released version 1.30 which, among others, fixes the EMRUN time out handling. In the previous version it did not time-out as expected. But now as EMRUN times out correctly, the build test failed on our Emscripten build due to Travis CI latency.
2015-04-13 17:26:10 +08:00
Ali Kämäräinen
8332e68f56 Improve AssetImporter error print. 2015-04-13 10:17:22 +03:00
Lasse Öörni
4ddc71b769 Make glWrapMode related arrays & function static. 2015-04-07 11:44:13 +03:00
Lasse Öörni
1423c1cf29 Fix wrong enum for border clamp mode on GL3. Closes #695. 2015-04-07 11:40:33 +03:00
aster2013
21b90f6b86 Add Angelscript and Lua script API. 2015-04-07 16:37:40 +08:00
aster2013
32b12dcc57 Add GetDrawRectangle and GetTextureRectangle in Sprite2D. 2015-04-07 13:43:47 +08:00
aster2013
aeb1806f78 Add SourceBatch2D in Drawable2D;
Add ViewBatchInfo2D in Renderer2D;
Remove texture and blend mode in Drawable2D;
Add blend mode in ParticleEffect2D;
Add blend mode and custom material in StaticSprite2D.
2015-04-07 13:01:45 +08:00
urho3d-travis-ci
cbdc0f4c48 Travis CI: API documentation update at 2015-04-06 18:22:43 UTC.
[ci package]
2015-04-06 18:22:43 +00:00
Lasse Öörni
ddb9362ef4 Added possibility to new a ParticleEffect from Lua, and exposed missing functions. Fixed crash if ParticleEffect has no color frames. Closes #689. 2015-04-06 20:47:43 +03:00
Lasse Öörni
be994d62e4 Remove extra parentheses from CreateObject(), as suggested by Modanung. 2015-04-06 19:55:35 +03:00
Lasse Öörni
3ca9b7d499 Add WorkQueue functions to remove items (single or multiple) before being assigned to worker threads. Closes #690. 2015-04-06 19:50:07 +03:00
urho3d-travis-ci
a626c9d6c8 Travis CI: API documentation update at 2015-04-04 10:32:48 UTC.
[ci package]
2015-04-04 10:32:48 +00:00
Lasse Öörni
97fb2638db Add fill mode to materials. 2015-04-04 02:40:38 +03:00
Lasse Öörni
79e89dfad3 Fix losing input focus right after startup on Linux. 2015-04-04 00:58:14 +03:00
Lasse Öörni
a716bbcf61 Fix mouse move jumps in mixed touch & mouse usage. 2015-04-03 23:40:57 +03:00
Lasse Öörni
03602fbd1c Use the "click to focus" mechanism on all desktop platforms in windowed & mouse-hidden mode. Code cleanup in Input. 2015-04-03 22:57:47 +03:00
Lasse Öörni
9d9ea418e3 Disable use of fullscreen space on OS/X to fix black screen on fullscreen switch. 2015-04-03 14:47:30 +03:00
Lasse Öörni
0285d50302 When making a triangle-level raycast to StaticModel, return the hit batch (submesh) index in the subObject field of the ray result. 2015-04-02 20:26:35 +03:00
Yao Wei Tjong 姚伟忠
b2c2bb372b Attempt to suppress some of the compiler warnings from iOS 64bit build.
Something must have changed on the Travis CI Mac OS X build environment recently that causes the compiler to produce tons of warning on iOS 64-bit build. It not only slows down the CI build but also causes the log to be truncated in the Travis CI web interface.
2015-04-02 23:59:26 +08:00
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
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
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 姚伟忠
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
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
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
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
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
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
Lasse Öörni
f450d0c3b4 Reuse constant buffer object number when resizing. Do not mark light queue to shadow batches, as it is unnecessary and could lead to shader parameter update bugs (requires further refactoring to prevent in the Graphics class.) 2015-03-18 20:19:05 +02:00
Lasse Öörni
2cefd437de Check if shader uses uniforms outside buffer and invalidate all parameter groups in that case, when switching shaders. Add define in Uniforms.glsl which allows to disable constant buffers on OpenGL 3, as using them may actually be slower. 2015-03-18 10:27:46 +02:00
Lasse Öörni
0e5a05afc7 OpenGL 3 constant buffer support. 2015-03-18 02:40:28 +02:00
Lasse Öörni
5fd6d42159 Use core functions for FBO operations when using OpenGL 3. 2015-03-17 22:06:09 +02:00
Lasse Öörni
006c17f78e Added command line & engine startup option to disable OpenGL 3. 2015-03-17 20:44:49 +02:00
Lasse Öörni
992cbcc73f Fix GLSL deprecation warnings. OpenGL 3 clip plane support. Use R32F format on OpenGL 3 for deferred linear depth instead of manual RGB encoding & decoding. 2015-03-17 01:01:11 +02:00
Lasse Öörni
07a75dc37b Initial OpenGL 3.2 support. 2015-03-16 23:36:35 +02:00
Lasse Öörni
a0a1d13109 Do pass queue lookup only once when executing the scene pass command. 2015-03-16 02:50:38 +02:00
Lasse Öörni
918d299450 Minor optimization of Drawable::MarkInView(): resize once instead of clear and push. 2015-03-16 00:57:43 +02:00
Lasse Öörni
6c3b8078f6 Split GetBatches() into sub-functions to aid in profiling. Minor optimization of View::GetTechnique() when using the default material. 2015-03-16 00:34:08 +02:00
Lasse Öörni
e2afa34bb7 Refactor Technique to not use HashTable for passes, but instead a vector with dynamically allocated pass indices. HashTable class removed as there were no other uses for it, and it was programmer-unfriendly compared to HashMap. 2015-03-15 21:07:51 +02:00
Yao Wei Tjong 姚伟忠
adcf016433 Fix ToCpHook.lua when it is being used in external project. 2015-03-15 10:58:21 +08:00
Lasse Öörni
0c58651c5c Store constant buffer pointer directly to the ShaderProgram parameters to avoid indirection and if statement choosing between VS & PS parameters. 2015-03-15 01:21:36 +02:00
Lasse Öörni
2858755334 Log missing vertex element(s) when vertex layout fails to create. Add texcoords to the editor grid to keep D3D11 happy. 2015-03-15 00:23:49 +02:00
Yao Wei Tjong 姚伟忠
d2ea0ca934 Finetune the default test timeout value for Emscripten platform.
We have a time constraint on Travis CI side for all our CI builds and tests. Default value of 10 for Emscripten and 5 for native platform is also inline with Emscripten's claim that asm.js is about 50% slower than native speed.
2015-03-14 12:46:15 +08:00
Lasse Öörni
e17a88b46f GetData() on D3D11 for Texture3D & TextureCube. 2015-03-13 09:09:41 +02:00
Lasse Öörni
d1b03d95db Texture2D::GetData() for D3D11. D3D11 texture code cleanup. 2015-03-13 01:11:01 +02:00
Lasse Öörni
785df863e4 Save spot textures generated by RampGenerator as RGB. 2015-03-12 21:39:28 +02:00
Lasse Öörni
e3f2220fe0 Remove forgotten todo. Implement Graphics::GetMultisampleLevels() properly on D3D11. 2015-03-12 10:15:54 +02:00
Yao Wei Tjong 姚伟忠
10e18da92e Slightly improve code size and startup speed for Emscripten platform. 2015-03-12 11:30:47 +08:00
Lasse Öörni
9dae13c4ab Disable system bell sounds from Alt key combinations. 2015-03-12 01:03:14 +02:00
Lasse Öörni
b55321fc40 When AnimatedSprite2D creates new sprite components, use the AnimatedSprite2D's enabled status. Closes #678. 2015-03-11 14:12:00 +02:00
Yao Wei Tjong 姚伟忠
17f6bc5ff8 Make it more bullet-proof to copy paste error by new user.
The project name 'Urho3D' is reserved just for Urho3D project.
2015-03-11 15:37:06 +08:00
Yao Wei Tjong 姚伟忠
2c798dd5bf Add support for ToCppHook.lua to accept extra parameter.
The extra param 'IS_BUILDING_URHO3D' should not be passed by external project.
2015-03-11 14:57:59 +08:00
Lasse Öörni
43a7e8a430 sRGB texture sampling on D3D11. 2015-03-11 01:17:59 +02:00
Lasse Öörni
242a675b01 sRGB backbuffer support on D3D11. 2015-03-11 00:56:14 +02:00
Lasse Öörni
c8e406489d Revert OpenGL-incompatible change in Batch::Prepare(). 2015-03-10 23:22:39 +02:00
Lasse Öörni
db62248def Only collect the shadow caster projection space merged bounding box when necessary (focused spot lights.) 2015-03-10 23:12:27 +02:00
Lasse Öörni
401585972d Optimize Graphics::SetVertexBuffers() on D3D11. 2015-03-10 22:07:06 +02:00
Lasse Öörni
c833b34b7a Remove Graphics::SetDrawAntialiased() as it does not help the situation it was created for (blurred UI rendering on Nvidia 16x multisampling on OpenGL) and it cannot be implemented on D3D11. 2015-03-10 21:30:09 +02:00
Lasse Öörni
16ec1f5812 Strip D3D11 shader bytecode. 2015-03-10 12:35:49 +02:00
Lasse Öörni
a5a8442397 Keep track of the dirtied vertex buffer range to not set D3D11 buffer slots unnecessarily. 2015-03-10 01:45:42 +02:00
Lasse Öörni
12c4f2a2b9 Nullcheck materials before using them in Drawable2D sorting. 2015-03-09 20:23:08 +02:00
Lasse Öörni
2239f5750f D3D11 screenshot save. Fix not releasing the backbuffer texture after GetResource(). 2015-03-08 22:45:59 +02:00
Lasse Öörni
4e308f21c3 3D textures on D3D11. Fixed the ColorCorrection shader. 2015-03-08 20:16:15 +02:00
Lasse Öörni
e106f1b389 D3D11 clip plane support. Check that multisample level is supported. Various shader fixes. 2015-03-08 02:57:08 +02:00
Lasse Öörni
b9278e0a94 Implement partial rendertarget clear on D3D11. Implement Graphics::ResolveToTexture() on D3D11. Fix most post-process shaders on D3D11. Readded the custom constant buffer slot. Update documentation. 2015-03-07 23:02:31 +02:00
Lasse Öörni
988f1fdc33 Merge branch 'master' into render-refactor 2015-03-07 17:59:37 +02:00
Lasse Öörni
e6194640ff Do not skip the assimp scene root, if it has non-identity transform or contains models itself. 2015-03-07 16:34:29 +02:00
Lasse Öörni
1c549bceee Import also empty child nodes in AssetImporter scene mode, unless disabled with the -ne option. Refactor handling of the root scene node to prevent unnecessary creation of a duplicate root node. Do not attempt to parse .json files as XML in the editor resource browser. Closes #673. 2015-03-07 13:36:27 +02:00
Yao Wei Tjong 姚伟忠
0fe597223f Add initial support for integration tests on Emscripten platform.
At the moment the 'make test' cannot be run non-interactively yet on Linux host and Mac OS X host systems due to what-could-be a bug in 'emrun' script. The issue with 'emrun' has been reported to upstream (https://github.com/kripken/emscripten/issues/3234).
2015-03-07 12:00:47 +08:00
Lasse Öörni
f660213930 Fix AngelScript API compile on VS2015. Add CMake bat file for VS2015. 2015-03-07 01:09:13 +02:00
Lasse Öörni
6112220b16 Cube maps, point light shadows & deferred / light prepass rendering on D3D11. 2015-03-05 23:32:16 +02:00
Lasse Öörni
1d165f3e55 Fix crash when calling FixInterpolation() on compressed sound data. Add better explanation as this function is normally not needed to be called. 2015-03-05 20:45:20 +02:00
Lasse Öörni
17cf79ab82 D3D11 rendertarget and initial shadow (directional & spot light) support. Fix creating too many rasterizer states for depth bias by quantizing. Fix crash on exit if states failed to create. 2015-03-05 00:21:21 +02:00
Lasse Öörni
6f68c07486 Moved std::begin() and std::end() for Urho containers into their respective header files, so that including ForEach.h is not needed for using the native range-based for. 2015-03-04 16:38:04 +02:00
Lasse Öörni
6fd6efc4c3 Update PugiXml to 1.5. Do not attempt to parse .txt & .icns files as xml in the editor resource browser, to prevent log spam. 2015-03-04 16:10:21 +02:00
aster2013
d34dd34fc9 Use array for glyph index to char code mapping. 2015-03-04 10:06:47 +08:00
Yao Wei Tjong 姚伟忠
4d34d0a626 Add new Emscripten build option for creating shared data file. 2015-03-03 23:32:27 +08:00
aster2013
897b1e6acc Fix #675. 2015-03-03 18:57:21 +08:00
Lasse Öörni
3feb6875fd Do not redirect final quad rendering to the backbuffer on OpenGL after rendertarget ping-ponging. Fixes #674. 2015-03-02 21:04:34 +02:00
Yao Wei Tjong 姚伟忠
02572a9ec5 Add generic support for embedding and loading files for Emscripten.
Via the following source file property "EMCC_OPTION". The supported property values are: js-library, pre-js, post-js, embed-file, preload-file, shell-file. The files are added as link dependency so a relink will automatically occur when they are modified (have newer timestamp than target).
2015-03-03 01:16:40 +08:00
Lasse Öörni
e919935abd Merge back D3D9 & D3D11 shaders using macros. Removed the "custom" constant buffer slot; rather allow to prevent the default material CB from being defined. 2015-03-02 03:39:21 +02:00
Lasse Öörni
7b339ef36b Fixed rasterizer state hash calculation. 2015-03-01 23:47:53 +02:00
Lasse Öörni
4ea4485d9f Fix LitSolid & LitParticle shaders failing to create input layout (missing normals.) Log more detailed error when input layout creation fails. 2015-03-01 21:33:55 +02:00
Lasse Öörni
d1a7fad925 More SM4 shaders. Do not render on D3D11 when shaders are not valid. 2015-03-01 19:34:41 +02:00
Lasse Öörni
73c847fbeb Separate D3D11 shaders as the compatibility mode did not sample eg. the light ramp texture correctly. 2015-03-01 19:14:56 +02:00
Lasse Öörni
e7f83624aa Fix update of smallest compressed texture miplevels on D3D11. 2015-03-01 15:37:16 +02:00
Lasse Öörni
d7a16d6713 Fix potential negative specular lighting. Fix recreating the sampler state when a texture has been reloaded. 2015-03-01 14:08:01 +02:00
Lasse Öörni
480284fb23 Removed the triangle count based instancing check, as instancing a large number of the same mesh should always result in less CPU time. 2015-03-01 13:54:09 +02:00
Lasse Öörni
e870cd6624 Implement flush GPU mode by calling SetMaximumFrameLatency(). 2015-03-01 03:04:06 +02:00
Lasse Öörni
876d1834eb Add D3D11 sampler states. Fix crash on empty vertex declaration. Fix Matrix3x3 uniforms on D3D11. Modify gpuObjects_ to PODVector. 2015-03-01 02:38:39 +02:00
Lasse Öörni
45d4e42240 Remove the shader parameter enum from Lua bindings as it is not used anywhere in the script-callable API. 2015-02-28 22:34:50 +02:00
Lasse Öörni
2d8696f7dd Fix crash on fullscreen / windowed switch. 2015-02-28 22:15:12 +02:00
Lasse Öörni
abe0614268 Fix skinning on D3D11. 2015-02-28 21:40:42 +02:00
Lasse Öörni
a1d1f08190 Split uniforms into constant buffers on D3D11. 2015-02-28 21:09:41 +02:00
Lasse Öörni
5ac8f1fb43 Clean up / reorder light shader parameter handling. 2015-02-28 19:51:18 +02:00
Lasse Öörni
f13a6a338f Fix typo and unnecessary expansion of the terrain update region. 2015-02-28 19:32:20 +02:00
Lasse Öörni
e8d4a05ab8 Fix incorrect partial terrain update when smoothing was used. Improve worst-case performance for partial terrain update by only tracking one rectangular region that encloses the changed area. 2015-02-28 16:07:20 +02:00
Lasse Öörni
7a91aa0852 Initial Texture2D support. 2015-02-28 02:27:45 +02:00
Yao Wei Tjong 姚伟忠
536b0a5429 Add new build option for better targeting Raspberry Pi platform. 2015-02-27 22:19:44 +08:00
Lasse Öörni
d4524e25c7 Fixed vertex position not getting passed to pixel shader. Rework the mechanism used to keep track of dirty constant buffers. 2015-02-27 01:27:59 +02:00
Lasse Öörni
cf5f5e4a18 Fixed missing CheckFeatureSupport() & missing PrepareDraw() in instanced draw call. 2015-02-27 01:00:03 +02:00
Lasse Öörni
20756b554d Applied btGjkPairDetector fix from Bullet head revision. 2015-02-26 11:17:45 +02:00
Lasse Öörni
a936eab7c7 Initial D3D11 constant buffer handling. If URHO3D_D3D11 option given, disable OpenGL, but error out on non-Windows platforms. 2015-02-26 02:50:59 +02:00
Lasse Öörni
48483ac07c Reduce number of distinct shader parameter groups to prepare for mapping them to constant buffers. 2015-02-26 00:58:25 +02:00
Lasse Öörni
3685373e77 Do not store window position in fullscreen mode; would be 0,0 and position the window to hard top-left after switching back to windowed. 2015-02-26 00:04:56 +02:00
Lasse Öörni
6e6c39c5a8 Add a ShaderProgram class also for D3D9, which holds the combined shader parameters. Cleaned up ShaderProgram handling on OpenGL. Optimized away repeated assignment of constant values from D3D9 SetShaderParameter(). 2015-02-25 23:31:10 +02:00
Yao Wei Tjong 姚伟忠
cf77a15e6f Fix Android build with LuaJIT enabled on Mac OS X host system. Take 2. 2015-02-25 22:46:11 +08:00
Yao Wei Tjong 姚伟忠
904aedef93 Fix Android build with LuaJIT enabled on Mac OS X host system.
Close #670.
2015-02-25 19:07:53 +08:00
Lasse Öörni
4ce7ed6838 Parse shader parameters & texture units. Removed comment stripping as it did not work reliably for SM4 shaders. 2015-02-25 02:05:18 +02:00
Lasse Öörni
1c32e957f8 Create input layouts on demand. Inspect vertex shader's input signature. Fixed setting rendertarget & depth-stencil views. Implement draw calls. 2015-02-24 23:46:27 +02:00
Lasse Öörni
0c48c9df87 Fix Assimp to not give negative light direction. Fix FOV handling for spot lights in AssetImporter. Added error prints to Editor if fails to execute AssetImporter. Closes #669. 2015-02-24 12:19:25 +02:00
Lasse Öörni
1e1b44c4aa Added placeholder for shader resource view in Texture classes. Fixed shader creation from bytecode to use the correct bytecode size. 2015-02-24 09:46:36 +02:00
Lasse Öörni
f4aee7da2b Vertex & index buffer creation & update. State object creation. 2015-02-23 23:04:38 +02:00
Josh Engebretson
4339a09194 Fix typo in View3D size check 2015-02-22 16:15:35 -08:00
Lasse Öörni
9f129ecd51 Merge branch 'master' into render-refactor 2015-02-23 01:43:02 +02:00
Lasse Öörni
9a98779ae9 Remove StreamFrequency related functions from Graphics public API as unnecessary. 2015-02-23 00:32:50 +02:00
Lasse Öörni
281809121c Skeleton of D3D11 graphics classes. Does not render anything visible yet and many functions lack implementation. 2015-02-22 22:44:12 +02:00
Lasse Öörni
51c80107e9 Removed debug log prints from OGLGraphics.cpp. Fixed build warnings. 2015-02-21 22:08:25 +02:00
Lasse Öörni
88080dad31 Remove Shader Model 2 mode & instancing without stream offset (D3D9) as they are hard to test. Added Graphics::GetApiName() function. 2015-02-21 20:53:12 +02:00
Lasse Öörni
87338ce74c Minor optimization of GetLitBatches() by calculating only once if the light has a negative color. 2015-02-21 15:32:47 +02:00
Lasse Öörni
21d7883455 Optimize and clean up base batch / vertex light batch processing. Fix light limiting not taking point light's effective intensity into account properly. 2015-02-21 13:54:33 +02:00
hdunderscore
603e5fd7b8 Reverting a change to fix an input bug -- mouse mode relative wasn't being recentered in non-emscripten builds. 2015-02-21 01:32:07 +11:00
Lasse Öörni
e6ab7f5ccc More kNet include order fixes. 2015-02-19 16:27:44 +02:00
Lasse Öörni
2d3f9bf141 Include Socket.h earlier in kNet to potentially fix Winsock.h / Winsock2.h conflict. 2015-02-19 15:25:01 +02:00
Lasse Öörni
445c87ed96 Enforce LOCAL components in LOCAL nodes, as otherwise scene network synchronization will risk a component ID overwrite. 2015-02-18 19:51:55 +02:00
Lasse Öörni
941821bde7 Minor cleanup / optimization of StaticModel::UpdateBatches() & AnimatedModel::UpdateBatches(). 2015-02-18 01:06:37 +02:00
Lasse Öörni
20c79cdaaf Avoid accessing Node::GetWorldTransform() in StaticModel::UpdateBatches() if possible to reduce cache misses when collecting drawables. 2015-02-17 22:00:31 +02:00
Lasse Öörni
41b2bd749a Reorder Drawable member variables and combine functions that are called when a Drawable is marked visible for slight performance gain. Remove hardcoded check for SkyBox for whether to not include a drawable in shadow focusing calculations, and instead check for a huge bounding box. 2015-02-17 21:44:04 +02:00
Yao Wei Tjong 姚伟忠
10e477bbc8 Add flag to consider 'unresolved symbol' as an error. 2015-02-16 14:51:28 +08:00
Lasse Öörni
406b71d4c9 If drawable does not limit number of per-pixel lights, no need to store them per drawable (skips allocation of dynamic memory for the light list.) 2015-02-16 02:04:54 +02:00
Yao Wei Tjong 姚伟忠
d3f90cbe08 Make the URHO3D_LUA build option available for Emscripten build. 2015-02-16 07:23:10 +08:00
Lasse Öörni
5753a90b57 Speed up collecting visible drawables. 2015-02-16 00:12:52 +02:00
Lasse Öörni
56f64c60b9 Texture unit refactoring. On desktop ensure continuous range of 8 material texture units, while mobile has 5. Material can define a volume (3D) texture in the volume unit (desktop only.) 2015-02-15 15:33:16 +02:00
Lasse Öörni
6be3b14855 Merge branch 'master' into render-refactor 2015-02-15 12:59:09 +02:00
hdunderscore
5c0e992ef1 Fixed a bug in touch input for Emscripten.
Minor code cleanup.
2015-02-15 19:08:14 +11:00
Lasse Öörni
b7d87c613f Refer to HTML5 platform more accurately. 2015-02-14 23:37:48 +02:00
Lasse Öörni
3f2f88441d Enable cascaded shadows on Emscripten. 2015-02-14 23:30:22 +02:00
Lasse Öörni
b6ea033ce3 Enable CharacterDemo & VehicleDemo also without networking. Update documentation. 2015-02-14 22:16:39 +02:00
Lasse Öörni
84b5a2de5f Shadow support on Emscripten. For now same capability as on mobiles; no cascaded shadow map. 2015-02-14 21:31:18 +02:00
Lasse Öörni
aa2f27bc73 Do not use the mobile framerate limit on Emscripten as frame limiting to 60fps will be choppy. Rather rely on vsync. 2015-02-14 18:55:42 +02:00
Lasse Öörni
7e350343d5 Define MOBILE_GRAPHICS or DESKTOP_GRAPHICS in GraphicsDefs.h based on the platform. Avoid GetPlatform() and string compare in Technique. 2015-02-14 18:55:07 +02:00
urho3d-travis-ci
7c77ad06dc Travis CI: API documentation update at 2015-02-13 13:55:43 UTC.
[ci package]
2015-02-13 13:55:43 +00:00
Chris Friesen
b8c04a3e9e Emscripten audio support 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
00410603a1 Do not install NinjaSnowWar.sh and Editor.sh for Emscripten build. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
c48a46303b Use -g4 flag for Emscripten Debug configuration build.
[ci package]
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
24e70ecd60 For Travis-CI - reduce number of samples in Emscripten build.
Also remove CI build for shared lib type. It is anyway just an emulation as Emscripten does not support dynamic library (yet) and our earlier issue with emar for static lib type has been fully resolved. Test [ci package] for Emscripten.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
a77e24d8ad Enable external project macro users to find and use PackageTool.
Adjust software packaging for Emscripten.
2015-02-13 21:31:59 +08:00
hdunderscore
22d0f41943 - Restricted input processing while input focus is false.
- (Emscripten) Set focus based on page visibility on load.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
bb438ac6d9 Fetch the Emscripten SDL2 port in an orderly fashion. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
85c893a83d Attempt to enable CI build for Emscripten. 2015-02-13 21:31:59 +08:00
hdunderscore
129f2f7dd9 Fixed an issue in Emscripten with mouse jumping when exiting mouse mode MM_RELATIVE (Pointer Lock), and a mouse jump when entering pointer lock for the first time and pressing a mouse button. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
ef38543b5a Merge custom output command into custom target for resource packaging.
Add additional logic on Windows host to prevent unnecessary re-linking due to repackaging on each build. There is still no easy way on Windows host to skip repackaging though.
Eliminate the 'Application::GetSubsystem<Engine>()' call on each frame.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
e076d037c6 Minor convention and code clean up. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
a66df72ff5 Fix host tool building and relinking dependency.
Also fix an issue with CMake reconfiguration where the internal cache work against the regeneration of the custom RESOURCE_CHECK target.
2015-02-13 21:31:59 +08:00
hdunderscore
ee00a78d2b - Fixed hidden OS cursor behaviour in Emscripten.
- Added a Pointer Lock API request in Emscripten when Input::SetMouseMode(MM_RELATIVE) is called.
- Added an event for mouse mode changing.
- Fixed Emscripten focus change detection.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
8471dcf3e4 Add option to package resource dirs and treat those dirs as build deps.
Fix static library building using emar instead of ar (from host compiler toolchain).
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
6e0ff48059 Suppress linker warnings. Minor doc update. 2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
19ab396e74 Add new Emscripten/CMake toolchain file based on Urho3D convention.
Use EMSCRIPTEN_ROOT_PATH environment variable to specify the root path to the emscripten, instead of the original EMSCRIPTEN environment variable exported in emsdk_set_env.sh.
This is because the original EMSCRIPTEN environment variable name clashes with our build scripts.
2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
6763207787 Complet the rebase to master branch. 2015-02-13 21:23:05 +08:00
t
395191e991 eliminate some compiler warnings 2015-02-13 21:23:05 +08:00
t
e60cbcdab5 remove glew references in OGLGraphicsImpl.h when building with emscripten 2015-02-13 21:23:05 +08:00
t
5d92f18b46 engine source changes for emscripten 2015-02-13 21:23:05 +08:00
t
8487a2e308 add toolchain file for emscripten 2015-02-13 21:23:05 +08:00
t
6ff6c5fe49 modify Source/CMakeLists.txt for emscripten build options 2015-02-13 21:23:05 +08:00
t
65054942e8 delete Controls.cpp and Controls.h from Source/Engine/Network 2015-02-13 21:23:05 +08:00
t
1dfd6eebde move Controls.* from Engine/Network to Engine/Input 2015-02-13 21:23:04 +08:00
Gunnar Kriik
b2f4848115 Removal of hdrRendering variable caused compilation error when using the OpenGL renderer 2015-02-12 22:56:40 +01:00
Lasse Öörni
9c3348ed98 Only perform AnimatedModel bone hitbox ray testing when RAY_TRIANGLE is specified, to allow RAY_OBB to test against the whole model's OBB. 2015-02-12 22:45:46 +02:00
Lasse Öörni
785997b596 Removed unused variable. 2015-02-12 22:38:58 +02:00
Lasse Öörni
793a40f48a Use C-style cast as per Urho convention when dealing with primitive types. 2015-02-12 21:59:43 +02:00
Lasse Öörni
5f9ad3237c Merge remote-tracking branch 'stinkfist/Vector-int-uint-Win64' 2015-02-12 21:58:45 +02:00
Stinkfist0
03f6cb137b Fix signed-unsigned conversion warnings that leak into applications using Urho when doing Win64 build. 2015-02-12 16:31:30 +02:00
Lasse Öörni
b96f47db61 Change order of matrix multiplies in GLSL to eliminate need to transpose matrix uniforms and make the order consistent with skinned & instanced rendering. 2015-02-12 00:05:32 +02:00
Lasse Öörni
0990fd72f2 Added Graphics::GetPixelUVOffset() to get the half-pixel offset required by D3D9, avoids #ifdef'ing. Clean up shadow matrix calculation. 2015-02-11 23:21:57 +02:00
Lasse Öörni
06a7412d64 Exclude the "generated" source directory when not including Lua support. 2015-02-11 21:53:27 +02:00
urho3d-travis-ci
e6629d3c8a Travis CI: API documentation update at 2015-02-11 16:43:27 UTC.
[ci package]
2015-02-11 16:43:27 +00:00
Lasse Öörni
347a9c9719 Recreate the tab escape sequence from tab character to the dumped AngelScript API. 2015-02-11 18:30:35 +02:00
urho3d-travis-ci
0702003614 Travis CI: API documentation update at 2015-02-10 17:48:35 UTC.
[ci package]
2015-02-10 17:48:35 +00:00
Lasse Öörni
5e133eb639 Added file modification remark with credit to prettywriter.h. Added indentation parameter to several SaveXML() functions including Node & Scene. Code convention edit to use String& throughout. Removed outdated remark of being only able to save to File. 2015-02-10 19:32:45 +02:00
Lasse Öörni
70054dd036 Merge remote-tracking branch 'stinkfist/indent' 2015-02-10 18:21:27 +02:00
Stinkfist0
4b9e4f6097 User-configurable indentation for XML and JSON files (AS and Lua bindings included). Closes #591 2015-02-10 17:18:52 +02:00
Yao Wei Tjong 姚伟忠
96a3126557 Fix SpritePacker build on Mac OS X platform. 2015-02-10 00:49:52 +08:00
Lasse Öörni
4354b1709c Tabs to spaces and update copyright year. 2015-02-09 23:44:01 +02:00
Lasse Öörni
4cd279cc90 Always call SetNode(0) on removing a component from a scene node. Fixes #658. 2015-02-09 23:41:32 +02:00
Lasse Öörni
5ab72bf620 Merge remote-tracking branch 'friesencr/sprite_packer' 2015-02-09 23:40:09 +02:00
Lasse Öörni
90833996fa Make sure to avoid memory overwrite in case the light's cascade splits would be configured incorrectly in respect to hardware limits. 2015-02-09 11:41:29 +02:00
Lasse Öörni
61af3c9593 Fix GCC error with URHO3D_SAFE_LUA=1. Closes #654. 2015-02-08 00:12:13 +02:00
Lasse Öörni
cc8eb57eba Workaround for GCC optimization of IsNan, thanks to reattiva. Closes #655. 2015-02-07 23:52:51 +02:00
Chris Friesen
6f383f64df SpritePacker cli 2015-02-07 12:40:01 -06:00
urho3d-travis-ci
3aae6785a4 Travis CI: API documentation update at 2015-02-05 15:19:32 UTC.
[ci package]
2015-02-05 15:19:32 +00:00
Lasse Öörni
680d334a99 Fix Physics2D events not getting included in events documentation. Fix alphabetic sorting of event documentation sections according to header file name, not full path. Fix Physics2DPreStep2D event name to PhysicsPreStep2D to match the rest. Closes #652. 2015-02-05 17:08:31 +02:00
urho3d-travis-ci
deab9cf4de Travis CI: API documentation update at 2015-02-05 10:51:01 UTC.
[ci package]
2015-02-05 10:51:01 +00:00
aster2013
83e1fbebe3 Remove WeakPtr<LuaFunction> in LuaIntegration sample;
Convert tab to spaces in ParticleEffect2D.
2015-02-05 14:01:17 +08:00
aster2013
52731a6d22 Replace WeakPtr<LuaFunction> with LuaFunction ptr. 2015-02-05 11:44:57 +08:00
aster2013
b6e413e49d Simplify Lua event handler, keep it has same behavior as AngleScript and C++. 2015-02-05 11:37:40 +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
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
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
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
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
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 姚伟忠
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 姚伟忠
18261e3d2a Use Cmake function to determine whether to add compiler export flags. 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 姚伟忠
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
Lasse Öörni
4ff4d8e486 Fix crash related to dragElements_ iteration re-entry. Code convention fixes. Closes #642. 2015-01-28 22:03:30 +02:00
Lasse Öörni
4d8ad0888f Clang friction fix from bullet3 repo. 2015-01-28 14:02:33 +02:00
Lasse Öörni
86df5e0a96 Use Renderer as the event sender for view update begin & end events to not break code relying on that. 2015-01-27 22:02:55 +02:00
Lasse Öörni
2153a5dfc5 Removed unnecessary line of code. 2015-01-27 21:38:13 +02:00
Lasse Öörni
62b3d6987f Remove all instances of Drawable2D from materialDirtyDrawables_ when it is being removed from the scene. Fixes #618. 2015-01-27 21:36:04 +02:00
Lasse Öörni
7740bb5ee4 Do not call MarkForUpdate() in AnimatedSprite2D, as Drawable2D's are not added to the octree. 2015-01-27 20:58:37 +02:00
Lasse Öörni
a12cd3823e Multiple view support for 2D drawables. Closes #638. 2015-01-27 01:21:13 +02:00
urho3d-travis-ci
b8e66f96ac Travis CI: API documentation update at 2015-01-26 20:36:19 UTC.
[ci package]
2015-01-26 20:36:19 +00:00
Lasse Öörni
c2535edac3 Added LOD level attribute support to Terrain collision shape & SetTerrain() function. This works like mipmap levels: each successive LOD level halves the resolution. Closes #639. 2015-01-26 22:23:26 +02:00
Lasse Öörni
c75f38b5a1 Use range-based for in ForEach.h if available. Closes #561. 2015-01-26 17:56:01 +02:00
urho3d-travis-ci
39bbb86205 Travis CI: API documentation update at 2015-01-26 12:26:14 UTC.
[ci package]
2015-01-26 12:26:14 +00:00
Lasse Öörni
3dc651ca74 Fix Renderer2D build. Code cleanup. 2015-01-26 13:33:37 +02:00
Lasse Öörni
988d77f06c Removed GetVisibility / SetVisibility from Drawable2D. Instead they are marked for view similarly as other drawables. Fixes #636. 2015-01-26 00:59:39 +02:00
Lasse Öörni
e67d9d3065 Include iOS 8 orientation fix conditionally. Fixes #635. 2015-01-25 23:49:35 +02:00
urho3d-travis-ci
809d4fb920 Travis CI: API documentation update at 2015-01-23 13:47:05 UTC.
[ci package]
2015-01-23 13:47:05 +00:00
Mike3D
354d1bb8c0 Added lua bindings for TileMap2D::DrawDebugGeometry() and TileMapLayer2D::DrawDebugGeometry() 2015-01-23 13:53:55 +01:00
aster2013
69185a10ce Revert typedef. 2015-01-23 20:22:02 +08:00
aster2013
a8833c9712 Add typedef in Vector and HashMap. 2015-01-23 20:02:56 +08:00
Lasse Öörni
f1545328b3 Hack fix for window size on iOS 8. Fix screen joysticks not resizing along with the screen. Note that there may still be other iOS 8 orientation bugs, for example related to the screen keyboard. These are pending a proper fix from SDL. Closes #553. 2015-01-23 11:29:35 +02:00
Yao Wei Tjong 姚伟忠
75c1d9780c Fix red screen issue on affected Android devices models, e.g. S3. 2015-01-22 20:07:16 +08:00
Lasse Öörni
3115f08265 Enforce Urho3DPlayer command line format and only use the first argument as the script file name to avoid misparsing rest of the command line. See #628. 2015-01-22 11:27:54 +02:00
Yao Wei Tjong 姚伟忠
fd84488a73 Add new build option to setup main executable as console application.
The new build option is only applicable for Windows platform only.
2015-01-21 16:50:09 +08:00
urho3d-travis-ci
97b83aaa0a Travis CI: API documentation update at 2015-01-21 04:12:47 UTC.
[ci package]
2015-01-21 04:12:47 +00:00
Lasse Öörni
2cb66a1d36 Clean up ScriptFile & ScriptInstance Execute() AngelScript bindings. Allow to call ScriptFile::Execute() without parameters. 2015-01-20 23:54:43 +02:00
Lasse Öörni
6e5d0db379 If Urho3DPlayer command line is empty, attempt to read Data/CommandLine.txt on all platforms. Closes #615. 2015-01-20 12:42:53 +02:00
Yao Wei Tjong 姚伟忠
ed214bbeb3 Avoid the include dirs hack for finding the Urho3D.h header.
It is now a library user own's responsibility to include the Urho3D.h in their source code. Or to include it as part of their own precompiled header similar to what Urho3D project has done.
2015-01-20 18:15:29 +08:00
Lasse Öörni
bcf451bfe2 Prevent additive scale modification making particle scale negative. Closes #624. 2015-01-20 11:23:59 +02:00
Lasse Öörni
40f2229954 Specify extern also in .cpp file to fix error on MinGW. Normalize order of extern and dllexport/import. 2015-01-20 11:04:54 +02:00
aster2013
c20ac4bac4 Include Urho3D.h in Str.h for URHO3D_API. 2015-01-20 12:19:30 +08:00
aster2013
e473fe6660 Change "const String&" to "const String" in pkg files. 2015-01-20 11:41:01 +08:00
Lasse Öörni
5c4dcf8035 Add export specifier to objects in GraphicsDefs and make them const. Fixes #621. 2015-01-19 21:00:59 +02:00
Mike3D
7014e466c5 Typo 2015-01-18 15:39:56 +01:00
Yao Wei Tjong 姚伟忠
f9158a045e Install binaries to the "bin" subdir relative to install prefix.
Fix the Android installing and packaging steps which previously failed to install all the sample libs.
Close #616.
2015-01-18 22:29:57 +08:00
Yao Wei Tjong 姚伟忠
05dd995b85 Refactor all the codes and scripts to use the renamed 'bin' subdir. 2015-01-18 21:40:54 +08:00
Yao Wei Tjong 姚伟忠
2906365c97 Simplify the resource prefix path engine parameter handling.
Also ensure that relative prefix path is being resolved relative to the program dir regardless of where the prefix path parameter value is coming from.
2015-01-18 15:38:35 +08:00
Yao Wei Tjong 姚伟忠
1b2dcac1d2 Add new URHO3D_MACOSX_BUNDLE build option to build bundled apps on OSX. 2015-01-17 18:34:22 +08:00
urho3d-travis-ci
116069dcd5 Travis CI: API documentation update at 2015-01-16 19:56:03 UTC.
[ci package]
2015-01-16 19:56:03 +00:00
Lasse Öörni
4d8b3b8bae Added VectorBuffer read/write to AngelScript API. 2015-01-16 18:29:15 +02:00
Lasse Öörni
e4146ba173 Added Is Enabled attribute to various Urho2D components. Updated editor icons. Fixed AnimatedSprite2D not hiding its child sprites on SetEnabled(). Closes #609. 2015-01-16 17:59:31 +02:00
Lasse Öörni
4a0e293cd0 If resource prefix path is specified via engine startup map, add trailing slash similarly as when reading it from the environment. Closes #612. 2015-01-16 17:17:39 +02:00
urho3d-travis-ci
686a6277c9 Travis CI: API documentation update at 2015-01-16 14:45:01 UTC.
[ci package]
2015-01-16 14:45:01 +00:00
Lasse Öörni
609c45f31f Added GetResourceDirs() to ResourceCache Lua API. Closes #611. 2015-01-16 16:30:41 +02:00
Yao Wei Tjong 姚伟忠
d8c2d801d9 Update the comment on the build rule. [ci skip]
Related to commit 8682ba781a
2015-01-16 13:26:33 +08:00
Yao Wei Tjong 姚伟忠
8682ba781a Install header files for Lua/LuaJIT and tolua++ 3rd party libraries.
Fixes #610.
2015-01-16 13:20:44 +08:00
aster2013
2e861de366 Fix bug. [ci skip] 2015-01-16 12:34:09 +08:00
Mike3D
322d7bc1d9 Fix TileMapObject2D::GetProperty() AngelScript binding 2015-01-11 19:06:39 +01:00
Lasse Öörni
4d320ad198 Fixed the "lightvolumes" render path command not allowing custom shader defines. Added hardware depth utilizing deferred & prepass renderpaths as an example. These use less bandwidth and therefore perform faster, but the deferred path will cause far plane artifacts on OpenGL due to stencil buffer not being available when a readable depth format is used. 2015-01-11 13:47:04 +02:00
urho3d-travis-ci
021040c1bd Travis CI: API documentation update at 2015-01-10 21:11:52 UTC.
[ci package]
2015-01-10 21:11:52 +00:00
Lasse Öörni
7d393ddc75 Removed use of nullptr construct. 2015-01-10 22:59:42 +02:00
Lasse Öörni
52aa4bc780 Use SDL_PollEvent() instead of SDL_PumpEvents() / SDL_PeepEvent() for subjectively smoother mouse input under vsync (Windows.) 2015-01-10 22:02:57 +02:00
Lasse Öörni
6f3ef0c3f4 Added Lua API to access a renderpath's commands. 2015-01-10 21:21:27 +02:00
Lasse Öörni
0b3e6e2bbb Added "renderui" render path command to render the UI into an arbitrary rendertarget. This disables the default UI render to the backbuffer. Removed functions from UI Lua API that shouldn't be exposed to scripting (update, render.) 2015-01-10 21:10:18 +02:00
Lasse Öörni
d023b06b3d Get rid of overrideView_ member in Batch, as it is no longer used by Skybox, and directional light quads can be made to work without it. Cleanup Light code. 2015-01-10 20:44:26 +02:00
urho3d-travis-ci
7ba89fa755 Travis CI: API documentation update at 2015-01-10 14:36:30 UTC.
[ci package]
2015-01-10 14:36:30 +00:00
Lasse Öörni
b6caeb02a5 Document depth rendering. Disable depth write when sampling a HW depth texture. Disable stencil optimizations when using a custom depth texture, as in that case stencil channel availability can't be guaranteed. Changed -renderpath command line option to use the full resource name instead of defaulting to the RenderPaths directory. Removed test code from ForwardHWDepth renderpath. Closes #597. 2015-01-10 15:54:00 +02:00
Lasse Öörni
6fc05e9373 Added support for defining custom depth-stencil textures in the renderpath, and performing depth-only rendering passes. Readded support for readable HW depth format (on D3D9 it uses the INTZ hack.) Improved RenderPath & Graphics Lua bindings. Added -renderpath command line option to specify the renderpath file to use. 2015-01-10 15:54:00 +02:00
Yao Wei Tjong 姚伟忠
d83de4904e Create the 'generated' subdir regardless whether Lua/LuaJIT is enabled. 2015-01-09 12:26:33 +08:00
aster2013
906f71ad6d Fix #590. 2015-01-08 13:57:51 +08:00
aster2013
23b53e7ac5 Do not clone temporary node or component. fix issue #589 2015-01-08 13:01:36 +08:00
Mike3D
0f8f50c35c Removed tab 2015-01-07 21:18:04 +01:00
Yao Wei Tjong 姚伟忠
dc620f1f6a Code clean up. [ci skip] 2015-01-07 22:02:41 +08:00
Yao Wei Tjong 姚伟忠
35307869ee Clean up to remove unused CMake variables.
LIBS is now defunct. No more dual purpose usage.
INCLUDE_DIRS_ONLY is renamed to INCLUDE_DIRS.
LINK_LIBS_ONLY is renamed to LIBS.
2015-01-07 21:51:00 +08:00
Yao Wei Tjong 姚伟忠
eb4a7663b5 Avoid hardcoding rapidjson as dependency to Urho3D library. 2015-01-07 21:25:20 +08:00
Yao Wei Tjong 姚伟忠
cffcd1e07f Revise the log message when the resource prefix path is not set.
Hopefully in doing so, this will not become FAQ in the support forum.
2015-01-07 21:09:44 +08:00
Mike3D
4a6355b136 Fix GetRigidBodies in PhysicsWorld2D 2015-01-07 12:21:33 +01:00
urho3d-travis-ci
32a20c360a Travis CI: API documentation update at 2015-01-06 17:00:05 UTC.
[ci package]
2015-01-06 17:00:05 +00:00
Yao Wei Tjong 姚伟忠
0246b11299 Fix Lua API doxygen hook. 2015-01-07 00:36:28 +08:00
urho3d-travis-ci
a5747148c1 Travis CI: API documentation update at 2015-01-06 14:44:53 UTC.
[ci package]
2015-01-06 14:44:53 +00:00
Yao Wei Tjong 姚伟忠
9a109399ee Remove MSVC "workaround" and add dummy rapidjson target as dependency.
The dependency is required when not using MKLINK on Windows host.
2015-01-06 21:43:13 +08:00
Yao Wei Tjong 姚伟忠
7dd9143f59 Fix the include path for the generated Lua API bindings. 2015-01-06 21:41:17 +08:00
Yao Wei Tjong 姚伟忠
2e9d9f4806 Fix MinGW build on Windows host system. 2015-01-06 17:25:58 +08:00
Lasse Öörni
97692453f5 Do not force camera aspect ratio to 1.0 when modifying orthographic size as an attribute. Fixes #571. 2015-01-06 00:48:51 +02:00
Yao Wei Tjong 姚伟忠
42fb33d0e4 Suppress the dummy target comment appearing in build log on each build. 2015-01-05 22:31:32 +08:00
Yao Wei Tjong 姚伟忠
359efb2d37 Move the DebugNew.h from Urho3D/Container subdir to Urho3D subdir. 2015-01-05 22:31:32 +08:00
Mike3D
7f805b8645 Centered Imp Spriter anim on the Y axis and removed position offset in samples. 2015-01-05 14:32:12 +01:00
Mike3D
be94437b69 Simplified sample 15 2015-01-05 14:21:37 +01:00
Lasse Öörni
ab770f00b2 Add missing wide char C string + String operator. Fixes #592. 2015-01-05 01:18:42 +02:00
urho3d-travis-ci
1889f1a66b Travis CI: API documentation update at 2015-01-04 16:07:14 UTC.
[ci package]
2015-01-04 16:07:14 +00:00
Yao Wei Tjong 姚伟忠
65aa095a0c Refactor newly added sample app to use Urho3D SDK include path. 2015-01-04 22:49:18 +08:00
Yao Wei Tjong 姚伟忠
b0f96615d8 Further clean up on the include path for the Graphics sub-library. 2015-01-04 22:40:40 +08:00
Yao Wei Tjong 姚伟忠
71862e42c1 Reinstate the MSVC "workaround" include path fix. 2015-01-04 22:40:40 +08:00
Yao Wei Tjong 姚伟忠
0a2e601307 Change the include path for Precompiled header to fix MSVC build. 2015-01-04 22:40:40 +08:00
Yao Wei Tjong 姚伟忠
20758f85d4 Fix DXD9 build caused by wrong relative include path. 2015-01-04 22:40:40 +08:00
Yao Wei Tjong 姚伟忠
2b353512c3 Fix freetype2 headers installation - missed one file earlier. 2015-01-04 22:40:40 +08:00
Yao Wei Tjong 姚伟忠
b51e419c88 Change impl. file to include the header file from corresponding subdir.
Change header file to use relative pathspec when including other files.
2015-01-04 22:40:40 +08:00
Yao Wei Tjong 姚伟忠
4c17b03173 Remove existing include path abstraction.
Remove engine's sub-CMakeLists.txt.
2015-01-04 22:32:42 +08:00
Yao Wei Tjong 姚伟忠
4a2a6d7115 Fix the MSVC workaround for the relative path include.
[ci skip]
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
1cbbb6b805 Finalize SDK-like include dirs clean up. Fix build using MSVC. 2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
a4a4cde236 Refactor all CMake toolchains to reset CMAKE_INSTALL_PREFIX variable.
Add new build options for specifying tool-prefix and target-sysroot in cross-compiling build.
Add new IOS_SYSROOT variable to store the path to iOS sysroot and use it to set CMAKE_FIND_ROOT_PATH variable.
Now also generate pkg-config Urho3D.pc for iOS platform.
For Travis CI - simplify SDK installation logic. Use DESTDIR=~ to avoid sudo.
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
0c2e47a42d Use SDK include dir for SDL to fix Direct3D MinGW build.
For Travis CI - Correct the DESTDIR for MinGW CI build because cross-compiling MinGW is rooted.
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
4feb135281 Clean up SDK include dirs. Refactor FindUrho3D CMake module.
For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
16e05862ab Preparation for SDK include dir cleaning up. 2015-01-04 22:32:40 +08:00
Yao Wei Tjong 姚伟忠
8da094c1d3 Fix to use CMake source tree when retrieving Urho3D version number. 2015-01-04 22:32:40 +08:00
Yao Wei Tjong 姚伟忠
325a4f7365 Refactor to use the newly renamed Source/Urho3D directory. 2015-01-04 22:32:40 +08:00
Yao Wei Tjong 姚伟忠
bcf7c94ec8 Rename Source/Engine to Source/Urho3D. 2015-01-04 22:32:40 +08:00
Yao Wei Tjong 姚伟忠
a6a9e9891f Clean up the LuaJIT build script - use normal replace in escaping vars. 2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
8e6fe0da14 Refactor LuaJIT build scripts - no more generated CMakeLists.txt. 2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
67e415acc8 Fine tune LuaJIT target arch detection logic. 2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
0af8a30650 Fix 32-bit LuaJIT build for Linux&OSX. Fix host tool building for iOS. 2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
4db162eb62 Lua/LuaJIT host tool building while cross-compiling in one go.
For Travis CI - reenable CI build with Lua/LuaJIT build option turned on.
2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
f9cb911cec Fix AngelScript binding which broke MinGW and OSX CI build.
Unify CMake module path setting command between Windows and non-Windows hosts for using library from SDK installation.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
d75c592bd2 Add new engine parameter to set the location of resource prefix path.
Remove temporary measure instead use the new URHO3D_PREFIX_PATH environment variable to set the resource prefix path for testing the executables.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
98d410091e Fix temporary measure for creating asset dir symlink in Ubuntu host.
Also:
- fix Android-CI build which does not need the symlink creation in the first place.
- fix an existing Xcode build configuration bug which was left undetected until now.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
20e21050e9 Rename everything 'RASPI' to 'RPI'. [ci rebase] 2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
d8a3b8b4f4 Make repo root is also CMake source tree for the Urho3D project.
Build tree location is now fully user defined. The build tree location could also be the same as source tree, although it is not recommended.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
20ce0cebca Move Android subdir from Source dir to project root. 2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
4f60123516 Move CMake modules and toolchains to the new source tree. 2015-01-04 22:32:38 +08:00
Mike3D
be7a5f44a6 Typo 2014-12-30 07:47:22 +01:00
Lasse Öörni
50e2493b97 Added example of loading scene & UI content. Closes #583. 2014-12-29 22:33:15 +02:00
Lasse Öörni
c8f82c1327 Fix Shader member variable numVariations_ being uninitialized. Closes #585. 2014-12-29 19:20:21 +02:00
urho3d-travis-ci
faf1b2fb0c Travis CI: API documentation update at 2014-12-29 12:04:55 UTC.
[ci package]
2014-12-29 12:04:55 +00:00
Mike3D
41132cf711 Also save vertices for CollisionChain2D 2014-12-29 12:56:21 +01:00
urho3d-travis-ci
45452952b6 Travis CI: API documentation update at 2014-12-29 06:47:37 UTC.
[ci package]
2014-12-29 06:47:37 +00:00
aster2013
63f5ea4111 CollisionPolygon2D save vertices data. 2014-12-29 14:37:41 +08:00
Lasse Öörni
dcfd6e54af Fix WritePackedQuaterion() always returning false. Closes #581. 2014-12-28 15:03:07 +02:00
urho3d-travis-ci
32980275fa Travis CI: API documentation update at 2014-12-27 13:51:48 UTC.
[ci package]
2014-12-27 13:51:48 +00:00
aster2013
700673f556 Remove pushFront argument from Node::GetOrCreateComponent, fix issue #579, because it is important than issue #569, I think this function can rename to Node::RequireComponent. 2014-12-27 21:42:25 +08:00
Mike3D
598fab2371 Use GetPosition2D() when appropriate. 2014-12-27 11:37:25 +01:00
Mike3D
c676f13d8b Removed Spriter position offset (no longer needed) 2014-12-27 11:14:56 +01:00
aster2013
330aa64831 Do not check material in Renderer2D::CheckDrawableVisibility. [ci skip] 2014-12-24 22:03:46 +08:00
aster2013
ee632ca2ca Disable check is Renderer2D::MarkMaterialDirty, make is faster for large tiled map. #575. 2014-12-24 21:22:05 +08:00
aster2013
1710801dcb Disable Renderer2D check drawable. 2014-12-24 13:25:17 +08:00
urho3d-travis-ci
54d6b633b2 Travis CI: API documentation update at 2014-12-23 10:41:59 UTC.
[ci package]
2014-12-23 10:41:59 +00:00
aster2013
67e2c05c9e Fix some bugs in Angelscript API, #572. 2014-12-23 18:25:22 +08:00
Mike3D
08813e8e4b Ensure full display of Urho2D samples whatever the user's resolution 2014-12-23 07:54:15 +01:00
aster2013
955b8008ff Fix typo. 2014-12-23 12:08:31 +08:00
urho3d-travis-ci
86f0ead2c0 Travis CI: API documentation update at 2014-12-19 16:21:17 UTC.
[ci package]
2014-12-19 16:21:17 +00:00
aster2013
c0ab31d121 Add attribute animation added and removed event when it added or removed from object animation. 2014-12-20 00:04:42 +08:00
aster2013
58c527cb65 Fix Sprite2D reload 2014-12-19 13:29:25 +08:00
urho3d-travis-ci
cd4c28a226 Travis CI: API documentation update at 2014-12-17 14:00:28 UTC.
[ci package]
2014-12-17 14:00:28 +00:00
aster2013
fcdd61dae6 Add pushFront argument to Node::GetOrCreateComponent function, fix issue #569 2014-12-17 21:50:15 +08:00
Lasse Öörni
6eaa8c4331 Fix autoload paths not appending the executable base path consistently. 2014-12-17 12:08:43 +02:00
aster2013
60caecbb70 Remove Drawable2D in destruct function, add root node for TileMap2D. 2014-12-17 13:52:28 +08:00
urho3d-travis-ci
b6743cc884 Travis CI: API documentation update at 2014-12-16 13:04:56 UTC.
[ci package]
2014-12-16 13:04:56 +00:00
aster2013
dc0455d3cc Merge branch 'make-2d-faster' 2014-12-16 20:54:48 +08:00
aster2013
4dda12bcde Fix ParticleEmitter2D update. 2014-12-16 18:36:14 +08:00
aster2013
a170b6b599 Do not add Drawable2D to Octree, make 2D performance faster. 2014-12-16 18:18:20 +08:00
nemerle
47c788ed25 Simplify Shader::GetVariation code 2014-12-15 14:41:45 +01:00
urho3d-travis-ci
85af864e0f Travis CI: API documentation update at 2014-12-14 10:44:51 UTC.
[ci package]
2014-12-14 10:44:51 +00:00
Lasse Öörni
f585ed56b0 Nullcheck ScriptObject before storing inside Variant. Code convention fix. 2014-12-14 12:24:19 +02:00
Alex Parlett
ce28af5357 [Added] ScriptObject can be stored in Variant. There is a risk to this as the reference is not increased when storing it so it is only a weak reference so if the original handle is kept safe in the script it can be null
[Changed] REgister ScriptObject interface much sooner
2014-12-14 09:45:14 +00:00
Lasse Öörni
769f314c55 Update SoundSource's effective master gain on demand when master gains or sound type changes instead of in the mixing thread to avoid potential issues when the master gain map is being changed at the same time. 2014-12-13 20:13:07 +02:00
urho3d-travis-ci
4d399f9637 Travis CI: API documentation update at 2014-12-13 16:35:32 UTC.
[ci package]
2014-12-13 16:35:32 +00:00
Lasse Öörni
7318006d83 Fix UI element drags with DragDropContent defined showing a "not accepted" icon, yet succeeding when the drag is released. 2014-12-13 18:03:03 +02:00
Lasse Öörni
0e5f6e2070 Build and Lua bindings fixes. Return 1.0 for unknown master volumes. Change Audio::IsMasterGain() to Audio::HasMasterGain(). Change Audio::GetSoundSourceMasterGain() to use StringHash to avoid per-frame string compares. Guard against out of bounds array access when deserializing cursor's shape attributes. 2014-12-13 17:08:52 +02:00
Alex Parlett
c2110573c6 [Added] Documentation
[Added] Sound Type saving in editor
[Changed] Refactored inline with discussion
2014-12-13 09:09:56 +00:00
Alex Parlett
cd099df50f Added dynamic cursor definitions while keeping the original enum definitions for backwards compatibility, ui subsystems and sdl. Revised the serialization system for cursors as well which is a breaking change and requires wrapping each old style cursor definition in a <variant type="VariantVector></variant>. 2014-12-12 15:58:54 +00:00
Alex Parlett
d59a5b8bfb Fix for new serialization system and StringHashes 2014-12-12 15:58:44 +00:00
Alex Parlett
4414eeaeff Added Lua Bindings 2014-12-12 15:58:34 +00:00
Alex Parlett
5d12f5a521 Added editor sound type editor window, the user added ones can be dragged onto line edits which sets that line editor with the internal StringHash of the Sound Type.
Added AM_READ for backwards compatibility to read old enum based sound types but not serialize them.
2014-12-12 15:58:24 +00:00
Alex Parlett
5d94ebfc95 [Added] Angelscript Bindings
[Fixed] SetSoundTypeAttr and GetSoundTypeAttr
2014-12-12 15:58:08 +00:00
Alex Parlett
8123624ee1 [Added] C++ Implementation of dynamic audio sound types which maintains backward compatibility 2014-12-12 15:57:58 +00:00
Lasse Öörni
028d5c82f6 Reduce number of used texture units correctly regardless of the order in which texture units are cleared. 2014-12-12 17:28:58 +02:00
urho3d-travis-ci
ffa78ec4b3 Travis CI: API documentation update at 2014-12-11 17:57:57 UTC.
[ci package]
2014-12-11 17:57:57 +00:00
Lasse Öörni
8c8f18a961 Allow a material to refer to any texture unit. Optimize setting batch's material renderstate by only looping through the used texture units. Note: the material editor in the editor does not support the extra units yet. 2014-12-11 19:25:42 +02:00
Yao Wei Tjong 姚伟忠
8b496896f2 Merge changes from Android/CMake upstream repo to support NDK r10d. 2014-12-10 21:46:59 +08:00
aster2013
c86d2239b2 Use string hash key to store sprites. 2014-12-10 20:10:06 +08:00
aster2013
f89bd44f37 remove spaces.[ci skip] 2014-12-10 13:44:46 +08:00
aster2013
941dcb02e5 rename animation root node.[ci skip] 2014-12-10 13:44:45 +08:00
aster2013
3b9d82d729 Refactor 2D animation, make 2d animation more general. 2014-12-10 13:44:44 +08:00
urho3d-travis-ci
a1986b0c2b Travis CI: API documentation update at 2014-12-09 12:41:35 UTC.
[ci package]
2014-12-09 12:41:35 +00:00
Lasse Öörni
1dc786f455 Fix missing Ray::HitDistance() with Plane in AngelScript bindings. 2014-12-09 14:29:08 +02:00
urho3d-travis-ci
da262f930a Travis CI: API documentation update at 2014-12-08 23:48:24 UTC.
[ci package]
2014-12-08 23:48:24 +00:00
hdunderscore
8258c105e0 Exposed autoDisableChildren to ListView in AngelScript. 2014-12-09 10:25:29 +11:00
Lasse Öörni
52762aee5e More informative error message if submesh bone limit exceeded. 2014-12-08 13:51:27 +02:00
aster2013
a4c5dd181e Add more comment to AnimatedSprite2D. 2014-12-06 22:04:22 +08:00
Lasse Öörni
78aed7adc1 Fix billboard facing and sorting when rendered from several views on the same frame. Closes #551. 2014-12-06 15:56:25 +02:00
urho3d-travis-ci
9d670a113e Travis CI: API documentation update at 2014-12-06 13:20:33 UTC.
[ci package]
2014-12-06 13:20:33 +00:00
Lasse Öörni
b8d8f9f78f Add uncompressed DDS support. Supports all bit configurations by a generic conversion to 8bit-per-pixel RGBA. Unify Image bindings between Lua & AngelScript. Closes #537. 2014-12-06 02:17:25 +02:00
Yao Wei Tjong 姚伟忠
6eac62dfc7 Fix MinGW CMake toolchain to also work with Debian-based host system. 2014-12-05 12:55:11 +08:00
Yao Wei Tjong 姚伟忠
295c9e4d16 Hide internal and advanced CMake variables from casual cmake-gui user.
Also in the commit:
- Slightly speed up the configuration step by taking advantage of CMake cache.
- Does not expose URHO3D_64BIT as build option on Android and Raspberry Pi platforms because this variable should be preset based on the chosen compiler toolchain.
- Only provide URHO3D_MKLINK build option when building on a Windows host system and not when cross-compiling using MinGW toolchain.
- Refactor Android and Raspberry Pi CMake toolchains to make them consistent with each other and more user friendly.
2014-12-05 12:24:02 +08:00
Lasse Öörni
9102936b70 Disable debug visualization of terrain patch bounding boxes, as it slows down the editor and does not have much visual usability. 2014-12-04 17:25:48 +02:00
Lasse Öörni
23a4856b89 Document object attribute and event helper macros. Minor documentation cleanup. 2014-12-04 11:53:48 +02:00
Lasse Öörni
141c3f2491 Add Clone() function to EventHandler. 2014-12-04 11:19:51 +02:00
Yao Wei Tjong 姚伟忠
9855bfe5fb Apply the attribute changes after animating its values.
Fixes #554.
2014-12-04 12:56:22 +08:00
urho3d-travis-ci
37fc8376a8 Travis CI: API documentation update at 2014-12-02 14:24:37 UTC.
[ci package]
2014-12-02 14:24:37 +00:00
aster2013
814aa3ca4d Merge branch 'view3d-remove-weakptr' 2014-12-02 21:32:14 +08:00
Lasse Öörni
636562bd23 Added main thread ID check in Log::HandleEndFrame(). 2014-12-02 11:36:56 +02:00
aster2013
5da25ace4e Remove WeakPtr from View3D, change View3D::SetView ownScene argument's default value to true, same like C++ and AngelScript. 2014-12-01 21:20:24 +08:00
urho3d-travis-ci
4950673692 Travis CI: API documentation update at 2014-12-01 13:16:56 UTC.
[ci package]
2014-12-01 13:16:57 +00:00
aster2013
d6234414b0 Merge branch 'refactor-animatedsprite2d' 2014-12-01 21:02:09 +08:00
urho3d-travis-ci
641c07630f Travis CI: API documentation update at 2014-12-01 10:46:20 UTC.
[ci package]
2014-12-01 10:46:20 +00:00
Lasse Öörni
09c023e788 ParticleEffect Load & Save overloads with XMLElement do not need to be virtual. 2014-12-01 11:45:28 +02:00
aster2013
8b8932fa7a Refactor AnimatedSprite2D, make it derived from StaticSprite2D, Fix issue #547. 2014-11-30 19:44:13 +08:00
hdunderscore
95a4948f9c Bug fix: Angelscript binding for ParticleEffect::SetEmitting 2014-11-30 18:41:01 +11:00
hdunderscore
ed78af0f1f Initial Undo/Redo support added -- redo doesn't work for the Line Edits ? 2014-11-30 18:41:01 +11:00
hdunderscore
0ced3e43fb Fixed a texture frame bug, where the size of color frames was being checked instead.
Moved some particle effect logic into the editor HandleUpdate event, so the particle effect will automatically restart when it stops.
2014-11-30 18:40:54 +11:00
hdunderscore
5cf0a82dab Color frames + texture frames are now editable in editor.
Several features still need to be implemented (and currently can cause crashes).
2014-11-30 18:40:52 +11:00
hdunderscore
f75e915bc0 Working to add improved color frame editing. 2014-11-30 18:40:52 +11:00
hdunderscore
5cce464c03 A functional particle editor for the Urho Editor, however saving/reverting, undoing/redoing, and displaying loaded attributes doesn't work yet 2014-11-30 18:40:50 +11:00
urho3d-travis-ci
292cf0452b Travis CI: API documentation update at 2014-11-29 13:47:31 UTC.
[ci package]
2014-11-29 13:47:31 +00:00
aster
bed13f408b Add ownScene option in View3D::SetView, The default value is true in C++ or AngelScript, and false for Lua. Fix issue #545. 2014-11-29 21:37:34 +08:00
aster2013
3f3fb2a7dc Restore custom material in Drawable2D. 2014-11-28 22:49:35 +08:00
Lasse Öörni
3589fa7830 Fix alpha materials in StaticModelGroup only displaying 1 instance. Closes #544. 2014-11-27 17:34:23 +02:00
Lasse Öörni
02e68ac7e5 Refactor to remove child node and its components from scene immediately when it is being removed from the parent. 2014-11-27 17:34:23 +02:00
Josh Engebretson
5e1a72e317 When setting a new sprite, have to mark vertices dirty to pick up changes in rectangle, hotspot, etc 2014-11-26 16:17:42 -08:00
Yao Wei Tjong 姚伟忠
ec390c2913 Suppress CMake unused variable warning for Android platform. 2014-11-26 16:26:34 +08:00
Yao Wei Tjong 姚伟忠
f6e8f3b0fa Merge branch 'cleaning-up-build-scripts-for-android' into master. 2014-11-26 14:22:41 +08:00
aster2013
5f68fa2868 Only get enabled Drawable2D in Renderer2D. 2014-11-25 21:23:48 +08:00
Yao Wei Tjong 姚伟忠
46adfcfe46 Set the CPack default installation dir to be the same as CMake one.
This is only applicable for CPACK when creating RPM and DEB software packages. The CPack and CMake installation dir are now both set to /usr/local.
This commit also makes it possible to generate Urho3D.pc for Android platform now. Note the default installation dir for Android is /user instead (Android has its own convention as set by android.toolchain.cmake).
2014-11-25 13:40:35 +08:00
aster2013
b9be757f03 When index buffer data lost, reset index buffer data. 2014-11-25 00:01:21 +08:00
urho3d-travis-ci
c1b51e611a Travis CI: API documentation update at 2014-11-24 15:10:14 UTC.
[ci package]
2014-11-24 15:10:14 +00:00
Lasse Öörni
9d78a85348 Add events for GPU context loss & restore. 2014-11-24 16:54:44 +02:00
urho3d-travis-ci
5ea049470b Travis CI: API documentation update at 2014-11-24 10:49:19 UTC.
[ci package]
2014-11-24 10:49:19 +00:00
aster2013
33f5612c30 Fixed tile map remove layer node bug. 2014-11-24 14:02:47 +08:00
aster2013
35735b11d3 Remove unused code, rename DefaultMaterial to Material. 2014-11-24 13:48:57 +08:00
aster2013
93cce995e8 Fix bug. 2014-11-24 13:27:48 +08:00
aster2013
ae33830dd2 rename DRAWABLE_PROXYGEOMETRY DRAWABLE_RENDERER2D 2014-11-24 13:01:43 +08:00
aster2013
511d6f461f Remove custom material from Drawable2D, Renderer2D will get all Drawable2D when HandleBeginViewUpdate. 2014-11-24 12:49:19 +08:00
aster2013
fb07e32cdd Remove Sprite2D from Drawable2D, make Drawable2D more general. 2014-11-24 12:12:41 +08:00
aster2013
aaa792609a Combine DrawableProxy2D and MaterialCache2D in to Renderer2D. 2014-11-24 11:42:17 +08:00
Yao Wei Tjong 姚伟忠
e7b0808b12 Misc. fixes in the build script to improve the release mechanism.
The following changes address the shortcomings of our current release mechanism detected from our last release.
- Define and set RELEASE_TAG environment variable only when a git tag conform to a release tagging matching regex "\d+\.\d+".
- Change the logic to allow the automated rake tasks to be triggered on a 'tag' branch properly.
- Fix the 'git rebase' command to use the branch pointed by TRAVIS_BRANCH environment variable as baseline, instead of assuming it to be always 'origin/master' as before.
- Change Urho3D library versioning CMake module to omit the version patch number when there is none, i.e. 1.32 instead of 1.32.0.
2014-11-23 20:01:32 +08:00
aster2013
ba1e0974d0 Remove COPY_BASE_ATTRIBUTES(Component); 2014-11-23 12:42:42 +08:00
urho3d-travis-ci
5c1f05ed10 Travis CI: API documentation update at 2014-11-22 15:30:34 UTC.
[ci package]
2014-11-22 15:30:34 +00:00
aster2013
4655ee1ee4 Submit code in LuaScript samples. 2014-11-22 16:23:17 +08:00
aster2013
f8879539fa Add space template function. 2014-11-22 16:05:29 +08:00
aster2013
09a33521aa Add space before template >, let GCC happy. 2014-11-22 15:47:21 +08:00
aster2013
c1ea1f9e06 Move attribute name as first parameter in ATTRIBUTE macro, same as other attribute macros. 2014-11-22 15:23:16 +08:00
aster2013
13d3f1c8ac Add attribute trait, treat ref attribute same with attribute. 2014-11-22 15:04:09 +08:00
aster2013
9e5172a959 Add EnumAttributeAccessorImpl class, remove all Variant::Get<> functions for enum type. 2014-11-22 13:22:37 +08:00
aster2013
cb819a5a6f Remove class name and variant type from attribute macros. 2014-11-22 12:43:23 +08:00
aster2013
d99b6e9a4e Remove type from MIXED_ACCESSOR_ATTRIBUTE macro, make it more cleaner. Other attribute macros will be modify later. 2014-11-22 00:54:28 +08:00
aster2013
5ea467ff23 Add GetVariantType functions, Fix compile warning in UI.cpp. 2014-11-22 00:44:36 +08:00
aster2013
5eed296f37 Add comment for modify third-party code. 2014-11-22 00:43:00 +08:00
Yao Wei Tjong 姚伟忠
60eeb45222 For Travis CI - skip APK test run when packaging.
General build script cleanup:
- Constrain build option values in cmake-gui.
- Constrain build configuration for both multi-configuration and single-configuration generators.
- Mark cached variables as advanced or internal as appropriate.
2014-11-22 00:39:48 +08:00
aster2013
c7e248b13a Enable mouse visible in UIDrag sample. 2014-11-21 22:13:22 +08:00
aster2013
4058e45acb Fix compile warning in tolua. 2014-11-21 22:00:15 +08:00
aster2013
7e46f0c862 Add MIXED_ACCESSOR_ATTRIBUTE. 2014-11-21 18:26:45 +08:00
aster2013
657a7d9922 Make GetCPUData and GetAndroidCPUCount static. 2014-11-21 15:31:48 +08:00
Lasse Öörni
65ee2ca966 Add function to get CPU count on Android. For now returns the same for logical & physical. Closes #535. Update changelog. 2014-11-20 14:49:38 +02:00
urho3d-travis-ci
aa3f467da2 Travis CI: API documentation update at 2014-11-20 11:17:19 UTC.
[ci package]
2014-11-20 11:17:19 +00:00
aster2013
e24648ae47 remove empty line, rename variance. 2014-11-20 18:17:09 +08:00
aster2013
12aceffb82 Merge remote-tracking branch 'remotes/origin/Subscribe-to-Lua-Function' 2014-11-20 18:06:52 +08:00
Lasse Öörni
c7b07bdb10 supress -> suppress 2014-11-20 11:53:27 +02:00
hdunderscore
17118be70f Input::SetMouseMode and Console::SetVisible were keeping track of last mouse visible independently, which could cause mouse to become trapped in editor (eg: drag slider + open console + press escape).
Now a unified way of hiding the mouse and recalling the 'true' visibility is provided via SetMouseVisible(bool enable, bool supressEvent) and ResetMouseVisible().
2014-11-20 19:56:51 +11:00
aster2013
00c9316503 Fix typo. 2014-11-20 16:41:04 +08:00
aster2013
90eb670146 Remove unused code. 2014-11-20 14:20:55 +08:00
aster2013
8d067b2810 Now, we can use Lua function to handle event directly, for example:
SubscribeToEvent(draggableFish, "DragBegin",
  function (eventType, eventData)
    dragBeginPosition = IntVector2(eventData:GetInt("ElementX"), eventData:GetInt("ElementY"))
  end)
2014-11-20 14:17:34 +08:00
PrimitiveWaste
788badde48 Fix a bug in UIElement's CalculateLayout() that caused an infinite loop with certain flex scale values . Fixes #529 2014-11-19 12:37:25 -08:00
Yao Wei Tjong 姚伟忠
e3c1ce1f99 Add Android ABI 64-bit support into 1.32 changelog.
Test [ci package] of new Android ABIs.
2014-11-19 23:34:39 +08:00
Yao Wei Tjong 姚伟忠
0fb99af9e4 Misc. fixes and enhancement for Android platform.
- Add initial support for ndk-gdb. Enable via new 'URHO3D_NDK_GDB' build option.
- Enhance rake android task: more effective loop to wait for Android device, ability to pick library to run from SampleLauncher from the adb shell.
- Fix "buildvm" tool name for Android to derive from the correct NDK ABI CMake's variable.
- Fix Android toolchain to copy shared STL library to the correct Android library output directory.
2014-11-19 21:50:37 +08:00
Yao Wei Tjong 姚伟忠
733b0bbaeb Fix AngelScript library to support Android ABI arm64-v8a (untested). 2014-11-19 21:48:26 +08:00
Yao Wei Tjong 姚伟忠
12dd2699c5 Tighten the check to detect Android ABI x86_64 in AngelScript library.
Related to commit b7ab0ad4f8970d52b290b2789a94aefc669b9cfb.
2014-11-19 21:48:26 +08:00
Yao Wei Tjong 姚伟忠
e0e3b11757 Refactor build scripts to auto detect ANDROID and RASPI build options. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
dd4eadb958 Fix AngelScript library to support Android ABI x86_64. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
edc6529491 Init the URHO3D_64BIT build option to 1 when Android ABI is arm64-v8a. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
c711d450ed Name Android buildvm tool for LuaJIT library differently based on ABI. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
dc1753e7f9 Fix Android toolchain so that Clang always comes after GCC.
Merge some of the changes from one of the android-cmake's PR for NDK r10c.
2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
eda52984ac Add initial support for 64-bit Android ABIs. 2014-11-19 21:48:25 +08:00
Lasse Öörni
fbe7108de8 Check node_ being non-null in RigidBody::ApplyWorldTransform(). 2014-11-19 15:45:03 +02:00
Lasse Öörni
4f8bc4a9f2 Revert "Allow UIElements to keep their current size if greater than the calculated size during layout updates."
This reverts commit b97c8d4712.

FileSelector or the editor's hierarchy window would not resize to smaller properly if the amount of items in the list was being reduced. The MinSize attribute should be used to absolutely prevent layouting making an element smaller.
2014-11-19 14:59:06 +02:00
urho3d-travis-ci
26ebc5f780 Travis CI: API documentation update at 2014-11-17 21:35:01 UTC.
[ci package]
2014-11-17 21:35:01 +00:00
PrimitiveWaste
283d0d196b Add layout flex scale to UIElement. Prevent layout updates while loading attributes. 2014-11-17 12:14:03 -08:00
PrimitiveWaste
b97c8d4712 Allow UIElements to keep their current size if greater than the calculated size during layout updates. 2014-11-17 12:14:02 -08:00
PrimitiveWaste
11cb6e05b6 Prevent UI Window from drifting when resizing from top right. 2014-11-17 12:14:02 -08:00
Lasse Öörni
8557571cb4 More robust check for OcclusionBuffer culling mode. Now also CULL_NONE mode should detect triangle facing correctly. 2014-11-17 21:33:26 +02:00
Lasse Öörni
b325ba5195 Support excluding 2D functionality from the build (CMake option URHO3D_URHO2D=0). Removed empty scene creation from the UIDrag example. Make compiling Civetweb conditional of URHO3D_NETWORK. Exclude samples depending on the Controls structure when URHO3D_NETWORK is disabled. 2014-11-17 21:00:02 +02:00
Lasse Öörni
16c05ee6cf Fix occlusion rendering to work with reverse triangle winding. Fix MultipleViewports C++ example using depth test in debug geometry. 2014-11-17 18:04:32 +02:00
Lasse Öörni
a5049d423f Avoid looping through geometries just before render just to find out their geometry update type. Removed the now unnecessary shadowGeometries_ vector. Thanks to OvermindDL1 for bringing this to attention. 2014-11-17 16:02:51 +02:00
urho3d-travis-ci
5f4f6870d9 Travis CI: API documentation update at 2014-11-17 12:11:52 UTC.
[ci package]
2014-11-17 12:11:52 +00:00
Lasse Öörni
3969b69b0d Refactor material shader parameter animations so that they happen in response to update events, the same as component/node attribute animations. This fixes material animations depending on visibility and therefore possibly going out of sync from other updates. Add possibility to associate material with scene to make it use the scene attribute update event instead of the global update event. 2014-11-17 14:00:45 +02:00
urho3d-travis-ci
fa4b96895a Travis CI: API documentation update at 2014-11-15 18:43:15 UTC.
[ci package]
2014-11-15 18:43:15 +00:00
Lasse Öörni
7a55b3b977 Merge remote-tracking branch 'hdunderscore/Input_MouseCursorRecall' 2014-11-15 18:57:03 +02:00
Lasse Öörni
50eb143319 Fix consistency in touch hover touch ID. Fix returning touch IDs as available. When resetting touches, reset the touch ID mapping also. In UIDrag example, show the actual touch ID's instead of indices, to verify that the ID's stay consistent. Fix UIDrag Lua example erroneously modifying the TouchState's position. 2014-11-15 18:42:28 +02:00
Lasse Öörni
0821dd482f Merge remote-tracking branch 'hdunderscore/UIDrag_Bugfix' 2014-11-15 17:22:06 +02:00
hdunderscore
55921e14fd - Updated documentation for Input mouse modes.
- Change so that Input::GainFocus restores previous mouse mode.
- Fixed a bug where setting mouse mode in Input::LoseFocus was concealing the mouse visibility.
- Change so that SetMouseVisible tracks the intended visibility when MM_RELATIVE forces it off. This information is used to correctly set mouse visibility when changing mouse modes.
- Updated editor drag editing so that the cursor position is always at 0.
2014-11-16 01:05:28 +11:00
hdunderscore
b49e0c2a5d Moved the SDL touch ID -> Urho touch ID logic from UI to Input, so that querying Input/TouchState should give you a touch index that will always be consistent (between TouchDown and TouchUp events) and start from 1. 2014-11-15 13:22:38 +11:00
Lasse Öörni
edf9f03366 Fix possibility of degenerate OcclusionBuffer triangle edges causing a floating point division by zero. Thanks to nemerle for noticing this. 2014-11-14 10:52:47 +02:00
urho3d-travis-ci
2afc444c4b Travis CI: API documentation update at 2014-11-13 19:09:31 UTC.
[ci package]
2014-11-13 19:09:31 +00:00
Lasse Öörni
f65aa514ad Fixed UI bug where positioning a window to the left partially outside the screen would cause GetElementAt() to stop working on the window's layouted child elements. 2014-11-13 20:31:14 +02:00
Lasse Öörni
aee35424b8 Merge remote-tracking branch 'remotes/nemerle/valgrind_fixes' 2014-11-13 20:07:47 +02:00
Lasse Öörni
e0fa4d2560 For a minor performance improvement, do not mark AnimatedModel skinning dirty if it does not contain bones. 2014-11-13 19:42:33 +02:00
Artur K.
62fbdeee59 Fix uninitialized read of Texture::_format
Discovered by valgrind.
Call sequence leading to the problem:
Urho3D::FontFace::LoadFaceTexture calls CreateFaceTexture() and right afterwards SetData()
SetData will call IsCompressed() at line 316, thus reading potentially garbage data.
2014-11-13 17:49:00 +01:00
Artur K.
b7f38d80d6 Fix valgrind warning about mismatched new/delete
Mostly a hygienic fix.
2014-11-13 17:30:40 +01:00
Lasse Öörni
e55f92d5e2 Allow to set Skeleton's root bone index programmatically. 2014-11-13 17:48:46 +02:00
urho3d-travis-ci
153a818e7d Travis CI: API documentation update at 2014-11-12 17:07:51 UTC.
[ci package]
2014-11-12 17:07:51 +00:00
Lasse Öörni
b9c340ed12 Allow to not serialize ParticleEmitter particles to reduce scene file size. Closes #522. 2014-11-12 18:43:51 +02:00
Lasse Öörni
81ddbd0b2e Update Android toolchain from https://github.com/taka-no-me/android-cmake to support NDK r10c. 2014-11-10 22:12:30 +02:00
Yao Wei Tjong 姚伟忠
125adf1228 Enhance Urho3D.pc file generation to support MSVC and MinGW better.
Simplify the pkg-config invocation example for MinGW cross-compiler since the Urho3D library name is already corrected. No need to sed anymore.
2014-11-09 18:08:58 +08:00
hdunderscore
c293f170ed Initial implementation of two extra mouse modes:
- MM_RELATIVE: sets mouse invisible, continues to work with UI if ui cursor is invisible to allow for continuous motion.
- MM_WRAP: wraps OS cursor around the window to allow for continuous motion.
2014-11-09 21:04:58 +11:00
hdunderscore
3d58fc94c9 Updated the UI Drag sample descriptions. 2014-11-09 18:55:37 +11:00
Yao Wei Tjong 姚伟忠
6b35f89a07 Avoid hardcoding the D3D9 library dependencies.
This change should actually be part of this commit 971fa90c10.
2014-11-09 12:14:11 +08:00
hdunderscore
b523a14886 Adds consistent mapping between event received touch id and UI internal touch id, to ensure that first touch id always acts as mouse left. 2014-11-09 11:37:54 +11:00
urho3d-travis-ci
a9e4e31ca3 Travis CI: API documentation update at 2014-11-07 18:14:07 UTC.
[ci package]
2014-11-07 18:14:07 +00:00
Lasse Öörni
108e9ad252 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-11-07 18:25:20 +02:00
Lasse Öörni
aa8faf79ec Normalize touch ID's to touch indices to ensure the first touch always works as the "left mousebutton" in the UI. 2014-11-07 18:20:45 +02:00
urho3d-travis-ci
e3d1f3e14f Travis CI: API documentation update at 2014-11-07 16:04:02 UTC.
[ci package]
2014-11-07 16:04:02 +00:00
Lasse Öörni
7f6962e47c Merge remote-tracking branch 'remotes/hdunderscore/UI_Drag_Update' 2014-11-07 17:43:44 +02:00
Lasse Öörni
943a2c348b Added mechanism to limit material techniques on desktop hardware. Closes #516. 2014-11-07 17:33:22 +02:00
Lasse Öörni
833f84b346 Allocate the View object permanently for each viewport, so that rendering stats and visible geometries etc. can be reliably accessed from a particular viewport's View after rendering each frame. 2014-11-07 16:38:27 +02:00
Lasse Öörni
6d3d336057 If AnimatedModel has no bones (has intentionally loaded a non-skinned model), use StaticModel raycast for more accuracy. 2014-11-07 14:40:30 +02:00
Yao Wei Tjong 姚伟忠
0652ccf394 Fix FindUrho3D CMake module to perform rooted search on MinGW CC build. 2014-11-07 17:01:07 +08:00
Yao Wei Tjong 姚伟忠
407374698c Fix MinGW installation directory when cross-compiling on Linux host. 2014-11-07 09:58:01 +08:00
hdunderscore
9fabafec87 Clean up + included a by-pass in UI.cpp to allow for drag move and drag end to occur when Input::IsMouseGrabbed() is true (allowing existing events to continue, preventing new events from triggering). 2014-11-06 16:03:22 +11:00
Alex Parlett
017591d4e6 Fix for ValueAnimation EventFrame never being called if it shares the same time as the last KeyFrame.
Closes #512
2014-11-05 18:02:28 +00:00
Lasse Öörni
7f3ff1a561 Fix Texture3D load failing always without an error message. Closes #513. 2014-11-05 16:39:07 +02:00
urho3d-travis-ci
42226761de Travis CI: API documentation update at 2014-11-05 09:55:42 UTC.
[ci package]
2014-11-05 09:55:42 +00:00
Lasse Öörni
367f6a345f Fixed skeletal animation trigger event not triggering for a looped animation, if the trigger point is defined at the animation's end. Fixed erroneous AngelScript binding for ValueAnimation::SetEventFrame(). 2014-11-05 11:42:07 +02:00
hdunderscore
ad6081192b Added Lua and AngelScript versions of Sample.
Added UIElement::GetDragButtonCount / UIElement::GetDragButtonCombo bindings to AngelScript.
2014-11-04 16:56:01 +11:00
urho3d-travis-ci
01850d3b93 Travis CI: API documentation update at 2014-11-03 19:48:23 UTC.
[ci package]
2014-11-03 19:48:23 +00:00
Lasse Öörni
f40f425ab8 Merge pull request #510 from hdunderscore/ScrollView_AutoDisableChildren_clean
ScrollView:: Auto disabling children when touch scrolling
2014-11-03 20:44:35 +02:00
urho3d-travis-ci
aa0499e214 Travis CI: API documentation update at 2014-11-03 16:53:48 UTC.
[ci package]
2014-11-03 16:53:48 +00:00
Lasse Öörni
b65bb59092 Configurable maximum substeps per frame in PhysicsWorld. Zero (default) = unlimited, positive = limited, negative = adaptive timestep, always 1 per rendering frame. Adaptive step is not recommended when consistent physics behavior is desired. 2014-11-03 18:30:05 +02:00
Lasse Öörni
02c595c8b7 Disable Bullet's built-in profiler, as the results are not being used. 2014-11-03 14:06:26 +02:00
hdunderscore
17e48a27f5 Child elements of a scroll view can now be auto disabled when touch scrolling to prevent triggering of child element events. 2014-11-03 09:48:38 +11:00
hdunderscore
bb3475b797 Exposed UIElement::GetDragButtonCombo and UIElement::GetDragButtonCount to Lua script, and adjusted their signatures. 2014-11-03 07:43:36 +11:00
hdunderscore
00656c5d30 Added a range check on GetDragElement(unsigned). 2014-11-03 07:36:33 +11:00
Yao Wei Tjong 姚伟忠
e9decd10ba Fix global anisotropic filtering mode on OpenGL. Closes #509. 2014-11-03 01:00:45 +08:00
hdunderscore
13412bc68f A sample showing how to use UI drag features (drag begin/move/end/cancel and how to use most of the event data), and it can be used to demonstrate multi-touch drag support on touch-enabled devices. 2014-11-02 15:29:04 +11:00
hdunderscore
007d3acc1a Changes to UI drag behavior:
- Multi-touch drag support
- Combo touch support -- you get id mask of pressed buttons + number of buttons + the average of their positions
- OnDrag* signature updates, with more information available and improved OnDragCancel / E_DRAGCANCEL support.
2014-11-02 14:17:37 +11:00
Yao Wei Tjong 姚伟忠
ec43f4e815 Init Graphic subsystem to have the same tex filtering mode as engine.
The Engine parameter and Renderer has the default texture filtering mode set to trilinear. While the Graphic subsytem has it set to bilinear. This mismatch would cause unnecessary graphic API calls, especially on OpenGL, in the first frame.
2014-11-01 20:39:55 +08:00
Yao Wei Tjong 姚伟忠
8ca1ee6096 Further clean up on URHO3D_OPENGL build option. 2014-10-31 12:26:18 +08:00
urho3d-travis-ci
18dbf70d0f Travis CI: API documentation update at 2014-10-30 13:24:38 UTC.
[ci package]
2014-10-30 13:24:38 +00:00
Lasse Öörni
3721ee0b10 Added Time::GetTimeSinceEpoch() and FileSystem::SetLastModifiedTime(). 2014-10-30 15:12:35 +02:00
Yao Wei Tjong 姚伟忠
899f8334f3 For Travis CI - add CI builds for MinGW + URHO3D_OPENGL=0 combination.
These new CI builds will perform the build test on the DirectX code path which is currently not covered in any of our existing CI.
The CI builds should also improve the detection of any breakage caused by build script changes for MinGW compiler.
2014-10-30 12:33:11 +08:00
Yao Wei Tjong 姚伟忠
971fa90c10 Always use FindDirect3D.cmake module on WIN32 when DirectX is used.
The module is enhanced so it works with both MSVC and MinGW compilers. On MinGW compiler the module does not actually attempt to search for DirectX SDK, instead it simply assumes that the headers and libraries for Direct3D are made available by the MinGW distribution.
2014-10-30 11:33:42 +08:00
Yao Wei Tjong 姚伟忠
09dcc466f9 Use the same condition to exclude kNet when using SDK installation.
Related to commit 867160628c
2014-10-29 19:50:45 +08:00
Lasse Öörni
867160628c Do not include Urho's built-in kNet include dir if URHO3D_NETWORK is disabled. 2014-10-29 10:48:21 +02:00
urho3d-travis-ci
5456dcf406 Travis CI: API documentation update at 2014-10-28 10:29:07 UTC.
[ci package]
2014-10-28 10:29:07 +00:00
Lasse Öörni
ff7cd0bb50 Use SDL_WINDOWPOS_UNDEFINED as the default window position to simplify code. 2014-10-28 11:17:35 +02:00
Jonne Nauha
2ae415939f E_WINDOWPOS and initial window position OGLGraphics implementation. 2014-10-27 17:15:44 -07:00
Jonne Nauha
7fee7f7cb5 Input: Notify Graphics subsystem about SDL window moved event. 2014-10-28 01:58:12 +02:00
Jonne Nauha
66913cf103 Engine: New WindowPositionX/Y init params. Sets initial window position prior to SetMode that creates the window. 2014-10-28 01:57:43 +02:00
Jonne Nauha
03d9532b4a New E_WINDOWPOS event when SDL notifies window movement. Support for setting initial window position beforecreation. 2014-10-28 01:55:49 +02:00
Lasse Öörni
c15411085a If DirectX SDK is not searched for or not found, DIRECT3D_LIBRARIES is not defined. Use hardcoded library names in that case. Closes #504. 2014-10-27 14:01:35 +02:00
Lasse Öörni
b923118fee Renamed parameter & clarified comment. 2014-10-26 13:50:54 +02:00
Alex Parlett
1aee7eb04e [Added] Ability to create script object by specifying an interface it implements instead. This interface has to be registered with the engine via engine->RegisterInterface...
[Changed] Made use of built in angelscript internals to find whether the script class found implements ScriptObject
[Changed] Check whether the current module holds the class and not the entire engine
2014-10-26 11:58:05 +00:00
urho3d-travis-ci
4a362593c2 Travis CI: API documentation update at 2014-10-26 05:16:35 UTC.
[ci package]
2014-10-26 05:16:35 +00:00
Yao Wei Tjong 姚伟忠
2c5fb1db03 Fix Technique class to recalculate memory used based on numPasses.
Add and expose convenient methods to retrieve the Passes in the Technique based on the pass type StringHash.
Note the API breaking change. In AngelScript the Technique's "passes" property is now returning all passes without taking any index. Use the "GetPass(StringHash)" method to get a single pass instead.
2014-10-26 13:06:00 +08:00
Lasse Öörni
d7924f907f Added glyph offset functionality to Font. Closes #13. 2014-10-25 23:11:49 +03:00
Lasse Öörni
3f51cee989 Give Data directory priority over CoreData. Give autoload paths priority over the default directories/packages. Fix the resource path/package add priority (index) having no effect, which would result in the editor not giving highest priority to the user's resource data directory. Closes #499. 2014-10-23 11:23:34 +03:00
Yao Wei Tjong 姚伟忠
d8177c23de Add "free" keyword to the project about info. 2014-10-21 11:53:11 +08:00
Lasse Öörni
59d48c1a43 Allow to momentarily disable multisample antialiasing. Used for UI and fullscreen quad rendering. 2014-10-20 22:17:58 +03:00
Yao Wei Tjong 姚伟忠
6099f0aafd Fix FindDirect3D.cmake module to only pick June 2010 SDK.
Closes #492.
2014-10-20 18:43:49 +08:00
Perttu Ahola
75fef62758 Fix Connection not sending delta update if only user variables have been modified 2014-10-17 11:09:10 +03:00
Lasse Öörni
5e8b50c9d3 Further package download logic fixes to ensure a package is not potentially entered into the resource cache several times, and that packages in the cache are scanned for only when necessary. 2014-10-15 13:25:43 +03:00
Lasse Öörni
8cc2386650 Clean up duplicated code related to package download requests. 2014-10-15 12:12:07 +03:00
Yao Wei Tjong 姚伟忠
1f91109413 Minor typo correction on the String::Compare() method. 2014-10-15 12:54:35 +08:00
urho3d-travis-ci
550d252cd1 Travis CI: API documentation update at 2014-10-14 19:36:58 UTC.
[ci package]
2014-10-14 19:36:58 +00:00
Lasse Öörni
18e85ab18a Changed Connection::SendPackageToClient() to not broadcast to all clients. Instead Network::SendPackageToClients() will send to all clients in a specific scene. Updated Network Lua bindings. 2014-10-14 22:07:01 +03:00
Lasse Öörni
cde92a8358 Minor editing of comments. 2014-10-14 21:46:16 +03:00
Lasse Öörni
bc0a61a116 Merge remote-tracking branch 'remotes/cin/master' 2014-10-14 21:22:16 +03:00
cin
949de81bd4 All sync method replaced by void Connection::SendPackageToClients(PackageFile* package) may be called after Scene::AddRequiredPackageFile on server 2014-10-15 00:10:35 +11:00
cin
264cd304ff Check changes in required packages before sync. 2014-10-14 14:39:26 +11:00
Yao Wei Tjong 姚伟忠
fedba5a558 Fix generation of temporary file name for Lua on Windows platform. 2014-10-14 11:18:47 +08:00
urho3d-travis-ci
40f745c82e Travis CI: API documentation update at 2014-10-13 21:52:40 UTC.
[ci package]
2014-10-13 21:52:40 +00:00
Lasse Öörni
64929dc50d Add possibility to disable RigidBody mass update to optimize performance when using several collisionshapes in the same node. Closes #489. 2014-10-14 00:41:12 +03:00
Perttu Ahola
86a035decf Fix Variant:SetBuffer and VariantMap:SetBuffer in Lua 2014-10-13 13:36:44 +03:00
cin
005dee766c Added SyncPackages method. Can be called server and client connection.
In first case it begin synchronization of packages with all clients.
In second case client send message to server to begin synchronization of packages with all clients or with only this client.
2014-10-13 14:15:53 +11:00
Lasse Öörni
4f5c3d2e9b Restore optional slow but more precise operation for AreaAllocator. Disabled by default. 2014-10-12 19:37:20 +03:00
Lasse Öörni
e5b379ec27 Added note of intentional lack of virtual destructor in HashBase and VectorBase. Closes #485. 2014-10-12 18:16:41 +03:00
Lasse Öörni
1786c20662 Clean up AreaAllocator code and allow the Reset function same functionality as the constructors. Added additional heuristic to prevent failed large allocation. Mark todo for needing to reimplement a slower but more proper mode. 2014-10-12 16:04:21 +03:00
urho3d-travis-ci
0932d2d7e6 Travis CI: API documentation update at 2014-10-10 19:44:40 UTC.
[ci package]
2014-10-10 19:44:40 +00:00
Lasse Öörni
3b1d415c70 Duplicate FaceCameraMode in Text3D.pkg to avoid crash with bindings. Closes #484. 2014-10-10 22:28:50 +03:00
Lasse Öörni
366d3e4c8c Make sure rigidbody is erased from the delayedWorldTransforms structure when being destroyed. Possibly a fix for #483. 2014-10-10 12:18:32 +03:00
Lasse Öörni
c92dc4ecf4 Fix crash with sceneless renderpath. Closes #482. 2014-10-10 11:51:36 +03:00
Lasse Öörni
b0598282d9 Fix AreaAllocator end iterator bug when going through a grow cycle. If growing the allocator before first allocation, simply expand the existing free area. 2014-10-08 13:41:47 +03:00
Yao Wei Tjong 姚伟忠
744b7a8e24 Minor code cleanup. 2014-10-08 14:04:06 +08:00
Lasse Öörni
083bc0d42a Fix Vector::Insert() not using const iterator correctly. 2014-10-07 19:34:34 +03:00
Lasse Öörni
807bd28a9d Add URHO3D_NETWORK CMake parameter to control whether networking support is built. 2014-10-07 19:33:33 +03:00
urho3d-travis-ci
d92798e667 Travis CI: API documentation update at 2014-10-06 16:49:13 UTC.
[ci package]
2014-10-06 16:49:13 +00:00
Lasse Öörni
7497885657 Added XMLFile::ToString(). 2014-10-06 18:49:52 +03:00
Yao Wei Tjong 姚伟忠
bee2240fb5 For Travis CI - replace xctool with xcpretty to filter build output.
Close #477. [ci package]
2014-10-06 22:55:35 +08:00
urho3d-travis-ci
c284dd07aa Travis CI: API documentation update at 2014-10-06 10:46:57 UTC.
[ci package]
2014-10-06 10:46:57 +00:00
Lasse Öörni
e7bbcfe058 Added Values() function to HashMap. 2014-10-06 13:25:34 +03:00
Lasse Öörni
7dc312f009 Fix using formatted log functions from outside Urho3D namespace. 2014-10-06 11:53:45 +03:00
urho3d-travis-ci
852eda6c50 Travis CI: API documentation update at 2014-10-06 08:06:00 UTC.
[ci package]
2014-10-06 08:06:00 +00:00
Lasse Öörni
562f401ffa Refactor resource reloading based on filename into a function, which can be called externally. 2014-10-06 10:56:04 +03:00
Yao Wei Tjong 姚伟忠
e87f0eb89a Revert back OGLGraphics class to fix Android and Raspberry-Pi build. 2014-10-05 21:14:18 +08:00
Yao Wei Tjong 姚伟忠
f943bb4faa Unwarn patch for AppleClang. A few warnings were indeed coding error. 2014-10-05 20:22:49 +08:00
Yao Wei Tjong 姚伟忠
f9a701380e Unwarn patch for Clang. Two of the warnings were indeed coding error.
Warnings from third-party libraries are ignored as they appear to be harmless.
2014-10-05 16:14:38 +08:00
Lasse Öörni
a04b3f746d Added option to route / block / process resource requests. Based on celeron55's patch. Closes #469. 2014-10-05 00:32:46 +03:00
Lasse Öörni
2f7402f6ba Delete kNet server listen sockets properly so that the server can be stopped and restarted. Closes #480. 2014-10-04 17:50:22 +03:00
Lasse Öörni
3032244467 Use StartNewMessage / EndAndQueueMessage to prevent assert with zero size messages. Closes #478. 2014-10-04 01:29:27 +03:00
Yao Wei Tjong 姚伟忠
fca678c3b9 For Travis CI - add CI build using Clang, optimize for MinGW install. 2014-10-03 18:13:31 +08:00
Lasse Öörni
4096cc9006 Ensure that when rendering on OpenGL to a texture, the debug geometry is drawn properly in respect to projection matrix flipping. Improve OpenGL debug geometry rendering by rendering it to the intermediate buffer if one exists, so that depth values from the buffer can be correctly used. 2014-10-02 13:46:55 +03:00
urho3d-travis-ci
abfc829958 Travis CI: API documentation update at 2014-10-01 18:28:47 UTC.
[ci package]
2014-10-01 18:28:47 +00:00
Lasse Öörni
7f4b8e5b35 Allow controlling per-viewport if debug geometry should be rendered, instead of hardcoding to just backbuffer views. 2014-10-01 21:15:30 +03:00
Lasse Öörni
2dc6c117cd When a wordwrap text element exists in a parent layout, force a final layout update on the parent to prevent the parent remaining too large. Closes #475. 2014-10-01 18:18:08 +03:00
Lasse Öörni
d07dc5919a Start model's geometries with at least 1 LOD level to prevent error when a call to SetNumGeometryLodLevels() is forgotten. 0 LOD levels does not make sense. 2014-10-01 14:06:37 +03:00
Lasse Öörni
9fce7ef0b7 Add "from scratch" model creation to the DynamicGeometry sample. 2014-10-01 13:56:18 +03:00
Lasse Öörni
fdc9ae79ab Allow the PROFILE macro to be used outside Urho3D namespace. 2014-09-30 12:26:32 +03:00
Lasse Öörni
2c56c650af Fix outdated comment. 2014-09-30 09:20:23 +03:00
Yao Wei Tjong 姚伟忠
843f6c733c Simplify the construct for guarding against empty output string. 2014-09-30 10:12:47 +08:00
urho3d-travis-ci
4c1d24c81f Travis CI: API documentation update at 2014-09-29 20:18:04 UTC.
[ci package]
2014-09-29 20:18:05 +00:00
Lasse Öörni
c85528de50 Allow to prevent modal window's auto dismissing with ESC by calling Window::SetAutoDismiss(false). Purposefully not an attribute to avoid locking up the editor. Closes #471. 2014-09-29 23:06:07 +03:00
Lasse Öörni
f18c5dd49b Fix CMake error in case PREDEFINED_MACROS string is empty. 2014-09-29 17:47:45 +03:00
Lasse Öörni
61fd5b6b65 Prefer the installed DirectX SDK path to avoid link error with VS2010 (64bit). 2014-09-29 17:10:56 +03:00
urho3d-travis-ci
a6d68e2787 Travis CI: API documentation update at 2014-09-29 11:45:03 UTC.
[ci package]
2014-09-29 11:45:03 +00:00
Lasse Öörni
cb0103d518 Require always registering remote events for reception. Implement a fixed blacklist of remote events that can not be registered (see Network.cpp). Removed obsolete E_WINDOWMESSAGE event definition. 2014-09-29 14:23:41 +03:00
Yao Wei Tjong 姚伟忠
e06762db76 On non-MSVC compiler, default to 64-bit when host compiler is.
The default can be overriden using URHO3D_64BIT build option as before.
2014-09-29 18:28:08 +08:00
urho3d-travis-ci
27604eba64 Travis CI: API documentation update at 2014-09-25 06:36:15 UTC.
[ci package]
2014-09-25 06:36:15 +00:00
Lasse Öörni
3e4882bfa5 Unify SetDeepEnabled() API between UI & Node. Removed IsDeepEnabled() function & "Is Deep Enabled" attribute as it may return different value than last SetDeepEnabled() and can not therefore serialize/deserialize accurately. Instead added IsEnabledSelf() which returns the enabled state before SetDeepEnabled(). Changed Node::SetEnabled(bool, bool) to SetEnabledRecursive(). Unlike SetDeepEnabled() it does not preserve node's self enabled state. Added AngelScript binding for SetDeepEnabled operations. 2014-09-25 00:10:56 +03:00
Lasse Öörni
30e39afdd6 Merge remote-tracking branch 'remotes/hdunderscore/UIElement_SetDeepEnabled' 2014-09-23 21:17:00 +03:00
Yao Wei Tjong 姚伟忠
70e7cb2d25 Give more verbose message when SOURCE_FILES variable is found not set.
Minor documentation update to stress that most of the build options supported by Urho3D project can also be pased to build script for configuring external project.
Add initial documentation on 'scaffolding' rake task.
2014-09-23 21:25:06 +08:00
urho3d-travis-ci
5be661b29a Travis CI: API documentation update at 2014-09-23 07:25:16 UTC.
[ci package]
2014-09-23 07:25:16 +00:00
Lasse Öörni
0f9e8c6762 Move DebugHud update to PostUpdate event so that values set during Update will be displayed on the same frame. Additionally, exposed DebugHud::Update() to script to allow calling it manually and forcing update of values, if necessary. Closes #466. 2014-09-23 10:14:26 +03:00
hdunderscore
f382ab895f Fixed a compile error with LUA. 2014-09-23 14:11:02 +10:00
hdunderscore
2966800ffc Added UIElement methods SetDeepEnabled / ResetDeepEnabled / IsDeepEnabled to allow setting enable on an element + all it's child elements / reset it to previous state.
Example usage: On scroll view, could disable all children while touch-scrolling to prevent accidental triggering of items.
2014-09-23 12:35:43 +10:00
Lasse Öörni
ca0a50c5c7 Pragma push/pop warning 4505 disable in APITemplates.h so that it doesn't leak to code including the header. 2014-09-22 13:56:20 +03:00
urho3d-travis-ci
91b8171b06 Travis CI: API documentation update at 2014-09-21 15:18:39 UTC.
[ci package]
2014-09-21 15:18:39 +00:00
Lasse Öörni
066589b67d Fixed warnings. Added script bindings for scroll deceleration parameters. 2014-09-21 18:06:51 +03:00
Lasse Öörni
380a94b58e Merge remote-tracking branch 'remotes/hdunderscore/scrollView_fix' 2014-09-21 16:39:02 +03:00
Lasse Öörni
e9f0baa398 Remote event registration is checked only when receiving. 2014-09-21 00:12:49 +03:00
Lasse Öörni
5f0ed3fcf8 Fix more header warnings that could leak to an Urho3D application using maximum MSVC warning level. 2014-09-21 00:00:05 +03:00
hdunderscore
9096279170 Changed it so touchScrollSpeedMax_ reflects instantly, giving more control / removing unexpected scroll on a fast->slow swipe. 2014-09-20 15:08:15 +10:00
hdunderscore
fab71cf12e Typo fix. 2014-09-20 01:28:52 +10:00
Lasse Öörni
bc1165e76f Merge remote-tracking branch 'remotes/hdunderscore/touchEmulation_fix' 2014-09-19 17:12:09 +03:00
hdunderscore
b3fbca1182 Fixed a bug that existed in touch mode, where scrolling with the scroll bar would 'conflict' against scrolling with touch scrolling, causing the scrollbar to 'slide' and 'jump'. 2014-09-19 21:09:10 +10:00
hdunderscore
12d25b7029 Polished a hiccup in the touch scrolling when doing a very small scroll. Also 'freed' the momentum so it feels more natural / unhindered. 2014-09-19 18:36:25 +10:00
hdunderscore
f12d40168a Added deceleration to ScrollView + fps independence + attributes for a better experience on mobile devices. Holding finger down keeps control / flicking and putting finger down stops it. 2014-09-19 14:36:18 +10:00
hdunderscore
d6e63013a2 SDL_FINGERMOTION was sometimes creating a new entry in touches_, after SDL_FINGERUP removed it. This made it difficult to work with touch emulation. 2014-09-19 11:54:40 +10:00
Lasse Öörni
0ee5f2fe1c Add private copy constructor / assignment where necessary to prevent warnings. 2014-09-19 01:56:05 +03:00
aster2013
21050c613a Add .PList sprite sheet support. 2014-09-17 22:52:06 +08:00
Lasse Öörni
89812eed03 Ensure the app preferences path is returned in Urho internal format: slashes instead of backslashes. 2014-09-17 16:26:23 +03:00
Lasse Öörni
aa6d76551f Allow C++ access to Engine's next frame timestep. 2014-09-17 14:10:09 +03:00
Yao Wei Tjong 姚伟忠
99253ea132 Fix Android installing/packaging instruction due to rename APK file.
[ci package]
2014-09-17 15:50:00 +08:00
urho3d-travis-ci
3a48762495 Travis CI: API documentation update at 2014-09-16 23:50:08 UTC.
[ci package]
2014-09-16 23:50:08 +00:00
Lasse Öörni
552a323b84 Allow non-const access to a Connection's identity also in C++. 2014-09-17 01:01:14 +03:00
urho3d-travis-ci
742364d7ca Travis CI: API documentation update at 2014-09-16 21:19:33 UTC.
[ci package]
2014-09-16 21:19:33 +00:00
Lasse Öörni
ec7c262be6 Expose Matrix4 * Matrix3x4 to scripting. Move the multiply as a Matrix4 member function so that it can be properly exposed to lua. 2014-09-16 23:52:44 +03:00
aster
19e0a104fa Add more comment for trimmed sprite. 2014-09-16 23:54:50 +08:00
urho3d-travis-ci
16fdf3b259 Travis CI: API documentation update at 2014-09-15 12:19:12 UTC.
[ci package]
2014-09-15 12:19:12 +00:00
Lasse Öörni
5ce05d4cb6 Fixed missing horizontal flip from the vertical cross cubemap layout. 2014-09-15 15:04:27 +03:00
Yao Wei Tjong 姚伟忠
de93f17310 Refine comment on the PATH_SUFFIX variable. 2014-09-15 13:33:22 +08:00
Yao Wei Tjong 姚伟忠
e48f134290 Code cleanup and fix iOS build.
[ci package]
2014-09-15 00:53:19 +08:00
Yao Wei Tjong 姚伟忠
08f54f96e6 Enhance CMake build script to support iOS deployment target.
For Travis CI - set the iOS deployment target to 7.0 explicitly but have to bump the OSX deployment target to 10.8 because Travis-CI only have 10.8 and 10.9 SDKs installed.
[ci package]
2014-09-14 23:48:42 +08:00
Yao Wei Tjong 姚伟忠
bebe9b6197 For Travis CI - set the OSX deployment target to 10.7 explicitly.
If the option is not set, Urho3D CMake build script by default configures it to match the currently running OS X version. On Travis-CI that is 10.9 which is too high for binary packaging. Closes #447.
2014-09-14 22:40:54 +08:00
Yao Wei Tjong 姚伟忠
a5e34ea512 Adjust RPATH to also search lib directory relative to the executables.
Closes #448.
2014-09-13 23:41:09 +08:00
Lasse Öörni
f1e25381a3 Support single image splitting for cube maps. Closes #445. 2014-09-13 15:33:55 +03:00
Lasse Öörni
36175d471f Make attribute accessor base class abstract to avoid unused parameter warnings when including Attribute.h. The base class is not useful in any case. 2014-09-12 13:30:32 +03:00
Yao Wei Tjong 姚伟忠
036fe0959c For Travis CI - code cleanup but add more memory diagnostics.
[ci package]

- Simplify the check on environment variable containing the commit-ish used in the 'git describe' command.
- Shuffle the rebase order in 'ci_rebase' rake task, move the OSX-CI rebase to the last as OSX Travis-CI build environment is extremely slow lately (has longer job queue).
- Improve 'android' rake task to only create named AVD for CI test when necessary and to turn off graphics acceleration explicitly when starting the emulator in CI environment.
- Add more memory diagnostics to help in investigation of process being killed by Travis CI upstream issue reported in #430.
2014-09-12 13:52:00 +08:00
urho3d-travis-ci
503b3e751c Travis CI: API documentation update at 2014-09-11 22:27:40 UTC.
[ci package]
2014-09-11 22:27:40 +00:00
Lasse Öörni
6f980453b6 Added success return value to Image::FlipVertical(). Fixed return value of Image::Resize() in AngelScript bindings. 2014-09-12 01:16:37 +03:00
Lasse Öörni
0330a94d42 Added support for flipping DXT1,3,5 compressed images vertically. 2014-09-12 00:53:23 +03:00
Lasse Öörni
e4fab0f5ab Enable link stage response files on Windows when building for Android. Otherwise building a shared Urho3D library could fail. 2014-09-11 21:46:34 +03:00
Yao Wei Tjong 姚伟忠
2e532412fe For Travis CI - minor refactor to use the same commit-ish as Travis-CI.
Simplify build artifact housekeeping logic as now all the mirror CI branches will produce the same package description as the master branch.
[ci package]
2014-09-11 23:17:53 +08:00
Lasse Öörni
d5fddaba86 Added compressed image support to Image::GetSubimage() and fixed bugs in the function. 2014-09-10 23:32:26 +03:00
Yao Wei Tjong 姚伟忠
702eb09b64 Another attempt to fix the project configuration issue. 2014-09-10 22:27:44 +08:00
Yao Wei Tjong 姚伟忠
de87766629 Fix Urho3D project configuration issue due to wrong CMake condition. 2014-09-10 22:04:26 +08:00
urho3d-travis-ci
958c84c615 Travis CI: API documentation update at 2014-09-10 05:16:08 UTC.
[ci package]
2014-09-10 05:16:08 +00:00
Yao Wei Tjong 姚伟忠
b4e857ab4f Set all the headings in Urho2D and scripting API pages to proper case. 2014-09-10 13:06:38 +08:00
Yao Wei Tjong
29bb1b92b5 For Travis CI - fix CI build on OSX build environment. 2014-09-10 00:54:34 +08:00
Yao Wei Tjong 姚伟忠
8677e547b0 Remove bom(b) from Readme.txt and update the project tagline. 2014-09-09 22:52:34 +08:00
Yao Wei Tjong 姚伟忠
19577d2fd0 For Travis CI - change to use git fetch 'unshallow' instead of 'depth'.
The hard-coded depth=2000 may not be a good estimate of how deep we should go in order to get the last annotated tag. Also move the operation to 'ci' rake task so it can be shared for all the Travis-CI build environments.
2014-09-09 22:44:39 +08:00
Yao Wei Tjong 姚伟忠
aa7068d332 For Travis CI - test run Android APK in emulator as part of CI build.
This should prevent the similar incident like SONAME breaking Android APK went unnotice for days.
Also:
- Revert back the workaround attempt for the RPI build as it did not work. The build error problem has been reported to Travis-CI upstream issue log.
- Add new rake task to automate Android APK testing (tested on Linux platform only).
2014-09-06 01:41:47 +08:00
Lasse Öörni
671d2c45ac Added IndexBuffer forward declaration to Terrain.h. 2014-09-05 19:07:19 +03:00
Lasse Öörni
89074cf668 Added image save as png to a Serializer stream. Due to stb_image_write limitations, the format is always png. Block-compressed (DXT etc.) image data is not supported. Closes #441. 2014-08-31 21:51:47 +03:00
Lasse Öörni
9252d36abd Clarify/fix header comments of the compression API. 2014-08-30 13:41:54 +03:00
Lasse Öörni
7bafe59f2f Fix crash when master AnimatedModel is destroyed. Do not destroy the bone hierarchy as long as AnimatedModels remain in the node. Allow a non-master AnimatedModel to be promoted to master if necessary. Closes #439. 2014-08-30 02:01:43 +03:00
urho3d-travis-ci
31157975b6 Travis CI: API documentation update at 2014-08-29 22:14:41 UTC.
[ci package]
2014-08-29 22:14:41 +00:00
Lasse Öörni
3a93866936 Add LZ4 compression functions to public API. Expose the VectorBuffer compression/decompression functions also to script. Closes #438. 2014-08-30 01:03:25 +03:00
Lasse Öörni
cc98bb9199 Discard Ray::HitDistance() result to a triangle behind the ray. Fixes #437. 2014-08-28 19:35:24 +03:00
urho3d-travis-ci
13595673ce Travis CI: API documentation update at 2014-08-28 11:16:07 UTC.
[ci package]
2014-08-28 11:16:07 +00:00
Lasse Öörni
3f5280aa3a Add one second delay to file change notifications by default. Possibly helps with #408. Removed FileWatcher from Lua bindings as it's not a class you can readily use from script and it is not exposed to AngelScript either. 2014-08-28 14:04:09 +03:00
Yao Wei Tjong 姚伟忠
2a33e6eea3 Do not use SONAME for Android SHARED libs as it does not support it. 2014-08-28 16:41:33 +08:00
aster2013
058428dc9c Revert test code.[ci skip] 2014-08-28 13:38:14 +08:00
urho3d-travis-ci
717d492b9a Travis CI: API documentation update at 2014-08-28 04:29:46 UTC.
[ci package]
2014-08-28 04:29:46 +00:00
aster2013
c82759de85 Add STAGGERED tile map support. 2014-08-28 12:18:35 +08:00
Yao Wei Tjong 姚伟忠
634658c835 Bump the default NDK API level to 12 matching Urho3D Android manifest.
[ci package]
2014-08-28 08:57:04 +08:00
Yao Wei Tjong 姚伟忠
0fffb18972 For Travis CI - Fix downloading from wrong Android NDK arch. 2014-08-28 08:17:45 +08:00
Yao Wei Tjong
83b58dacdc Update android.toolchain.cmake to include NDK r10. 2014-08-28 02:03:18 +08:00
urho3d-travis-ci
c75f56da41 Travis CI: API documentation update at 2014-08-27 16:22:36 UTC.
[ci package]
2014-08-27 16:22:36 +00:00
Yao Wei Tjong 姚伟忠
83bb4be238 Fix Angelscript binding for TileMapObject2D. 2014-08-28 00:06:25 +08:00
aster
649edf054d Rename TileObject2D to TileMapObject2D, rename some functions. 2014-08-27 22:21:29 +08:00
aster2013
18a8a4e640 Add draw debug geometry for tile map, fix tile map object position bug. 2014-08-27 13:11:46 +08:00
aster2013
f0e874c69f Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-25 10:27:13 +08:00
urho3d-travis-ci
26bdba2039 Travis CI: API documentation update at 2014-08-24 09:24:49 UTC.
[ci package]
2014-08-24 09:24:49 +00:00
Lasse Öörni
0472b4d410 Allow sending client observer rotation in addition to position. Note that rotation is not used by the NetworkPriority component, but can be used for custom logic. Do not send the observer pos/rot until actually set by the client. Closes #428. 2014-08-24 02:42:27 +03:00
urho3d-travis-ci
3fcb89e176 Travis CI: API documentation update at 2014-08-23 13:06:49 UTC.
[ci package]
2014-08-23 13:06:49 +00:00
aster
46fcd67794 Add name and type support for tile map objects. 2014-08-23 20:57:53 +08:00
aster
134d26814f Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-22 21:08:30 +08:00
aster2013
578310a05e Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-22 18:16:39 +08:00
aster2013
937ed5f732 Merge branch 'more-options' 2014-08-22 17:47:06 +08:00
urho3d-travis-ci
e50ec823a5 Travis CI: API documentation update at 2014-08-22 05:03:50 UTC.
[ci package]
2014-08-22 05:03:50 +00:00
aster2013
a2ead6f404 Add index to position convert function in TileMap2D 2014-08-22 12:52:41 +08:00
aster
753d5bfc91 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-21 23:32:09 +08:00
urho3d-travis-ci
10efcd8c6a Travis CI: API documentation update at 2014-08-21 13:13:48 UTC.
[ci package]
2014-08-21 13:13:48 +00:00
aster2013
a04edb1108 Refactor tile map, add TileMapInfo2D struct. 2014-08-21 21:03:03 +08:00
aster2013
6caa0ade65 When resource's name is empty, set file name as resource name. 2014-08-21 13:54:04 +08:00
aster2013
25132bd4a0 ADD URHO3D_PHYSICS AND URHO3D_NAVIGATION OPTIONS. 2014-08-21 12:41:24 +08:00
urho3d-travis-ci
bd39c6d6af Travis CI: API documentation update at 2014-08-20 17:31:39 UTC.
[ci package]
2014-08-20 17:31:39 +00:00
Lasse Öörni
9246a5cfdb Dump a class list to AngelScript & Lua API dox pages. Also add a table of contents to both. Closes #426. 2014-08-20 20:16:42 +03:00
Lasse Öörni
a06c328305 Store Connection's address & port on construction, so that we do not log a zero address later if the socket has already been destroyed. 2014-08-19 11:14:13 +03:00
aster2013
d17f5c3f57 Fix typo.[ci skip] 2014-08-19 15:03:28 +08:00
aster
bb0ffb942a Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-14 20:26:37 +08:00
Lasse Öörni
1c6d04c6b5 Send UIMOUSECLICK event on click to emptiness even if there is a modal element. Fixes #423. 2014-08-14 14:08:06 +03:00
Lasse Öörni
ba4cb70e42 Use PODVector for GeometryDesc to avoid MSVC warning. 2014-08-14 11:09:07 +03:00
aster
0bea9e68cc Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-13 23:01:07 +08:00
aster
db59a66cbf Fix typo.[ci skip] 2014-08-13 23:00:42 +08:00
urho3d-travis-ci
81096e625a Travis CI: API documentation update at 2014-08-13 14:42:01 UTC.
[ci package]
2014-08-13 14:42:01 +00:00
aster
8c99b8d866 Merge branch 'tile-map' 2014-08-13 22:16:19 +08:00
aster
85bcdaecf4 Add screen to world convert functions, PhysicsWorld2D use these function to pick rigid body. 2014-08-13 22:07:46 +08:00
urho3d-travis-ci
f215bf2b12 Travis CI: API documentation update at 2014-08-12 19:41:33 UTC.
[ci package]
2014-08-12 19:41:33 +00:00
Lasse Öörni
89f6b31a47 Enhance the ConvexCast function to take a start pos,rot & end pos,rot instead of just a ray, so that the swept shape can be rotated. Ignore collision to self during convex cast, if the supplied shape belongs to a RigidBody. 2014-08-12 22:26:53 +03:00
aster
391f83aa3b Fix typo. 2014-08-12 22:06:50 +08:00
urho3d-travis-ci
379bd474fe Travis CI: API documentation update at 2014-08-11 20:38:42 UTC.
[ci package]
2014-08-11 20:38:42 +00:00
Lasse Öörni
a717793e3e Added ConvexCast function to PhysicsWorld, which performs a sweep test with user-specified collision shape. Closes #420. 2014-08-11 23:20:01 +03:00
urho3d-travis-ci
eea6082d9b Travis CI: API documentation update at 2014-08-11 18:54:27 UTC.
[ci package]
2014-08-11 18:54:27 +00:00
Lasse Öörni
5071b4324a Tabs to spaces. 2014-08-11 21:10:13 +03:00
Lasse Öörni
8357e50afb Merge remote-tracking branch 'remotes/ninjastone/master' 2014-08-11 21:00:49 +03:00
ninjastone
390016fd76 Added script bindings 2014-08-11 23:41:31 +09:00
aster
20450c8a8f Add missing class declartion. 2014-08-11 21:36:07 +08:00
aster
d13338f793 Add isometric map support. 2014-08-11 21:13:13 +08:00
aster
a1a48e02e9 Add tile set TSX support. 2014-08-11 20:27:56 +08:00
aster
56c677c759 Add tile map AngelScript binding and sample. 2014-08-11 18:15:46 +08:00
aster2013
a3c819f32a Add tile map Lua binding and sample. 2014-08-11 13:26:39 +08:00
aster2013
b81d08ba21 Move tile object define to TileMapDefs2D. Add half pixel offset in Direct3D mode. 2014-08-11 13:07:10 +08:00
aster
6b2566702c Remove some functions.[ci skip] 2014-08-10 22:29:32 +08:00
aster
2615d583b5 Change Properties2D derived from RefCounted. 2014-08-10 22:12:15 +08:00
ninjastone
b92aa88a73 Added function to list json object member value names 2014-08-10 02:57:17 +09:00
ninjastone
6347724b66 Fix index out of range 2014-08-10 02:42:01 +09:00
aster
7110a05c58 refactor tile map code. 2014-08-09 23:41:37 +08:00
Yao Wei Tjong 姚伟忠
eb8157c3eb Differentiate between SOVERSION and git revision number.
Closes #419. Test [ci package]
2014-08-09 01:12:36 +08:00
aster
4d840600b3 Refactor tile map. 2014-08-08 23:24:04 +08:00
Yao Wei Tjong 姚伟忠
becb97cdb6 Only give warning for 'bad' MinGW compiler when no SSE option given.
So that user does not receive the same warning subsequently after taking action to set the URHO3D_SSE option explicitly or after the correct setting has been set by the script.
2014-08-08 14:54:02 +08:00
aster
b87c4f24fe Move some functions from header file to source file. For all of objects create node for it. 2014-08-07 22:23:38 +08:00
aster
573a0abe3d Add visible property to layer. 2014-08-07 21:50:15 +08:00
Lasse Öörni
6d5c73a15f Note that client cameras should be created into a local node in networked applications. 2014-08-07 10:45:50 +03:00
aster2013
0ab5fb8d16 Add tile properties. 2014-08-07 12:46:09 +08:00
aster2013
564343c3a6 Add properties. 2014-08-07 12:34:27 +08:00
aster
c4b68bd429 Add object group. 2014-08-06 23:07:10 +08:00
aster
189ed31742 Add image layer support. 2014-08-06 22:10:53 +08:00
aster2013
1262869ac6 Change tile size to float, fix bug, change Desert.png. 2014-08-06 12:37:53 +08:00
aster
ef32eee6ee Add tile map support in Urho2D, current not all of features are supported in Urho2D, but I think we can add it later. Fore more information about tile map, please refer http://www.mapeditor.org/. 2014-08-05 22:55:33 +08:00
aster
4c77c3ad21 Add bitmap font face texture to resource cache manually. 2014-08-04 22:14:58 +08:00
aster
9e716da779 Dump used resource file name at sample exiting. 2014-08-04 22:02:59 +08:00
aster2013
09baed3460 Add text effect code to text shader for Text3D. 2014-08-04 13:18:25 +08:00
Yao Wei Tjong 姚伟忠
7a1fde31a1 Make it explicit which configuration settings are meant for MinGW. 2014-08-03 22:56:07 +08:00
Lasse Öörni
f8899e3675 Removed the lower version check and improved the SSE explanation message. 2014-08-03 17:37:36 +03:00
Lasse Öörni
94dd6acc66 Attempt to detect "bad" MinGW versions that fail to compile SSE instructions from the GCC version. The range is an initial guess; can be tightened later. 2014-08-03 17:18:25 +03:00
Lasse Öörni
02d6c28788 Do not use the SSE2 flag on MinGW (which was used to circumvent an earlier GCC version bug), as it leads to crashes inside Bullet on GCC 4.9.1. 2014-08-03 15:56:00 +03:00
aster
37c7fd333a Merge branch 'sdf-font' 2014-08-03 14:29:25 +08:00
aster
d72dcde96d Remove useSDF parameter in Text and Text3D classes, now signed distance field font is a bitmap font file with .sdf extension. 2014-08-03 13:58:15 +08:00
Lasse Öörni
46be516f56 Improved CustomGeometry API for vertex updates, and possibility to make the vertex buffer dynamic. Closes #415. 2014-08-02 12:57:56 +03:00
aster2013
68c879d1fd Add Use SDF in Text class. 2014-08-01 12:10:46 +08:00
Lasse Öörni
e68c051a35 Added rest of geometry types. Closes #413. 2014-07-31 22:04:16 +03:00
aster
e9b1ba7cde Fix Text3D::SetFont AS binding bug. 2014-07-31 23:05:33 +08:00
aster
436908e031 Add Use SDF option to Text3D to enable signed distance field text. 2014-07-31 22:36:23 +08:00
Lasse Öörni
f120aa4be0 Return a writable documents directory on iOS. Contributed by att. 2014-07-29 02:24:49 +03:00
Lasse Öörni
11c63a938d Remove reference in Swap.h to the tree-based containers, which no longer exist. 2014-07-27 23:56:48 +03:00
Lasse Öörni
562a2e2d77 Update to AngelScript 2.29.1. Closes #412. 2014-07-26 12:27:32 +03:00
Lasse Öörni
af46a915c2 Protect AngelScript module creation/deletion with a mutex as AngelScript itself doesn't do that. 2014-07-25 16:56:05 +03:00
Lasse Öörni
cbe440db52 Fixed typo in comment. Added profiling blocks for finding the scene resources to preload. 2014-07-25 02:27:08 +03:00
Lasse Öörni
4f1906d598 Fix missing include file. 2014-07-24 23:48:03 +03:00
Lasse Öörni
d93fdb5aa4 Fix texture reload when device is initially lost. 2014-07-24 23:44:38 +03:00
Lasse Öörni
ad737e0d6e Documentation for background resource loading. Expanded Scene::LoadAsync() to either background load resources only, load scene + resources synchronously, or background load resources first, then load the scene. Closes #406. 2014-07-24 22:45:31 +03:00
Lasse Öörni
33b15ebc31 Clean up ResourceCache template functions. 2014-07-24 17:24:24 +03:00
Lasse Öörni
be66059009 Refactor resource background loading into a separate class. 2014-07-24 17:23:00 +03:00
Lasse Öörni
80fa911066 Fixed recording of background loaded resource's dependencies so that unnecessary waits do not occur when finishing the resources. 2014-07-24 02:20:06 +03:00
Lasse Öörni
8c0cc2f916 Disregard background load request with empty name. 2014-07-24 01:24:45 +03:00
Lasse Öörni
e210ef20b2 Fix deadlock when waiting for a resource that is background loading but is now needed immediately. 2014-07-24 01:21:51 +03:00
Lasse Öörni
3c7126de38 Asynchronous loading for AnimationSet2D. 2014-07-23 21:55:32 +03:00
Lasse Öörni
3703658f66 Asynchronous loading for Sprite2D & SpriteSheet2D. 2014-07-23 20:06:05 +03:00
Lasse Öörni
5450b1d111 Asynchronous loading for ParticleEffect2D.
Correctly store material dependency when async loading ParticleEffect.
2014-07-23 17:49:14 +03:00
Lasse Öörni
677ab20986 Asynchronous loading for ParticleEffect. 2014-07-23 17:28:20 +03:00
Lasse Öörni
21053067bd Asynchronous loading of ScriptFile. Due to possibly accessing arbitrary engine functionality in script initializers the actual script compilation cannot be threaded even if AngelScript itself is compiled as thread-safe. Furthermore AngelScript allows only 1 simultaneous compile, and the resource loading system is not prepared to fail and retry in that case. 2014-07-23 17:19:44 +03:00
Lasse Öörni
d986ec7d25 If loading a Model synchronously, read directly into the buffers like before to avoid extra allocation & copy. 2014-07-23 16:27:29 +03:00
Lasse Öörni
2b2b500892 Asynchronous loading for Model. 2014-07-23 16:16:06 +03:00
Lasse Öörni
8ab908b1c9 Configurable max work time in ms per frame for finishing background loaded resources, and for non-threaded work in WorkQueue. Fix iteration bug if finishing several background loaded resources in one go. 2014-07-23 15:11:45 +03:00
Lasse Öörni
cdd2dae4fb Precalculate texture's mip levels during async loading, if applicable. Use a timer to avoid spending too much time per frame on finishing async loaded resources. 2014-07-23 14:29:39 +03:00
Lasse Öörni
9bee27f0bd Merge branch 'master' into threaded-resource-load 2014-07-23 13:39:08 +03:00
Lasse Öörni
d5cfcd493b Further fixes for threaded drawable updates: ensure drawables per workitem > 0, do not update bounding boxes threaded as they may not be correct in case of hierarchical composition. 2014-07-23 13:29:59 +03:00
Lasse Öörni
3181986f82 Log message for finalizing a background loaded resource. 2014-07-23 13:22:47 +03:00
Lasse Öörni
f194765e78 Background loading of Materials.
Store dependencies of 3D & cube textures so that they will be properly live reloaded if the individual images change.
2014-07-23 02:04:28 +03:00
Lasse Öörni
df67ccdac7 Merge branch 'master' into threaded-resource-load 2014-07-22 22:33:43 +03:00
Lasse Öörni
4a9ab417a8 As a possible fix to #409, remove the optimization to not mark a node dirty again if it is already dirty. As a consequence the TransformChanged() script function will work more logically. This change would cause reduced performance with a large amount of animating models; to counteract, introduce a "silent update" mechanism for node transforms. 2014-07-22 22:20:14 +03:00
Lasse Öörni
d60ca10c8f Restore Drawable base attributes to ParticleEmitter. Closes #407. 2014-07-22 16:50:24 +03:00
aster
4f0893cf37 Create all timeline nodes. 2014-07-22 18:08:57 +08:00
Lasse Öörni
8463393377 Initial resource background loading API and implementation. Background loading-capable implementation for textures (load image in background thread, upload image to GPU in main thread), other resources todo.
Allow dynamically created profiler block names by copying the name C string.
Texture Load() function with image pointer renamed to SetData() to not confuse with the threaded/nonthreaded resource loading functions.
2014-07-22 01:30:02 +03:00
Lasse Öörni
840143eb00 Protect some ResourceCache structures with a mutex so that eg. GetFile() or GetTempResource() can be called from worker threads. Verify that GetResource() is only called from the main thread. 2014-07-20 23:16:23 +03:00
Lasse Öörni
461a61319f Allow logging from outside the main thread. These log messages are collected and handled at the end of frame. 2014-07-20 22:08:41 +03:00
Lasse Öörni
346da1e1f9 Detect main thread when sending events or using profiler blocks; make these no-ops when called from outside the main thread. 2014-07-20 21:32:55 +03:00
Lasse Öörni
f3024b9f4b Added GetCurrentThreadID() static function to Thread. Store the thread which created the Context. 2014-07-20 21:30:39 +03:00
Lasse Öörni
d508eb51cb Use SDL_GetPrefPath also for the crashdump location. 2014-07-20 19:07:23 +03:00
Lasse Öörni
1f521713e7 Do not store Image resources used during cube/3D texture loading permanently to cache. 2014-07-20 18:37:34 +03:00
Yao Wei Tjong 姚伟忠
c26038fe05 Attempt to fix the MinGW failed build due to linker runs out of mem.
Add -fno-keep-inline-dllexport compiler option when building using MinGW in order to reduce the object size and the link time (and thus hopefully reduce the linker memory consumption as well).
2014-07-20 19:39:05 +08:00
aster
7b79fb972c Fix bug in RigidBody2D. 2014-07-20 18:01:29 +08:00
Yao Wei Tjong 姚伟忠
f7329aa83f Replace with a more proper derived CMake variable for easier maint.
Add short comment on the intent of setting up RPATH.
2014-07-20 13:43:15 +08:00
Yao Wei Tjong 姚伟忠
91c489bdfb Setup RPATH for Mac OS X. Adjust soversion to keep Apple linker happy.
Set CMake policy CMP0042 to NEW for early CMake 3.0.0 adopters to prevent warning message when generating Urho3D project file.
2014-07-19 21:23:11 +08:00
Yao Wei Tjong 姚伟忠
88919f22f7 Setup soversion for Urho3D library and setup RPATH settings for Linux. 2014-07-19 17:46:41 +08:00
Yao Wei Tjong 姚伟忠
63a1531076 Simplify the conditional branch to find the SDL_android_main.c. 2014-07-19 16:12:08 +08:00
Yao Wei Tjong 姚伟忠
9f3247e71b Only search the project source directory when URHO3D_HOME is defined. 2014-07-17 15:29:59 +08:00
Yao Wei Tjong 姚伟忠
08f08e460b Improve the reliablity to find SDL_android_main.c when using SDK.
Replace usage of URHO3D_INSTALL_PREFIX environment variable with the more standard CMake's own CMAKE_PREFIX_PATH environment variable to define prefix path of non-standard SDK installation location.
2014-07-17 15:15:15 +08:00
Yao Wei Tjong 姚伟忠
cf1a0156e9 Briefly comment the CMake policy settings and update the documentation. 2014-07-17 12:31:02 +08:00
Lasse Öörni
f3e18e6412 Make sure animation start time adjustment happens with tick conversion, tabs to spaces, some code reordering + added comments. 2014-07-16 19:13:04 +03:00
Lasse Öörni
027b2a29ad Merge remote-tracking branch 'remotes/ninjastone/master' 2014-07-16 18:43:12 +03:00
ninjastone
fc60d8de21 Fixed AssetImporter to adjust time of first key frame to 0. 2014-07-17 00:06:20 +09:00
Lasse Öörni
fedd77922c Added zone texture unit also to the textureUnitNames array in Material.cpp. 2014-07-16 16:38:27 +03:00
Lasse Öörni
e82b3d53a1 Added support for zones defining a texture (either cube or 3D), that will be available in pixel shaders when rendering objects inside the zone. 2014-07-16 16:30:08 +03:00
Yao Wei Tjong 姚伟忠
3c77988d37 Set CMake policy CMP0026 to OLD for early CMake 3.0.0 adopters.
This change prevents warning message spams while generating Urho3D project file.
2014-07-16 13:15:11 +08:00
Lasse Öörni
921b1ef792 Fixed the button name in DynamicGeometry touch controls. 2014-07-15 22:32:46 +03:00
Lasse Öörni
b281e555d7 Added dynamic geometry C++ sample. Minor comment & warning fixes in other samples. 2014-07-15 22:03:53 +03:00
Lasse Öörni
b80fbc8817 Added Clone() function to Model, which deep-copies all data including vertex/index buffers, so that the clone can be individually animated. Closes #402. 2014-07-15 21:48:15 +03:00
aster
56e29f5b24 Fix Transform2D argument.[ci skip] 2014-07-11 13:24:53 +08:00
aster
1ac9680c52 Remove redundant default parameter.[ci skip] 2014-07-10 20:37:33 +08:00
aster
a11d455511 Do not recreate sprite node in AnimatedSprite2D, Do not use dynamic index buffer bug in DrawableProxy2D. 2014-07-10 20:33:12 +08:00
Lasse Öörni
98c09ac614 Insert GLSL version define before other defines if found from the shader code. Closes #398. 2014-07-02 21:37:30 +03:00
Aster@中国上海
dfd82f7f6d Fix typo[ci skip]. 2014-07-02 21:49:14 +08:00
Aster@中国上海
dec9ecfde2 LightAnimation sample now use ObjectAnimation in C++. 2014-07-02 21:39:37 +08:00
Aster@中国上海
cd42bc6f3f Make object animation can set child and component's attribute animation. 2014-07-02 21:38:20 +08:00
Lasse Öörni
3d649a9f19 Fix calculating fullscreen resolution error metric. Closes #399. 2014-07-02 11:12:45 +03:00
aster
f9e555c19d Merge branch 'remove-short-string-hash'
Conflicts:
	Source/Engine/Script/CoreAPI.cpp
2014-06-30 10:59:49 +08:00
Aster@中国上海
413aa66b10 Add more member functions in 2D particle classes. 2014-06-29 20:47:16 +08:00
Lasse Öörni
b69682217d Fixed & improved comments regarding integer colors in Color & Image classes. 2014-06-28 12:34:31 +03:00
Lasse Öörni
10046d4b26 Added integer API for setting Image pixels. 2014-06-28 09:57:13 +03:00
Lasse Öörni
92ad14b2fe Fix memory allocation for the resources directory on iOS. 2014-06-25 22:47:55 +03:00
Lasse Öörni
d9d39592dd Update to AngelScript 2.29.0. 2014-06-25 22:20:59 +03:00
Lasse Öörni
257d3bdc31 Make sure RigidBody2D mass center is initialized. Fixes #395. 2014-06-25 14:34:38 +03:00
Lasse Öörni
f1c4eb8568 Fix ShortStringHash pointer type in script API registration. 2014-06-22 00:21:42 +03:00
Aster@中国上海
ad59ffa437 Change ShortStringHash to StringHash. 2014-06-21 22:21:20 +08:00
Aster@中国上海
84fe0946c8 Remove ShortStringHash, Now all of ShortStringHash are replaced by StringHash. 2014-06-21 21:45:05 +08:00
Aster@中国上海
2868d8e0b1 Add SetSprite in ParticleEffect2D. 2014-06-21 20:46:56 +08:00
Lasse Öörni
016296a860 Remove unused variable. Fix Terrain Lua binding. 2014-06-21 02:08:09 +03:00
Lasse Öörni
c85499b695 Allow relatively fast partial updates to a terrain by modifying the heightmap image and calling ApplyHeightMap(). Added WorldToHeightMap() function to Terrain for converting world coordinates to heightmap pixel positions. 2014-06-21 01:51:32 +03:00
Lasse Öörni
a36edf5d1e Fix TerrainPatch raycast normal to world space. 2014-06-19 00:22:50 +03:00
Lasse Öörni
c87f520328 Fix terrain raycast not returning correct position & normal. 2014-06-19 00:15:37 +03:00
Lasse Öörni
914cadf3fd Merge pull request #390 from ninjastone/master
Meshless model was sometimes not importable
2014-06-18 21:18:06 +03:00
Lasse Öörni
3bbc756aeb Merge branch 'particle-emitter-refactor' 2014-06-18 21:11:37 +03:00
ninjastone
42dc493f4a Skeleton only model was not importable 2014-06-18 23:50:25 +09:00
aster
7ad727a25b Add save function for ParticleEffect2D. 2014-06-18 19:02:19 +08:00
Lasse Öörni
c3fc39132b Made ParticleEmitter::ApplyEffect() public, as it's necessary if changing certain properties of the effect programmatically. Also mark network update if the emitter's effect is changed to none. 2014-06-17 23:28:32 +03:00
Lasse Öörni
6a044a324b Fix missing viewMask parameter in Lua Raycast & RaycastSingle. 2014-06-17 16:17:06 +03:00
ninjastone
66c66fa444 TransformSpace was ignored in Node::LookAt 2014-06-17 21:33:40 +09:00
aster
6cf4fded98 Add set relative, scaled, sorted. 2014-06-17 12:31:53 +08:00
Lasse Öörni
ce97cba5c1 Use FromAxes() in Quaternion::FromLookRotation() to fix problem with negative coordinates. Fixes #388. 2014-06-17 00:09:17 +03:00
Lasse Öörni
6231acffdc ParticleEffect live reload support. 2014-06-16 23:22:09 +03:00
Lasse Öörni
542fa82595 Update documentation. Remove unneeded friend class definition. 2014-06-16 23:02:45 +03:00
Lasse Öörni
1a633c4a18 Restore file serialization attributes to ParticleEmitter so that its state is preserved exactly. Hide the period timers from the editor. 2014-06-16 22:52:35 +03:00
Aster@中国上海
7616457c21 Fix some functions name, add AS binding. 2014-06-16 18:38:55 +08:00
Aster@中国上海
6bcc980119 Refactor ParticleEmitter class and add Lua API. 2014-06-16 13:28:54 +08:00
Aster@中国上海
cd5eef22ae Move data to ParticleEffect. 2014-06-16 12:41:03 +08:00
Aster@中国上海
80ce8a2a7c Add ParticleEffect class. 2014-06-16 12:15:27 +08:00
Aster@中国上海
08cabb3582 fix typo. 2014-06-14 22:58:34 +08:00
Aster@中国上海
ed94403b83 Code refactoring. 2014-06-13 13:32:33 +08:00
Lasse Öörni
f3b537d11b In Application class, use SDL_iPhoneSetAnimationCallback on iOS instead of running a blocking main loop. Closes #381. 2014-06-12 01:05:29 +03:00
Yao Wei Tjong 姚伟忠
11c41c64bc Reinstate the Assimp fix for Raspberry Pi build.
Remove unsupported GCC attribute to suppress the warnings when building Assimp library (commit: 50556078d6).
2014-06-11 14:34:00 +08:00
Lasse Öörni
94462fc5a0 Ensure a texture is not left in "no GPU object" state if reloading from a file fails. Closes #379. 2014-06-10 13:57:12 +03:00
Yao Wei Tjong 姚伟忠
a6a0a6d802 Fix native debug configuration build of Assimp using MinGW compiler.
By removing the CMAKE_CROSSCOMPILING condition check, the workaround is now applied for both native and cross-compiling cases.
2014-06-10 12:23:08 +08:00
Lasse Öörni
1229b6cf1d Instead of reverting to windowed if exact resolution match not found, use closest matching fullscreen resolution in Graphics::SetMode(). 2014-06-10 00:02:11 +03:00
Lasse Öörni
f1ec4c8a18 Ensure that manually created textures with an assigned name, but no actual file to back their contents, will recreate the GPU object after device loss and set data lost state. 2014-06-09 23:45:45 +03:00
Lasse Öörni
066781bf85 Fix ResourceCache::ReloadResource() header comment. 2014-06-09 23:26:22 +03:00
Lasse Öörni
001d57171b Add saving of assimp embedded textures to AssetImporter. Note that assimp itself does not yet support textures from inside FBX files. Closes #375. 2014-06-09 20:46:20 +03:00
Yao Wei Tjong 姚伟忠
9ad3d26a4b Tag the changes and add null check for pollInputDevices() also. 2014-06-09 13:20:23 +08:00
StevenZhang
a35d7bdb53 fix android crash on some devices (e.g. Tmall Magic Box). 2014-06-08 18:15:49 +08:00
Aster@中国上海
fae8e81d54 Add 2D suffix to 2D transform functions, now please use SetPosition2D etc. 2014-06-07 21:29:49 +08:00
Lasse Öörni
dd657eab8d Update assimp to newest git revision. 2014-06-07 15:57:34 +03:00
Aster@中国上海
9ec20d0987 Remove SetTemporary in child nodes.[ci skip] 2014-06-06 20:23:51 +08:00
Aster@中国上海
0cd556cc04 Make root node temporary.[ci skip] 2014-06-06 15:50:17 +08:00
Aster@中国上海
318e388777 Add LoopMode2D to control animation loop mode, make spriter animation sample in force loop mode. 2014-06-06 13:07:15 +08:00
aster2013
a03078d0ac Bind Node's 2D properties to AngelScript. 2014-06-05 22:17:45 +08:00
Aster@中国上海
04c2072400 Add more Transform functions for Urho2D and to lua. 2014-06-05 20:39:52 +08:00
Aster@中国上海
8508ad7a8d Add ToluaIsPODVector<Vector2>. 2014-06-05 16:33:06 +08:00
Aster@中国上海
1e05ee4ed0 Add root node in AnimatedSprite2D. 2014-06-05 14:07:40 +08:00
Aster@中国上海
b25b44abe7 Fix warning. 2014-06-04 12:33:47 +08:00
aster2013
08e270df0b Recalculate hotspot for trimmed sprite in AnimationSet2D. 2014-06-03 23:27:16 +08:00
aster2013
b3f2a1786f Remove custom sprite sheet format. 2014-06-03 22:37:09 +08:00
Aster@中国上海
81d2c17a4d Update animation when set flip (for editor paused mode).[ci skip] 2014-06-03 20:15:57 +08:00
Aster@中国上海
171609dad9 Add flip and color to AnimatedSprite2D 2014-06-03 18:50:25 +08:00
Aster@中国上海
fc79775024 Format code.[ci skip] 2014-06-03 13:40:05 +08:00
Aster@中国上海
15bc670ab4 Add spritersheet support in AnimationSet2D. 2014-06-03 12:10:00 +08:00
Aster@中国上海
4d6392c182 Use one transform. 2014-06-03 11:58:30 +08:00
aster2013
fe3af57199 Merge branch 'spriter-animation' 2014-06-02 21:53:59 +08:00
aster2013
6bf9b2ad7e Fix spriter animation bone scaling, because Spriter's world transform calculation is different with Urho3D, so add Transform2D class to fix it. 2014-06-02 21:48:04 +08:00
aster2013
dc5288c4ac Move parent from Mainline to Timeline. 2014-06-02 17:04:04 +08:00
aster2013
370c15ad93 Fixed build hierarchy. current these is a bug for scaling. 2014-06-01 23:04:44 +08:00
aster2013
2bee9a334f Add bone animation support. 2014-06-01 21:20:01 +08:00
aster2013
4c47170f8e Rename XAnimationSet2D to AnimationSet2D, Rename XAnimatedSprite2D to AnimatedSprite2D. 2014-06-01 15:43:32 +08:00
aster2013
e5a93022c4 Rename XAnimation2D to Animation2D 2014-06-01 15:28:18 +08:00
aster2013
53351462ce Remove old AnimatedSprite2D and Animation2D.h. 2014-06-01 15:21:04 +08:00
aster2013
a99145a80c Update 24_Urho2DSprite sample with spriter animation. 2014-06-01 15:11:56 +08:00
aster2013
a5a0512cf8 Add hot spot in Sprite. 2014-06-01 15:05:38 +08:00
aster2013
4807ed7d37 Add Spriter animation Lua binding and sample. 2014-06-01 14:30:46 +08:00
aster2013
22d6ede8e6 Add spriter animation AS binding and sample. 2014-06-01 14:02:27 +08:00
aster2013
002292d01f Make XAnimatedSprite2D derived from Drawable, export attributes. 2014-06-01 13:27:00 +08:00
Lasse Öörni
e079878e40 Remove the gather4 path similarly from HLSL FXAA3. Fix FXAA2 tag name in the examples. Removed dead link from documentation. 2014-06-01 02:33:19 +03:00
Lasse Öörni
f2e6e86a1d Rename EdgeFilter shader to FXAA2. Rename FXAA shader to FXAA3. Clean up FXAA3 GLSL code and port to HLSL. 2014-05-31 23:24:31 +03:00
aster2013
07f5c97854 Fixed text format.[ci skip] 2014-06-01 00:01:37 +08:00
aster2013
6cea8b84f5 Add spriter animation sample in C++. 2014-05-31 23:58:48 +08:00
aster2013
587fca67f9 Add XAnimatedSprite2D class.[ci skip] 2014-05-31 23:49:30 +08:00
aster2013
928556918d Add animation set class. [ci skip] 2014-05-31 23:07:41 +08:00
aster2013
0f46863498 Add XAnimation2D class. name is temporary, I will name it to Animation2D laster. [ci skip] 2014-05-31 22:47:55 +08:00
Amadeus
2014f5ee1a Fix incorrect use of PODVector in ValueAnimation, maybe related to #361 2014-05-31 13:47:42 +02:00
Lasse Öörni
5790875b23 Removed unnecessary construction of a SharedPtr object. 2014-05-30 20:04:06 +03:00
Lasse Öörni
766a08060d Clean up ParticleEmitter API. Removed resetPeriod option from SetEmitting(), instead the period is always reset if the state changes. Added separate RemoveAllParticles(), ResetEmissionTimer() & Reset() functions. 2014-05-30 16:20:30 +03:00
Aster@中国上海
5ae71ba270 Fix user type attribute setting bug. Thanks Mike. 2014-05-30 11:24:01 +08:00
Lasse Öörni
fa5ce00ff5 Added SetCustomTriangleMesh() function to CollisionShape, which uses a CustomGeometry to define the collision shape. Exposed missing SetCustomConvexHull() function to Lua. 2014-05-28 02:37:14 +03:00
Lasse Öörni
2056be0bde Fix typos in comments. 2014-05-27 19:40:46 +03:00
Lasse Öörni
1c3302757c Clean up shader compiler error string on shader live reload to allow recovery. Closes #363. 2014-05-27 00:21:16 +03:00
Lasse Öörni
f3b6a718f7 Merge remote-tracking branch 'remotes/mike3d/master' 2014-05-26 23:27:09 +03:00
Lasse Öörni
a7f9747376 Fix compressed sound resourceref not being serialized. 2014-05-26 23:18:08 +03:00
Mike3D
c04bceb490 Update CMakeLists.txt 2014-05-24 07:22:43 +02:00
Yao Wei Tjong 姚伟忠
96295b4923 Ensure the application logs are created in a writeable location.
- Add a new function to get application preferences directory and expose it to scripting.
- Change Editor to save/load configuration file from the application preferences directory.
- Standardized the location of log files generated by Urho3DPlayer and samples. Ensure it is created in a user writeable location to prevent application locked up during closing.
2014-05-24 12:16:18 +08:00
Mike3D
bba58e1287 New Urho2D sample demonstrating constraints.
Thanks to Aster for his help.
2014-05-23 21:17:45 +02:00
Lasse Öörni
0a4f813389 Verify the number of contact points in manifold in case collision event processing changes the physics world. Closes #358. 2014-05-21 13:44:21 +03:00
Yao Wei Tjong 姚伟忠
2de4129fec Prevent losing focus in modal window due to a click on emptiness. 2014-05-17 23:37:58 +08:00
Lasse Öörni
24923bbc9c Expose CustomGeometry component to Lua. Closes #353. 2014-05-16 22:02:32 +03:00
Lasse Öörni
dd5f1dbcc3 Set Sprite2D's texture name before loading so that the texture is able to load a parameters file, if it exsists. 2014-05-16 15:20:50 +03:00
Lasse Öörni
21eb3d8bc9 Add Android accelerometer value clamping. Closes #350. 2014-05-16 11:48:59 +03:00
Yao Wei Tjong 姚伟忠
c1b506ee54 Clean up build scripts to avoid code duplication. 2014-05-16 13:12:52 +08:00
Yao Wei Tjong 姚伟忠
d92eaf2f5d Tag the change in SDL source code. 2014-05-16 12:44:15 +08:00
Lasse Öörni
7eef4edcb7 Fix swapped accelerometer axes in 180 degree device rotation. Thanks to Mike3D. Closes #348. 2014-05-15 16:34:23 +03:00
Yao Wei Tjong 姚伟忠
b1fbab4953 Be explicit in setting the file permissions when installing.
Closes #352.
2014-05-15 21:14:09 +08:00
Lasse Öörni
8b5d884f3c Allow triggering mouse button presses from a screen joystick while using touch emulation. 2014-05-14 21:46:12 +03:00
Lasse Öörni
223f98451a Change OpenGL pixel store settings to happen immediately after context creation. Otherwise crash could result when restoring texture data. Fixes #344. 2014-05-14 21:16:29 +03:00
Lasse Öörni
bf6a054ac4 Use ordinary DRAWABLE_GEOMETRY flag on 2D drawables so that they can be raycasted against. Use a DRAWABLE_PROXYGEOMETRY flag on DrawableProxy2D so that it won't show up in normal raycasts or octree queries. Fixes #345. 2014-05-14 14:49:15 +03:00
Lasse Öörni
6b7f1d842c Added functions to remove one recorded touch gesture, or all touch gestures. 2014-05-13 22:55:37 +03:00
Lasse Öörni
0d183d6301 Added FromString() function to XMLFile. 2014-05-13 21:50:26 +03:00
Lasse Öörni
f232856ac1 Added manual VectorBuffer overloads for AngelScript functions that take a File handle for loading/saving. Cleaned up some script bindings code and fixed AngelScript binding for Image::LoadColorLUT(). 2014-05-13 21:29:52 +03:00
Lasse Öörni
84d06d2e61 Merged the face camera boolean and axes parameters used by BillboardSet & Text3D into a FaceCameraMode enum. Implement none, rotate XYZ, rotate Y, lookat XYZ & lookat Y modes. More can be added as necessary. 2014-05-12 22:43:55 +03:00
Lasse Öörni
76a7a60918 Expose touchedElement of TouchState to Lua, and to AngelScript as an ordinary handle to simplify code. Closes #342. 2014-05-12 14:09:06 +03:00
Yao Wei Tjong 姚伟忠
3ea3f8102b Minor refactor to a cleaner fix for #341. Also fix DebugHud now.
Revert back changes to UI class as it should not need to know Console's innards.
2014-05-12 12:44:54 +08:00
Yao Wei Tjong 姚伟忠
56d5cf06b6 Fix UI::Clear() erroneously also removed Console's UI elements.
Closes #341.
2014-05-11 22:02:00 +08:00
Yao Wei Tjong 姚伟忠
df936563f2 Fix invisible console still gaining the input focus bug. 2014-05-11 21:42:11 +08:00
Aster@中国上海
49a507dbd6 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-05-07 19:41:32 +08:00
Aster@中国上海
29095ad804 Add GetSubimage in Image class. 2014-05-07 16:56:38 +08:00
Lasse Öörni
c836250f3e Safety check in case eg. a script object instantiation would fail and the cloned component would have less attributes. 2014-05-05 20:24:30 +03:00
Lasse Öörni
5a0a64aed8 Query the clone component's attribute vector just once. 2014-05-05 20:22:27 +03:00
Lasse Öörni
bccc6d0c55 For consistency with the Node class, refer to the ScriptInstance's contained object with "scriptObject" property instead of "object" in AngelScript scripting. 2014-05-05 20:15:38 +03:00
Lasse Öörni
3be53d8047 Fix a script object's unique attributes not being correctly set when CloneComponent() is called. 2014-05-05 20:11:26 +03:00
Lasse Öörni
1689d9223b Call ApplyAttributes() on the cloned component to make sure attribute side-effects happen. 2014-05-05 13:55:12 +03:00
Yao Wei Tjong 姚伟忠
1b49f15ca5 Remove code duplication and avoid unnecessary AttributeInfo search. 2014-05-05 07:53:34 +08:00
Lasse Öörni
5076f966e1 Expose CloneComponent() function to AngelScript & Lua and make it return the created component. 2014-05-05 01:53:11 +03:00
thebluefish
0d717bae26 Added ability to clone components
- Added Node::CloneComponent to clone components existing in other
nodes.
- Added log warning to Node::AddComponent if the component already has a
parent node.
2014-05-05 01:52:53 +03:00
Lasse Öörni
e7a599100e Fixed Android being unable to calculate file checksum. 2014-05-04 17:35:19 +03:00
Aster@中国上海
ebd705d674 For Component, Resource and UIElement always return concrete object type to Lua. 2014-05-04 15:37:08 +08:00
aster2013
63af574730 Fix bug in CollisionPolygon2D and ToluaToPODVector<Vector2>. 2014-05-03 20:29:36 +08:00
Lasse Öörni
0c1e99161a Warn if rtsizedivisor mode, that doesn't exist anymore, is used in renderpath definition. Fix sizemultiplier mode getting the correct XML attribute. 2014-05-03 00:29:52 +03:00
Lasse Öörni
c0aa80ea3b Check also for MRT rendering without deferred rendering for whether needs a substitute rendertarget with a viewport smaller than the screen. 2014-05-03 00:05:41 +03:00
Lasse Öörni
981b5bcac4 Use viewport sized intermediate rendertargets so that pixels outside the viewport never leak into post-processing. Added viewport multiplier mode to renderpath definition. Closes #265. 2014-05-02 22:47:13 +03:00
aster2013
95651d1612 Bind more functions in XMLElement to Lua. 2014-05-02 20:07:10 +08:00
Yao Wei Tjong 姚伟忠
24e6b0d3cf Clean up CharacterDemo sample to use the same TOUCH_SENSITIVITY value. 2014-05-01 11:39:17 +08:00
aster2013
293cd434fb Remove Node's Lua scalar transform functions, like SetPositionXYZ. 2014-04-30 22:52:11 +08:00
Lasse Öörni
4ac7b60758 Restructure the D3D9 GPU flush: after presenting, first wait for previous frame's query, then issue new query. To prevent a loop of device loss and window flicker, do not attempt to render on D3D9 when the window is minimized in fullscreen mode. 2014-04-30 17:25:06 +03:00
aster2013
49d9856dd5 Add transform functions for Urho2D. 2014-04-30 22:17:48 +08:00
Lasse Öörni
5442bb22c8 Comment out Cursor::ApplyOSCursorShape() on mobile platforms to avoid error log print. 2014-04-30 00:09:47 +03:00
Lasse Öörni
40028ccc71 Touch scroll in ScrollView / ListView. Deceleration is instant for now. Closes #332. 2014-04-29 23:39:38 +03:00
Lasse Öörni
9c92bae70b Expose int math functions with different names in Lua to avoid overload resolution bugs. Closes #335. 2014-04-29 21:00:14 +03:00
Yao Wei Tjong 姚伟忠
6ad8c14346 Add engine param for enabling touch emulation during initialization.
Adjust sample base class to add screen joystick on desktop platform when touch emulation is enabled.
2014-04-29 10:36:43 +08:00
Yao Wei Tjong 姚伟忠
b86b325864 Remove extra semi colon. [ci skip] 2014-04-29 09:49:47 +08:00
szamq
5559c4fada Added Catmull-Rom spline type which interpolates through the control nodes 2014-04-28 22:03:04 +02:00
Lasse Öörni
42c5c3981d Remove redundant check from Input code. 2014-04-28 22:58:39 +03:00
Lasse Öörni
cbf91aaa8a Add touch emulation stationary fingers for multi-gestures by pressing down other mouse buttons than the left. 2014-04-28 22:51:55 +03:00
Lasse Öörni
179faa674e Reset screen joystick buttons/axes on initialization. Do not send mouse events from a screen joystick under touch emulation, as those would be re-interpreted as further touch events. Minor Input code cleanup. 2014-04-28 20:57:13 +03:00
Lasse Öörni
a317c48beb Initial touch emulation. 2014-04-28 18:48:49 +03:00
Aster@中国上海
e0cdb778c2 Merge branch 'font_simiplify' 2014-04-28 16:29:34 +08:00
Lasse Öörni
d097a918ea Merge pull request #331 from thebluefish/master
Can now #include multiple files referencing that #include LogicComponent
2014-04-28 11:19:22 +03:00
thebluefish
dfd119b41f Fixed an obvious oversight 2014-04-27 21:42:33 -07:00
Lasse Öörni
5463254bbf Change references to Component::OnSetAttribute() to Serializable::OnSetAttribute() as the Component overload no longer exists. 2014-04-27 14:10:49 +03:00
Yao Wei Tjong 姚伟忠
19bfdddce0 Refactor to make MarkNetworkUpdate() virtual method of Serializable.
Serializable class calls MarkNetworkUpdate() when setting network attribute without setter accessor.
Closes #327.
2014-04-27 12:53:41 +08:00
Lasse Öörni
cb46d72783 Fix LogicComponent physics post-step to call the correct virtual function. 2014-04-26 22:46:13 +03:00
Lasse Öörni
ff0f09e224 Convert also ParticleEmitter Face Camera attribute to non-accessor mode. 2014-04-26 19:30:29 +03:00
Lasse Öörni
775c2906f8 Refactor attribute / shader parameter animation update into the ValueAnimationInfo base class to avoid code duplication. 2014-04-26 19:14:44 +03:00
Lasse Öörni
7a8183952f BillboardSet "Face Camera" attribute doesn't need accessor mode. 2014-04-26 19:14:44 +03:00
Yao Wei Tjong 姚伟忠
ff764d33e1 Fix cross-compiling between i686 and x86_64 when building SHARED lib.
Credits goes to alexrass.
2014-04-26 16:29:58 +08:00
Lasse Öörni
00e9dc0a79 Selectable axes for BillboardSet & Text3D camera facing. Default all axes (follow camera rotation fully). Fix ParticleEmitter faceCamera property not being exposed to AngelScript. Closes #325. 2014-04-26 00:27:56 +03:00
Lasse Öörni
1ace932f1e Removed unnecessary cases of MarkAnimationDirty() in AnimatedModel to allow manually positioned bones persisting correctly on scene load, when there are no animation states. 2014-04-25 22:17:25 +03:00
Aster@中国上海
387c89b857 Simplify font class. 2014-04-25 14:13:21 +08:00
Aster@中国上海
78f902bcce Remove friend class declaration.[ci skip] 2014-04-24 13:39:25 +08:00
Aster@中国上海
fa3e3fad8c Merge font-refactor. 2014-04-24 13:36:24 +08:00
aster
5ce6276b97 Remove unnecessary check for physics world (2D). 2014-04-24 13:29:45 +08:00
aster
ebc9e8cc43 Fix typo. 2014-04-24 13:20:18 +08:00
Yao Wei Tjong 姚伟忠
4a30cbe72f Automatically create PhysicsWorld or PhysicsWorld2D component. 2014-04-24 01:43:04 +08:00
Yao Wei Tjong 姚伟忠
153906b8c7 Add mouse grabbed flag to Input subsystem.
Use it in Editor camera rotation/orbiting operation to prevent Editor's UI element from reacting to mouse in the midst of operation.
2014-04-24 00:54:31 +08:00
Yao Wei Tjong 姚伟忠
4cf5ffd6db Code cleanup on screen joystick to make Input.h easier to include. 2014-04-23 18:30:21 +08:00
Lasse Öörni
d9572c82a5 Fixed missing include. 2014-04-23 13:19:17 +03:00
aster
a6ce24f82f Remove unused class declaration. 2014-04-23 17:43:29 +08:00
aster
1d8c3b78ba Add FontFaceBitmap and FontFaceFreeType files. 2014-04-23 17:29:47 +08:00
aster
b0b88a5202 Move save bitmap font to FontFaceBitmap. 2014-04-23 17:20:35 +08:00
Lasse Öörni
3309f2af6c Explain terrain LOD index data generation mechanism. Closes #324. 2014-04-23 12:18:00 +03:00
aster
eb60639163 Move free type font face to FontFaceFreeType. 2014-04-23 16:57:56 +08:00
aster
5fab105452 Move load font face code to font face classes. 2014-04-23 16:45:24 +08:00
aster
0ffbd4d575 Move font face class out of font files. 2014-04-23 16:18:04 +08:00
aster
777b4b9114 Replace string with string hash. 2014-04-22 15:01:28 +08:00
Yao Wei Tjong 姚伟忠
dfe4caf3d6 Add logic to suppress zoom when multi-touching screen joystick buttons. 2014-04-22 12:41:02 +08:00
aster
7c724bf3e2 Try load asset in current directory. 2014-04-22 12:05:37 +08:00
aster
06ccf8efbb rename variant name, avoid memory leak when attribute not found. 2014-04-22 10:03:20 +08:00
Yao Wei Tjong 姚伟忠
125000454c Refactor samples to use patched screen joystick layout. Closes #321.
Enhance screen joystick to also support mouse button binding. It can be used in combination with key binding, e.g. to bind SHIFT+LMB.
2014-04-22 01:12:46 +08:00
aster
de6d39d74b Add Load and save for material shader animation. 2014-04-21 20:35:57 +08:00
aster
91bbd7a454 Remove AttributeAnimationInstance and MaterialShaderParameterAnimationInstance files. 2014-04-21 20:16:55 +08:00
aster
11a9b1f1dc Bind material parameter animation to Lua and AngelScript, Add MaterialAnimation sample. 2014-04-21 18:59:07 +08:00
aster
d0b1036001 Add material shader animation. 2014-04-21 18:59:06 +08:00
aster
113cb5584a Rename AttributeAnimation to ValueAnimation make animaiton more general. 2014-04-21 18:09:35 +08:00
aster
3afd10aaa6 Move CalculateScaledTime to AttributeAnimationInfo, extract GetEventFrames method. 2014-04-21 17:11:25 +08:00
Yao Wei Tjong 姚伟忠
265f9ceefc Minor clean up on Input class and NinjaSnowWar demo. 2014-04-21 12:48:20 +08:00
Lasse Öörni
b8185f973c Support a "select on click end" mode in ListView. Support defining a separate drag'n'drop content for elements dropped into a LineEdit. Enable drag'n'drop to node ID attribute fields. Closes #261. 2014-04-20 23:02:04 +03:00
Lasse Öörni
56e0aad21d Minor rendering code cleanup. Added Plane::Project(). 2014-04-20 15:37:20 +03:00
Lasse Öörni
210b295f81 Removed duplicate code from shadow map setup. 2014-04-20 13:36:41 +03:00
aster2013
0e2e2a0b7f Fix error in JSONValue AngelScript API. 2014-04-20 15:27:15 +08:00
aster2013
53d641bf6e Add get child name for JSON object type. 2014-04-20 15:03:24 +08:00
aster2013
f95275aaa9 Bing JSON to Lua and AngelScript. 2014-04-20 14:07:29 +08:00
aster2013
6d3ad57bc8 Rename enum and function names in JSONValue. 2014-04-20 14:02:12 +08:00
Lasse Öörni
76d5ffdcf8 On OS X + Intel, use dummy color textures for shadow maps to work around a driver bug. Fixes #225. 2014-04-20 01:58:43 +03:00
aster2013
460da659ee Add JSON support in Urho3D. 2014-04-19 22:21:05 +08:00
Lasse Öörni
9b833e371a Always hide the status bar independent of window flags. 2014-04-19 17:01:10 +03:00
Lasse Öörni
955a8bb34e Joystick refactoring after merging the joystick pull request from thebluefish.
- Fixed "ghost" buttons due to setting button down state both by joystick button and controller button mapping.
- Fixed missing name in joystick state.
- Allow getting joystick state both by joystick ID (Input::GetJoystick()) and a zero-based index (Input::GetJoystickByIndex()).
- Fixed ambiguity in Input class parameter names whether functions take a joystick ID, or an index. Most take joystick ID by now.
- Controller events removed. Controller joysticks will receive ordinary joystick events, but with controller axis & button mappings.
- Joystick identifying parameter in joystick events changed to JoystickID to denote that it's an ID and not a zero-based index.
- Code convention edits to Input code.
2014-04-18 23:33:25 +03:00
Lasse Öörni
5209e6e6a6 Merge remote-tracking branch 'remotes/thebluefish/master' 2014-04-18 15:00:59 +03:00
Yao Wei Tjong 姚伟忠
dbeb244fb5 Minor clean up on sample code. Move Console & HUD to settings joystick. 2014-04-18 18:06:41 +08:00
thebluefish
51c4060135 Bugfix
- Updated Angelscript bindings
- Updated NinjaSnowWar
2014-04-18 00:52:59 -07:00
thebluefish
907c6a15f5 Bugfixes 2014-04-18 00:03:55 -07:00
thebluefish
1ba75f5222 Resolved virtual joystick support
- Added function to set virtual joystick visibility.
- Updated samples.iml to reflect changess.
2014-04-17 23:50:06 -07:00
thebluefish
33240a260a Fixed lua bindings
- Fixed lua script bindings
- Reverted previous changes to GetJoystickName
- Tested default lua scripts with Urho3DPlayer to ensure scripts run
properly
2014-04-17 22:54:33 -07:00
Yao Wei Tjong 姚伟忠
1397ad593b Warn when autoload folder does not exist. 2014-04-18 11:42:31 +08:00
thebluefish
2c4fd8192e Fixed joystick support
- Added support for events SDL_JOYDEVICEADDED and SDL_JOYDEVICEREMOVED.
- Added Urho3D events E_JOYSTICKCONNECTEDand E_E_JOYSTICKDISCONNECTED.
- Added SDL_JoystickID as a JoystickState variable.
- All joysticks are open by default. All joystick events will receive
the InstanceID of the joystick for application-level control.
- SDL_JoystickID is now used instead of the Joystick index. This way,
the order that joysticks connect does not matter. If a joystick or
controller gets disconnected, and then later reconnects during the same
game session, it will retain the same SDL_JoystickID.

Note: Virtual (on-screen) joysticks should still work, but has not been
tested.
2014-04-17 17:40:21 -07:00
Lasse Öörni
1f91a44818 Removed the deprecated GetClassName() AngelScript Variant bindings. Fixed the Ragdolls example to not use them. 2014-04-18 01:32:30 +03:00
Lasse Öörni
0c219cfb35 Document the AutoloadPaths engine startup parameter. Copy also the Extra directory in the Android CopyData batch file. 2014-04-18 00:52:43 +03:00
Lasse Öörni
7eb8210eac Merge remote-tracking branch 'remotes/friesencr/packagefile-getentrynames' 2014-04-18 00:35:03 +03:00
Lasse Öörni
848ecce091 Merge remote-tracking branch 'remotes/friesencr/auto-load-folders' 2014-04-18 00:34:36 +03:00
Lasse Öörni
5b4da41b10 Code cleanup, renamed command line option. Updated AssetImporter documentation. 2014-04-17 15:07:35 +03:00
hualin
b946be1ff5 add an option for exporting the scene meshes even if they are identical with the others 2014-04-17 15:07:23 +03:00
aster
f3ca194c24 Fixed bug of set target call order. 2014-04-17 19:48:21 +08:00
aster
19b008d44b Fix bug in ConstrainMouse2D. 2014-04-17 19:34:03 +08:00
aster
728ef72062 Add degree math function, fix scale time when speed < 0. 2014-04-17 15:49:00 +08:00
aster
55e576bc11 Only receive contact event when physics stepping. 2014-04-17 15:35:48 +08:00
aster
cb0211e586 Delay send contact event. 2014-04-17 12:58:42 +08:00
Chris Friesen
873cef9840 Folders that autoload subfolders/paks on load 2014-04-16 22:27:31 -05:00
Chris Friesen
0171669690 Adds package entry filenames to PackageFile 2014-04-16 19:50:45 -05:00
Yao Wei Tjong 姚伟忠
ec25e56046 Refactor Samples to support yaw and pitch by touch on mobile platform. 2014-04-17 01:56:59 +08:00
Yao Wei Tjong 姚伟忠
ac81ae1c7f Fix static key binding map population for screen joystick. 2014-04-17 01:32:50 +08:00
Lasse Öörni
7289f4be7a NinjaSnowWar: when the console is visible, do not react to any controls. When OS mouse cursor changes from visible to hidden, center it to avoid erratic mouse move on the next frame. 2014-04-16 16:29:45 +03:00
Yao Wei Tjong 姚伟忠
4a449869eb Add a close button for Console to ensure it can be closed on iOS.
Fix Console being overlapped by other UI elements in Editor.
2014-04-16 20:29:00 +08:00
Yao Wei Tjong 姚伟忠
a38433b0aa Clean up hats' key binding code for screen joystick. 2014-04-16 20:04:52 +08:00
aster
2a4c4c9eca SpriteSheet add load texture in current directory. 2014-04-16 17:08:47 +08:00
Yao Wei Tjong 姚伟忠
79cdbabb55 Add abilility to use key mapping also for hats on screen joystick.
This should make it possible to bind the hats to something like "UP DOWN LEFT RIGHT".
This commit breaks earlier commits slightly. The default hats binding is now "WSAD" instead of "WASD".
2014-04-16 16:49:11 +08:00
Lasse Öörni
00f08ad608 Break Deserializer::ReadString() on EOF to allow reading a whole text file at once without getting stuck. Closes #312. 2014-04-16 11:15:08 +03:00
Lasse Öörni
67e46f1d71 Improve Input documentation. Reorder InputEvents.h to match the order in documentation. 2014-04-16 10:45:12 +03:00
aster
e0737e6c46 Replace Char event with TextInput event for CJK IME support. 2014-04-16 13:47:14 +08:00
aster
fff89efdd8 Make 2D camera auto aspect ratio. 2014-04-16 10:59:01 +08:00
Lasse Öörni
9906e7ed25 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304. 2014-04-15 23:48:04 +03:00
Yao Wei Tjong 姚伟忠
c78f34d5ca Improve the hats response on screen joystick (in joystick event mode).
Refactor Samples base class to take advantage of the screen joystick.
Add second screen joystick layout for changing app settings.
Closes #264.
2014-04-15 22:59:10 +08:00
aster
4f8545f061 When external window exist, set alpha size to 8, fix issue #310. [ci skip] 2014-04-15 21:08:19 +08:00
Lasse Öörni
5c11a771f3 Properly skip unsupported kerning subtables. 2014-04-15 11:38:14 +03:00
Lasse Öörni
d41293899d Instead of fatal font loading error, skip loading the kerning table if wrong version. Skip over the searchRange, entrySelector & rangeShift fields in kerning data. Sanity check glyph indices in kerning data. 2014-04-14 22:49:57 +03:00
aster2013
c5ffddc2bc Fix out of memory crash when use large font file. 2014-04-14 22:18:51 +08:00
Lasse Öörni
afa6f717e7 Merge remote-tracking branch 'remotes/thebluefish/master' 2014-04-14 10:58:16 +03:00
aster
489119f1cb Change lineHeight in savexml.[ci skip[ 2014-04-14 13:03:53 +08:00
aster
4c6b1e10df Change lineheight to lineHeight, because bitmap font is generated by external tool, it use lineHeight.[ci skip] 2014-04-14 12:18:13 +08:00
aster
3f92c273a1 Rename arguments names.[ci skip] 2014-04-14 10:47:34 +08:00
thebluefish
a7ea528e42 Update Log.h 2014-04-13 14:44:06 -07:00
thebluefish
98fd937bb6 Update Log.h 2014-04-13 14:33:05 -07:00
Yao Wei Tjong 姚伟忠
1518c332c1 Add user customizable screen joystick for mobile platforms. 2014-04-13 23:34:20 +08:00
Lasse Öörni
b4ba4a3573 Fix AngelScript bindings on MSVC (asMETHODPR macro needs to be used in the template base class registration functions to allow static_cast to work). Make the class names links on the attribute list page. 2014-04-13 14:30:52 +03:00
Yao Wei Tjong 姚伟忠
57d6c7827b Minor refactoring on attribute animation classes. 2014-04-13 12:38:00 +08:00
Lasse Öörni
9a7a9110a2 Added generated attribute documentation. Move AngelScript API dumping to a separate .cpp file. Hack fix for Doxygen parsing bug which would cause the Events page not to be recognized. Closes #303. 2014-04-13 01:45:27 +03:00
Yao Wei Tjong 姚伟忠
e06c503f64 Fix GCC Makefile build on Mac OS X platform for good. 2014-04-12 23:09:03 +08:00
Yao Wei Tjong 姚伟忠
3897718a40 Handle corner case: soft-cursor is invisible + OS-cursor is visible. 2014-04-12 21:50:54 +08:00
aster2013
2c672b154b Remove animation only attribute support. 2014-04-12 21:47:08 +08:00
aster2013
6daabe1b74 Add GetRigidBody function mouse position in PhysicsWorld2D. 2014-04-12 21:39:32 +08:00
Yao Wei Tjong 姚伟忠
0425358f5c Fix GCC Makefile build on Mac OS X platform. 2014-04-12 19:31:19 +08:00
aster2013
ce41b87aae Fixed spline binding.[ci skip] 2014-04-12 14:56:04 +08:00
aster2013
f9107d4fed Add scene attribute animation update event. 2014-04-12 13:55:03 +08:00
aster2013
f8bce6a56e Move wrap mode out of ObjectAnimation.h.[ci skip] 2014-04-12 13:26:41 +08:00
aster2013
afaa9c7702 Demonstrate usage of spline interpolated animation, and set animation to node's world position(animation only attribute). 2014-04-12 13:12:29 +08:00
aster2013
21a14f12e5 Add closed spline end point's tangent calculate.[ci skip] 2014-04-12 12:17:34 +08:00
aster2013
97a1ab4267 Rename InterpolationMethod to InterpMethod, avoid conflict with Spline class, Add animated only attribute support, like Node's world position attribute. 2014-04-12 11:17:04 +08:00
aster2013
1c2d24b55d Allow load and save interpolation method and spline tension to file. 2014-04-12 00:21:08 +08:00
aster2013
eb7cce7b4d Add new line at end of file.[ci skip] 2014-04-12 00:02:40 +08:00
aster2013
2d9a7b2915 Add cardinal spline interpolation for AttributeAnimation. 2014-04-11 23:54:40 +08:00
aster2013
802af0c21b Refactor AttributeAnimation, make IntVector2 and IntRect interpolatable. 2014-04-11 22:52:19 +08:00
Yao Wei Tjong 姚伟忠
cea3743ea7 Filesystem class also captures stderr when executing console command.
Turn on SDL filesystem support for Linux platform.
2014-04-11 14:56:36 +08:00
Aster Jian
b7917af4fd Revert "Remove wrap mode default value."
This reverts commit 3f832eb5d0.
2014-04-11 13:38:54 +08:00
Aster Jian
3f832eb5d0 Remove wrap mode default value. 2014-04-11 12:54:49 +08:00
Yao Wei Tjong 姚伟忠
5ce5be8d66 Enhance FileSystem class to also able to execute console command. 2014-04-11 12:44:20 +08:00
Aster Jian
2c18a1ca65 Add AttributeAnimationInfo class, add more comment for animation class, use XMLElement::SetVariant/GetVariant save attribute animation frame value. 2014-04-11 09:43:55 +08:00
Yao Wei Tjong 姚伟忠
8939179787 Refactor to use small case for xml tag and attribute names.
It is for consistency sake with existing code base. Exclude tag and attribute names from external XML declaration.
This commit may break user-created Urho2D XML resources.
2014-04-10 21:33:56 +08:00
Yao Wei Tjong 姚伟忠
41df6dc2e0 Expose Color constants in AngelScript. Use them in sample app. 2014-04-10 17:42:45 +08:00
Aster Jian
0fef66f780 Minor fix animation bug.[ci skip] 2014-04-10 15:21:23 +08:00
Aster Jian
caf6f1b35a Move wrap mode out of AttributeAnimation. 2014-04-10 14:43:39 +08:00
Aster Jian
0b9ff78dcc Change cycle mode to wrap mode in AttributeAnimation, add ONCE mode make can play animation then auto remove it. remove PINGPONG mode (now PINGPONG mode is just for sprite animation). 2014-04-10 13:34:21 +08:00
Aster Jian
9a51eef182 Fix GetFloat bug. 2014-04-10 13:10:15 +08:00
Aster Jian
448874b245 Add animation speed parameter. 2014-04-10 12:35:07 +08:00
Aster Jian
270a49d09f Refix issue #256.[ci skip] 2014-04-10 12:35:07 +08:00
Yao Wei Tjong 姚伟忠
6c7db54e4b Console remembers the last used interpreter if there are more than one.
Editor persists the last used command interpreter in configuration file.
2014-04-10 12:29:55 +08:00
aster2013
d2f9db942a Add LightAnimation in AngelScript.[ci skip] 2014-04-09 23:17:45 +08:00
aster2013
00b57c1231 Add LightAnimation sample, revert StaticScene. 2014-04-09 23:01:39 +08:00
aster2013
afddbaef76 Fix Node.pkg merge error. 2014-04-09 22:33:16 +08:00
aster2013
a2197916a7 Update LuaIntegration sample. 2014-04-09 22:24:52 +08:00
aster2013
3cb656a0f8 Replace script file name with LuaFile, make it can pick in editor. 2014-04-09 22:24:50 +08:00
Aster Jian
ce7f6a6a41 Fix stack index error.[ci skip] 2014-04-09 22:24:49 +08:00
Aster Jian
1b200184d2 Fix attribute bug. 2014-04-09 22:24:47 +08:00
Aster Jian
76efdc19bf Finish Anglescript animation API. 2014-04-09 22:24:45 +08:00
Aster Jian
ded9dd547b Add Angelscript API. 2014-04-09 22:24:44 +08:00
Aster Jian
9a9b79fd8e Add animation Lua API. 2014-04-09 22:24:42 +08:00
Aster Jian
1bc6f0820e Add template variant. 2014-04-09 22:24:40 +08:00
Aster Jian
80bd29a18d Add Lua object attribute set and get function. 2014-04-09 22:24:38 +08:00
Aster Jian
b224e7cfcc Minor fixed. 2014-04-09 22:24:37 +08:00
Aster Jian
5805f7027c Add get Lua attribute name in C++, not finish.[ci skip] 2014-04-09 22:24:35 +08:00
Aster Jian
21ddb94b52 Add resource load and save functions for animations. 2014-04-09 22:24:33 +08:00
Aster Jian
fc2ce2f3de Save enum type with string. 2014-04-09 22:24:31 +08:00
Aster Jian
3dfe01a3f0 Save event frame to xml, Remove binary load and save function in animation classes. 2014-04-09 22:24:30 +08:00
Aster Jian
48c3868a79 Remove child object animation, add load and save function. 2014-04-09 22:24:28 +08:00
Aster Jian
0de5de0678 Remove ignore network update, add animated network attribute check. 2014-04-09 22:24:26 +08:00
aster2013
dcbd1a3d7c Ignore network update when update animations. 2014-04-09 22:24:24 +08:00
aster2013
4a3ed4117a Refactor animation system, add AttributeAnimationInstance. 2014-04-09 22:24:22 +08:00
aster2013
64bba43ac7 Add missing header file. 2014-04-09 22:24:21 +08:00
aster2013
d453ef6daf Add object animation, add load and save functions. 2014-04-09 22:24:19 +08:00
aster2013
496fb3e74e Refactor AttributeAnimation. 2014-04-09 22:24:17 +08:00
aster2013
da7936dd68 Add attribute animation sample in StaticScene. 2014-04-09 22:24:15 +08:00
aster2013
2eff0e1144 Add attribute animation. 2014-04-09 22:24:14 +08:00
aster2013
5fd7363201 Add Animatable class. 2014-04-09 22:24:12 +08:00
Yao Wei Tjong 姚伟忠
756c2943cb Add logic to perform a copy to clipboard using Ctrl+C combo. 2014-04-09 21:01:07 +08:00
Lasse Öörni
914dc798d4 Fix missing update of octree in headless mode, so that graphics raycasts work properly and animations are updated. 2014-04-09 15:51:58 +03:00
Yao Wei Tjong 姚伟忠
6298a15bf5 Cleanup to remove unused header file after the Console enhancement.
[ci skip]
2014-04-09 20:40:42 +08:00
Yao Wei Tjong 姚伟忠
3748375f67 Enhance Console class to support multiple command line interpreterers. 2014-04-09 17:13:04 +08:00
Yao Wei Tjong 姚伟忠
3e942ec7fc Fix ScriptSubscribeToEvent to deal with multi handler of same event.
This fix is needed to make 26_ConsoleInput.lua sample works as expected.
2014-04-09 16:54:18 +08:00
Yao Wei Tjong 姚伟忠
6da0cb3995 Add mechanism to copy the selected rows to clipboard. Use in console.
Closes #289.
2014-04-08 13:59:00 +08:00
Yao Wei Tjong 姚伟忠
f3f6e66f90 Assign proper log level when sending E_LOGMESSAGE event. 2014-04-08 12:35:10 +08:00
Yao Wei Tjong 姚伟忠
b504e9f2c6 Fix competing command line interpreters issue in Editor. 2014-04-08 12:17:44 +08:00
Yao Wei Tjong 姚伟忠
20b4929b4e Fix console row container's height calculation. 2014-04-08 11:59:54 +08:00
Lasse Öörni
1239a6f771 Update console's row container height when setting its style, so that the rows are also shown without calling SetNumRows() explictly. 2014-04-07 23:11:28 +03:00
Lasse Öörni
4e34e9f52a Async SystemCommand & SystemRun. Closes #290. 2014-04-07 23:10:30 +03:00
Lasse Öörni
e01bacb657 Fix compile & crash in Console::HandlePostUpdate() if there was no rows to be printed. 2014-04-07 21:07:03 +03:00
Yao Wei Tjong 姚伟忠
ddf5aa772c Fixed typo in height calculation for accomodating displayed rows. 2014-04-07 23:55:03 +08:00
Yao Wei Tjong 姚伟忠
5730660a80 Use ListView as row container for the Console class. Closes #298. 2014-04-07 23:30:45 +08:00
Yao Wei Tjong 姚伟忠
a897ef1651 Add null check to catch faulty MessageBox window layout. 2014-04-07 14:46:42 +08:00
Yao Wei Tjong 姚伟忠
214a527da3 Fix WriteRaw() to log print with the correct log level on Android. 2014-04-07 14:35:18 +08:00
Lasse Öörni
9066f6873d Merge remote-tracking branch 'remotes/origin/transformspace' 2014-04-05 16:59:24 +03:00
Yao Wei Tjong 姚伟忠
a5e6ef597a Fix wrong compiler definition prefix. 2014-04-05 10:38:45 +08:00
Lasse Öörni
c8fe21f06a Revert "Fixes to sceneless renderpath on OpenGL." to fix crash on minimize on Android. 2014-04-05 01:07:28 +03:00
Lasse Öörni
39d733ae11 Added note that Node::Translate() in local mode disregards scale to keep movement speed independent. Removed test variable from 04_StaticScene.as. 2014-04-04 22:57:46 +03:00
Yao Wei Tjong 姚伟忠
901e471c53 Hide build options specific to Urho3D project from external project. 2014-04-05 02:11:00 +08:00
Yao Wei Tjong 姚伟忠
d274b190da Fix MinGW build and external project build. 2014-04-05 01:34:48 +08:00
Yao Wei Tjong 姚伟忠
46285baf97 Refactor build scripts to group Urho3D specific build option.
Initial support of project configuration and generation via cmake-gui.
2014-04-05 00:20:56 +08:00
Lasse Öörni
67d603d8e5 Node transform space refactoring. Translate(), Rotate() and LookAt() functions take a transform space (local, parent or world). Translate() has a behavior change: default space is local, as that is most often used in eg. camera movement, and is consistent with the default for rotations (the earlier fixedAxis = false was same as local space). The redundant TranslateRelative() function is removed. Add RotateAround() function, which allows rotating around a pivot in either local, parent or world space. Closes #295. 2014-04-03 22:36:29 +03:00
Lasse Öörni
a70848e464 Fix Lua postupdate handler not being called. 2014-04-03 22:34:18 +03:00
Lasse Öörni
42265071a3 Added a multiplier+addition for depth bias on OpenGL ES platforms. Increased default constant depth bias of lights. 2014-04-03 11:22:40 +03:00
Lasse Öörni
2ac921de60 When editor is run from Urho3DPlayer, enable Lua if possible to allow editing Lua scripted scenes. Closes #294. 2014-04-03 10:45:24 +03:00
Aster Jian
88ca8a56b5 Remove AttributeAnimation.h from master. 2014-04-02 10:54:07 +08:00
Lasse Öörni
6be531d66f Set frustum size shader parameter as Vector3. 2014-04-02 01:33:19 +03:00
Lasse Öörni
8945322476 Fix spelling: ClipBoard -> Clipboard. Use the system clipboard by default in the editor. 2014-04-01 21:06:07 +03:00
Lasse Öörni
0d2879bbf0 Fix OpenGL build. 2014-04-01 20:06:50 +03:00
aster2013
e1a2c7a2bf Update AttributeAnimation.h 2014-04-01 23:31:05 +08:00
Lasse Öörni
ee9868e29e Refactor setting global & camera shader parameters to functions. Used both by Batch & View. Ensure that same parameters are set in both scene and quad (postprocess) rendering. Note that quad rendering still does not use the camera's real projection matrix to ensure stability. 2014-04-01 13:56:39 +03:00
Lasse Öörni
cf4c43d344 Added Serializer / Deserializer functions for reading & writing matrices. Added bool success parameter to Quaternion::FromLookRotation() and Node::LookAt(), as it can potentially give a NaN result (in which case the original rotation is kept). Optimized reading of math objects in Deserializer to avoid default construction. 2014-04-01 12:29:17 +03:00
Lasse Öörni
f7b99ecdee Added Matrix types to Variant. Added ToString() to Matrix types. Added Matrix getters/setters to XMLElement. Added ToMatrix string conversion functions. Added possibility to assign shader parameters from Matrix variants. Fixed missing setting of Color variant shader parameter on Direct3D9. 2014-03-31 23:32:06 +03:00
Lasse Öörni
2bedd953ce Fixes to sceneless renderpath on OpenGL. 2014-03-31 12:25:24 +03:00
Lasse Öörni
6bfcc28010 Allow a pass to be marked as SM3-only, so that rendering limitations can be defined as data-driven instead of hardcoding in the engine. Moved specular disable for SM2 shadowed pointlight from code to shaders. Mention in the documentation that some materials may be too complex for SM2 and dynamic shadows. 2014-03-31 01:17:00 +03:00
Lasse Öörni
1418fb7e83 Changed the SM2.0 tradeoffs to allow 4-sample shadow mapping and to verify that shaders again work on GPU's without hardware shadow compare (eg. Radeon 9800.) Removed unnecessary shader code & simplified the LitSolid & light volume shaders. 2014-03-30 20:27:15 +03:00
Lasse Öörni
c3425334a3 Switch forward light calculations back to world space instead of tangent space to avoid light attenuation bugs when TBN matrix is not orthogonal. Shader code becomes simpler and more similar between forward and deferred, and number of vertex shader variations is reduced, but disadvantage is a more complex pixel shader which requires disabling expensive features on SM2.0 to avoid exceeding the arithmetic instruction limit. Fix cube mapped point light displaying the cube map upside down. Closes #276. 2014-03-30 00:44:07 +02:00
Lasse Öörni
1838e604f3 Do more work in the ParseTextureUnitName() function to reduce duplicated code. 2014-03-29 23:47:17 +02:00
Lasse Öörni
6833f858dc If a view's renderpath has no scene passes, allow rendering it also when no scene, camera & octree are provided. Closes #267. 2014-03-29 00:25:36 +02:00
Lasse Öörni
212a3b34b2 Merge remote-tracking branch 'remotes/silverkorn/master' 2014-03-28 22:54:41 +02:00
aster2013
882a7d3929 Remove ContainerLuaAPI.pkg 2014-03-28 13:32:50 +08:00
aster2013
1ba3fe00fa Rename sensor to trigger. 2014-03-28 13:00:45 +08:00
Yao Wei Tjong 姚伟忠
b8368401fd Use alternative way to suppress CMP0022 warning. Closes 287. 2014-03-28 08:51:19 +08:00
Lasse Öörni
35195939c1 Exposed allowed screen orientations (effective on iOS only currently) and the flush GPU setting as engine startup parameters. 2014-03-28 00:23:31 +02:00
Danny B
e738209746 Added descriptions mapping for LuaScript packages' hooks.
In "ToDoxHook.lua":
- Added "getCurrentDirectory" function;
- Added process to fetch and map C++ headers' descriptions to Lua elements;
- [TODO] Write descriptions from Lua elements for Doxygen output.

In "ToZerobraneStudioHook.lua":
- Writes descriptions from Lua elements for ZerobraneStudio API file.
2014-03-27 16:29:40 -04:00
aster2013
0cfe56310a Use multi thread check Drawable2D visiblity. 2014-03-27 19:46:19 +08:00
aster2013
a47c9ebe32 Add visibility property in Drawable2D.[ci skip] 2014-03-27 19:46:18 +08:00
Yao Wei Tjong 姚伟忠
20edf417ce Fix LuaJIT search path which was broken after v2.0.3 update. 2014-03-27 14:09:40 +08:00
aster2013
c52d2e35d5 Delay call Drawable2D::GetVertices. 2014-03-27 13:25:53 +08:00
aster2013
252375abc1 Add material compare in Drawable2D. 2014-03-27 12:08:08 +08:00
Lasse Öörni
18217a0fdd Added UI hover start/end events. 2014-03-26 20:07:24 +02:00