Commit Graph

5243 Commits

Author SHA1 Message Date
ssinai1
6dfb25159f Fix skipped visible elements due to UI layout optimization. 2019-02-21 19:01:35 +08:00
Yao Wei Tjong 姚伟忠
2fd8e624ed
Minor code convention clean up. 2019-02-17 23:17:58 +08:00
urho3d-travis-ci
8fe943568e Travis CI: API documentation update at 2019-02-16 13:12:26 UTC.
[ci package]

Commit: d4cf8a9f05

Message: localization JSON file now supports simple key-value structure (#2359)

* localization JSON file now supports simple key-value structure

* docs updated, code refactoring

* minor fix

* AngelScript integration fixed
2019-02-16 13:12:26 +00:00
Arnis Lielturks
d4cf8a9f05
localization JSON file now supports simple key-value structure (#2359)
* localization JSON file now supports simple key-value structure

* docs updated, code refactoring

* minor fix

* AngelScript integration fixed
2019-02-16 14:42:01 +02:00
Y-way
32a4a50472
Make Audio system pause sound thread safe.
Close #2411
2019-01-15 00:31:41 +08:00
urho3d-travis-ci
a476f0c401 Travis CI: bump copyright to 2019. 2019-01-12 01:00:16 +00:00
Lasse Öörni
7ce360bf97 Fix missing bit shift in BatchQueue::SortFrontToBack2Pass(). Thanks to cftvgybhu549 from the Urho forum. 2019-01-12 08:49:00 +08:00
Y-way
30b5a97a14 Fix TiledMap LoadTileSet error 2018-12-17 22:59:39 +08:00
Yao Wei Tjong 姚伟忠
c9f2edcb4a
Minor documentation clean up to remove reference to kNet. 2018-12-12 23:37:44 +08:00
Yao Wei Tjong 姚伟忠
c9457e5bd4
Rename SQLite standalone target executable.
Related to #2399.
2018-12-09 19:52:17 +08:00
urho3d-travis-ci
a7dd3f9484 Travis CI: API documentation update at 2018-11-29 16:34:26 UTC.
[ci package]

Commit: 03d596526c

Message: For CI - update Doxyfile to suppress warnings from newer Doxygen version.
2018-11-29 16:34:26 +00:00
Yao Wei Tjong 姚伟忠
bfbcecec51
Add new particle emitter type for Lua binding. 2018-11-25 21:41:50 +08:00
Neal_Nicdao
b1c3ce30ec
Added new EmitterTypes
* Added SphereVolume, Cylinder, and Ring enum with calculations
 * Modified EditorParticle to incorporate new emitter shapes
2018-11-25 21:25:58 +08:00
Yao Wei Tjong 姚伟忠
729dc24b81
Fix unnecessary rebuild due to wrong include of dummy 'Precompiled.h'. 2018-11-17 22:37:25 +08:00
1vanK
af20b52364 c++11 style to disable copy constructor 2018-11-17 11:10:55 +08:00
Yao Wei Tjong 姚伟忠
651f345ad0
Fix 32-bit Linux native build. 2018-10-31 22:46:21 +08:00
Yao Wei Tjong 姚伟忠
3add6d4359
Add another RPATH entry for the tool executable in the build tree. 2018-10-22 22:05:38 +08:00
Yao Wei Tjong 姚伟忠
57bb8b7f29
Adjust RPATH to avoid hard-coded lib location entry in the build tree.
As such, the executable with SHARED lib type generated from the dockerized build environment is runnable in the host system out of the box.
2018-10-22 09:12:14 +08:00
Mateus Vendramini
954738f04f Fixing typo on NavigationMesh API 2018-10-15 08:30:31 +08:00
urho3d-travis-ci
fb34f088cf Travis CI: API documentation update at 2018-10-08 08:49:04 UTC.
[ci package]

Commit: dd8b41feac

Message: incoming/outgoing packet counter, last heard time logic added (#2380)

* incoming/outgoing packet counter, last heard time logic added

* typo fix, Connection::GetLastHeardTime is now non-const

* Lua and Angelscript bindings updated

* AngelScript typo fixed

* GetLastHeardTime updates
2018-10-08 08:49:04 +00:00
Arnis Lielturks
dd8b41feac
incoming/outgoing packet counter, last heard time logic added (#2380)
* incoming/outgoing packet counter, last heard time logic added

* typo fix, Connection::GetLastHeardTime is now non-const

* Lua and Angelscript bindings updated

* AngelScript typo fixed

* GetLastHeardTime updates
2018-10-08 11:37:57 +03:00
1vanK
cc25bef60e
Update Recast & Detour lib. 2018-09-20 22:17:20 +08:00
Yao Wei Tjong 姚伟忠
70ce6c4f8a
Minor code cleanup - dead code and sprintf type mistmatch. 2018-09-16 09:46:52 +08:00
Yao Wei Tjong 姚伟忠
20617e17b6
Allow Gradle build with Lua/LuaJIT enabled without global ninja-build. 2018-09-08 21:21:00 +08:00
Florastamine
86c2afb46a Log which adapter is used on OpenGL & D3D9 (#2370)
* Log used adapter for OpenGL

* Updated OpenGL code

* Also support querying adapter on D3D9.
2018-08-28 12:15:49 +08:00
urho3d-travis-ci
5da6d06e22 Travis CI: API documentation update at 2018-08-26 04:08:09 UTC.
[ci package]

Commit: 81d66be594

Message: Fix editor's OK button due to StringHash is now case-senstive.
2018-08-26 04:08:09 +00:00
Yao Wei Tjong 姚伟忠
81d66be594
Fix editor's OK button due to StringHash is now case-senstive. 2018-08-26 11:57:55 +08:00
Arnis Lielturks
2131d25e19
clear replicated nodes when connecting to server (#2364) 2018-08-23 14:53:18 +03:00
SuperWangKai
87e38f4d67 Log which adapter used for DX11 (#2365) 2018-08-23 12:56:21 +08:00
Yao Wei Tjong 姚伟忠
8ba6a36973
Adapt to AngelScript 2.33.0 WIP. 2018-08-22 18:29:16 +08:00
Yao Wei Tjong 姚伟忠
cdfd8d9826
Merge commit '13d333a33589a33421be2609bc56b05654e56fd2' into master. 2018-08-22 18:10:29 +08:00
urho3d-travis-ci
8edb8ac2cf Travis CI: API documentation update at 2018-08-15 14:57:27 UTC.
[ci package]

Commit: 4faf970643

Message: Minor cleanup and add script API bindings.
Close #2360
2018-08-15 14:57:27 +00:00
Yao Wei Tjong 姚伟忠
4faf970643
Minor cleanup and add script API bindings.
Close #2360
2018-08-15 22:27:03 +08:00
chenjie199234
c6350bbe44
Add an API named ToString() in JSONFile class. 2018-08-15 22:15:32 +08:00
urho3d-travis-ci
c391d13bab Travis CI: API documentation update at 2018-08-11 15:49:52 UTC.
[ci package]

Commit: a01132ca5f

Message: Update 3rd-party licences.
Close #2302
2018-08-11 15:49:52 +00:00
Yao Wei Tjong 姚伟忠
a01132ca5f
Update 3rd-party licences.
Close #2302
2018-08-11 22:28:09 +08:00
Yao Wei Tjong 姚伟忠
34f4ea1c77
Fix Android build using Gradle. 2018-08-11 22:28:02 +08:00
Yao Wei Tjong 姚伟忠
87d887718c
Fix MinGW build. 2018-08-11 20:40:33 +08:00
Yao Wei Tjong 姚伟忠
3b617083a1
Minor clean up on the Network subystem. 2018-08-11 20:40:33 +08:00
Yao Wei Tjong 姚伟忠
86064cb3dc Merge commit '7d9d1eba4c3e92c0f8ce93c7768e376f2ad252a0' as 'Source/ThirdParty/SLikeNet' 2018-08-11 20:35:55 +08:00
Yao Wei Tjong 姚伟忠
7d9d1eba4c Squashed 'Source/ThirdParty/SLikeNet/' content from commit a9e0c6f243
git-subtree-dir: Source/ThirdParty/SLikeNet
git-subtree-split: a9e0c6f243f698b2bc076a90701ff76c532513a6
2018-08-11 20:35:55 +08:00
Yao Wei Tjong 姚伟忠
77bb990ec5
Replace Source/ThirdParty/SLikeNet subdirectory with subtree. 2018-08-11 20:35:38 +08:00
Arnis Lielturks
e363036036
kNet replaced with SLikeNet (RakNet fork). 2018-08-11 20:35:09 +08:00
Yao Wei Tjong 姚伟忠
0fc21934f5
Cleanup CMake build scripts and documentation update.
Close #743.
2018-08-09 23:08:45 +08:00
Yao Wei Tjong 姚伟忠
d3508fc246
Fix initial gradle sync. 2018-08-06 21:46:00 +08:00
Yao Wei Tjong 姚伟忠
d827f5ebfb
Proper segregation between Gradle modules. 2018-08-06 21:46:00 +08:00
Yao Wei Tjong 姚伟忠
b238824f63
Bug fix that prevented Android app to be relaunched successfully.
Also tweak the Android sample launcher app to go back from MainActivity to LauncherActivity before exiting completely
in order to make it easier to launch many sample apps in a same session.
2018-08-06 21:46:00 +08:00
Yao Wei Tjong 姚伟忠
a513b325c0
Initial multi-module setup for Android build. 2018-08-06 21:46:00 +08:00
SuperWangKai
5dafd740e7 Fix DX11 DSV/RTV mismatch error when rendering UI to render target. 2018-07-30 12:07:00 +08:00
carnalis
fa4099c206 Fix to correctly log scratch buffer allocation 2018-07-26 08:26:57 +08:00
Eugene Kozlov
b0f2b5a94f Cleanup casts in FlagSet.
[cache clear]
2018-07-15 15:54:13 +03:00
urho3d-travis-ci
3d87d2e711 Travis CI: API documentation update at 2018-07-14 18:48:15 UTC.
[ci package]

Commit: a144206e27

Message: Update porting notes. Rename UpdateEvent::USE_NONE to UpdateEvent::USE_NO_EVENT.
2018-07-14 18:48:15 +00:00
Eugene Kozlov
a144206e27 Update porting notes. Rename UpdateEvent::USE_NONE to UpdateEvent::USE_NO_EVENT. 2018-07-14 18:17:33 +03:00
Eugene Kozlov
5d2109eb9d Non-functional code and comment cleanup. 2018-07-14 18:17:32 +03:00
Eugene Kozlov
4d8a0fd31c
Merge pull request #2336 from rokups/feature/flagset
Replace integer constants with enums and use FlagSet<Enum> for flags
2018-07-14 18:16:59 +03:00
Eugene Kozlov
d9442689cf Fix linter issues. 2018-07-10 02:17:24 +03:00
Eugene Kozlov
7cb72d451b Revert some changes in Serializable and flag sets. Fix Camera compilation.
[cache clear]
2018-07-09 11:51:05 +03:00
Alexey Rassikhin
4dfd230f55 Remove '-ffast-math' option.
Remove GCC 8.x check in Matrix3x4.h
2018-07-05 19:31:09 +08:00
Florastamine
17c4a1022d Updated GetOSVersion() 2018-06-24 18:38:01 +08:00
LordGolias
45793b8ae2 Fixed wrong number of rows in chat history of Sample 16_Chat. 2018-06-23 22:51:53 +02:00
LordGolias
dd9532de51 Commented out unused parameters. 2018-06-23 22:50:21 +02:00
Rokas Kupstys
d9d51b9c27 Rename ClearMode to ClearTarget. 2018-06-20 17:39:15 +03:00
Rokas Kupstys
bd2f4111e4 Converted constants in Camera.h to enum. This also includes fix for URHO3D_MAKE_MEMBER_ATTRIBUTE_ACCESSOR() to make it work with FlagSet<>. 2018-06-20 14:51:15 +03:00
Rokas Kupstys
b4dec95887 Rename ClearFlag to ClearMode and fix lua bindings. 2018-06-20 12:17:26 +03:00
Eugene Kozlov
3f86bad5b6 Get rid of explicit FlagSet<> usages. Minor FlagSet changes. 2018-06-20 02:04:32 +03:00
Eugene Kozlov
bcad960586 Fix AS bindings. 2018-06-20 01:54:31 +03:00
Eugene Kozlov
fa1524e14e Fix lua bindings. 2018-06-20 01:25:03 +03:00
Eugene Kozlov
82c5529295 Rename Quality to MaterialQuality. Revert AnimationTrack default ctor. Rename UseEvent to UpdateEvent. Make FlagSet casts more strict. Minor changes. 2018-06-20 01:24:37 +03:00
Rokas Kupstys
6ed3e46646 FlagSet<> update:
* Use URHO3D_FLAGSET() macro for enabling flagsets on enums.
* Use EnumFlags alias instead of FlagSet<Enum>.
* Naming changes.
2018-06-18 20:20:17 +03:00
Rokas Kupstys
966590d8e7 Use FlagSet<> for storing masks.
Author of FlagSet.h is Eugene Kozlov (https://github.com/eugeneko/).
2018-06-18 18:26:46 +03:00
Rokas Kupstys
dcbc0046c7 Re-enable suspending main loop when application is paused on android. Fixes #2328.
Previous behaviour allowed main loop to spin (at 10fps, as if window is minimized) while application was in background. This is both bad for battery life and also introduces a race condition where rapidly suspending and resuming application may get it into the state where application is resumed while some or most GPU objects are not recreated.
2018-06-17 19:06:51 +08:00
urho3d-travis-ci
dff13213e6 Travis CI: API documentation update at 2018-06-09 16:05:38 UTC.
[ci package]

Commit: 48bf1228aa

Message: Correct code comment.
Close #2315
2018-06-09 16:05:38 +00:00
Yao Wei Tjong 姚伟忠
48bf1228aa
Correct code comment.
Close #2315
2018-06-09 22:35:49 +08:00
Yao Wei Tjong 姚伟忠
e5b137af3b
Rename Color::TRANSPARENT constant to Color::TRANSPARENT_BLACK.
Close #2308
Close #2298
2018-06-09 22:26:59 +08:00
Yao Wei Tjong 姚伟忠
00f4847fd9
Conditionally remove unused code. 2018-06-09 19:35:44 +08:00
Yao Wei Tjong 姚伟忠
540450e917
Add more check as Clang also emits '__GNUC__' define.
[ci skip]
2018-06-09 19:02:22 +08:00
Yao Wei Tjong 姚伟忠
2f12b4d207
Quick fix for building using GCC 8.x compiler toolchain.
Close #2326
2018-06-09 17:30:45 +08:00
Eugene Kozlov
4862785ab7 Fix PackageTool build. 2018-06-04 18:05:16 +03:00
Eugene Kozlov
24cd09689a
Merge pull request #2323 from eugeneko/fix-web-occlusion
Add check for degenerate sub-triangles in OcclusionBuffer::DrawTriang…
2018-06-04 16:08:30 +03:00
Eugene Kozlov
47aba2aaa2
Merge pull request #2309 from eugeneko/hash-reverse
Add StringHash reverse support.
2018-06-03 15:12:42 +03:00
Eugene Kozlov
251f8d7dc8 Add check for degenerate sub-triangles in OcclusionBuffer::DrawTriangle2D. Fixes #2322. 2018-06-03 15:09:01 +03:00
Eugene Kozlov
bf91b675ea Revert "Revert me: Test Vector with non-copyable type."
This reverts commit 82cc60d974.
2018-06-03 12:51:08 +03:00
Eugene Kozlov
e78c1d7ff5
Merge pull request #2310 from eugeneko/move-containers
Make Urho3D.Containers move-friendly
2018-06-03 12:42:44 +03:00
Zhang Kaikai
db1e4fea66 Fixed the 2D rendering order makes the layer priority higher than the Z 2018-06-03 09:09:33 +08:00
Eugene Kozlov
9c25ad9f97 Rename Vector::Emplace to Vector::EmplaceBack. 2018-06-02 16:12:55 +03:00
Eugene Kozlov
b78992ba43 Fix crash in DX11 when current render target is passed into Graphics::SetTexture. 2018-05-26 19:17:09 +03:00
Eugene Kozlov
025714ec4d Change scope of URHO3D_HASH_DEBUG define. 2018-05-22 23:11:25 +03:00
Eugene Kozlov
e0b1283d48 Minor change in Vector::Push, fix Vector::Emplace. 2018-05-22 22:52:51 +03:00
Eugene Kozlov
06e3c6871f Fix linter error. 2018-05-08 22:20:08 +03:00
Eugene Kozlov
63ada2546f Fix shared build. 2018-05-07 14:58:04 +03:00
Eugene Kozlov
f4b00a1d54 Extract StringHash reverse mapping logic into StringHashRegister. Reuse it in event system. 2018-05-07 00:32:45 +03:00
Eugene Kozlov
5ce8f820f2 Minor fix in Variant::GetCustomPtr. 2018-05-07 00:09:54 +03:00
Eugene Kozlov
b75e1015bd Add Vector::Emplace. Fix HashMap::Populate signature. Disable MSVC warnings. 2018-05-03 00:56:09 +03:00
Eugene Kozlov
0304939fec Fix incorrect implementation of Vector::EraseSwap. 2018-05-01 21:48:22 +03:00
Eugene Kozlov
0ff4cb81c0 Optimize common execution path in Vector::Push. 2018-04-30 23:50:25 +03:00
Eugene Kozlov
82cc60d974 Revert me: Test Vector with non-copyable type. 2018-04-30 15:12:13 +03:00
Eugene Kozlov
9c069c91dd Make Urho3D.Containers move-friendly. 2018-04-30 14:28:53 +03:00
Eugene Kozlov
d0ce35d194 Add StringHash reverse support. 2018-04-29 19:58:10 +03:00
urho3d-travis-ci
7b67f9c813 Travis CI: API documentation update at 2018-04-08 17:15:28 UTC.
[ci package]

Commit: a673dc98b5

Message: Fix Lua API binding for RayCastSingleSegmented().
2018-04-08 17:15:28 +00:00
Yao Wei Tjong 姚伟忠
a673dc98b5
Fix Lua API binding for RayCastSingleSegmented(). 2018-04-08 23:40:15 +08:00
urho3d-travis-ci
7af464c0ef Travis CI: API documentation update at 2018-04-08 14:32:33 UTC.
[ci package]

Commit: 6241c9623e

Message: Add PCH workaround include.
2018-04-08 14:32:33 +00:00
Yao Wei Tjong 姚伟忠
6241c9623e
Add PCH workaround include. 2018-04-08 22:12:35 +08:00
Yao Wei Tjong 姚伟忠
7fce254c22
Fix the API binding and minor code cleanup.
Close #2093
2018-04-08 22:12:12 +08:00
Enhex
8ecbfad065
renamed to Selectable to UISelectable 2018-04-08 21:13:29 +08:00
Enhex
91af42eca9
setters/getters.
override instead of virtual.
2018-04-08 21:13:29 +08:00
Enhex
d4231e0d13
use nullptr instead of 0 2018-04-08 21:13:29 +08:00
Enhex
b09b42e4d0
Created Selectable UI element 2018-04-08 21:13:28 +08:00
urho3d-travis-ci
b99aae5772 Travis CI: API documentation update at 2018-04-07 18:54:39 UTC.
[ci package]

Commit: 6395a96d48

Message: Fixed segmented raycast missing collisions by overlapping ray segments.
2018-04-07 18:54:39 +00:00
Enhex
6395a96d48 Fixed segmented raycast missing collisions by overlapping ray segments. 2018-04-07 20:35:21 +03:00
Eugene Kozlov
1587df868c Fix incorrect rounding in PhysicsWorld::RaycastSingleSegmented. Add some consts. 2018-04-07 20:35:21 +03:00
Eugene Kozlov
cfb56e54d8 Use non-zero default edge offset for Sprite2D. 2018-04-03 21:45:28 +03:00
urho3d-travis-ci
9857472148 Travis CI: API documentation update at 2018-04-01 03:25:15 UTC.
[ci package]

Commit: 21b1c48da0

Message: Fix priority parameter not correctly passed.
Credit to UnickSoft for pointing this out.
Fix #2283
2018-04-01 03:25:15 +00:00
Yao Wei Tjong 姚伟忠
21b1c48da0
Fix priority parameter not correctly passed.
Credit to UnickSoft for pointing this out.
Fix #2283
2018-04-01 11:03:06 +08:00
Yao Wei Tjong 姚伟忠
006a7050af
Minor cleanup for code reuse. 2018-04-01 10:57:21 +08:00
Lasse Öörni
a8d3c4a434
Fix resolve FBOs not getting properly cleared on voluntary context loss. Closes #2286. 2018-04-01 10:54:42 +08:00
Yao Wei Tjong 姚伟忠
ae537f1e18
Clang-Tidy - bugprone-undefined-memory-manipulation.
Close #2282
2018-04-01 10:48:48 +08:00
Yao Wei Tjong 姚伟忠
93460b3d12
Clang-Tidy - hicpp-member-init. 2018-04-01 10:48:48 +08:00
Yao Wei Tjong 姚伟忠
66a02d9b03
Clang-Tidy - readability-static-accessed-through-instance. 2018-04-01 10:48:47 +08:00
Yao Wei Tjong 姚伟忠
a83104bda2
Clang-Tidy - hicpp-no-malloc. 2018-04-01 10:48:47 +08:00
Yao Wei Tjong 姚伟忠
db2f6c9c33
Clang-Tidy - bugprone-integer-division. 2018-04-01 10:48:47 +08:00
Yao Wei Tjong 姚伟忠
d43bf1b3d6
Clang-Tidy - hicpp-signed-bitwise.
However, this check is disabled because we could not cleanly modify the code everywhere to make them pass.
2018-04-01 10:48:47 +08:00
Uchechukwu Nwokoma
03d8c40252 Added URHO3D_URHO2D guard that seems omitted 2018-03-29 23:47:38 +08:00
Yao Wei Tjong 姚伟忠
7508b9003b
Fix wrong bitwise shift operation.
Close #2279.
2018-03-24 00:49:51 +08:00
Yao Wei Tjong 姚伟忠
64b69474bc
Repeat the release resource loop as many times as necessary.
Fix #2261.
2018-03-18 00:19:36 +08:00
Yao Wei Tjong 姚伟忠
9eed60fc73
Keep the SDL_main symbol around to fix the Android Static build config.
Fix #2267 [ci only: Android, OSX] [skip appveyor]
2018-03-17 16:44:44 +08:00
Yao Wei Tjong 姚伟忠
291a4d3d3a
Update build script to add the search path for the generated header. 2018-03-15 23:32:06 +08:00
Yao Wei Tjong 姚伟忠
5b5fa8c268
Merge commit '19fe863b0eda29a0fa5180bede2b2a83d621113e' into master. 2018-03-15 23:31:01 +08:00
urho3d-travis-ci
7823fc6626 Travis CI: API documentation update at 2018-03-06 12:30:46 UTC.
[ci package]

Commit: 4ee6b14aac

Message: Merge pull request #2231 from eugeneko/ribbon-trail-update

Add RibbonTrail base velocity.
2018-03-06 12:30:46 +00:00
Eugene Kozlov
4ee6b14aac
Merge pull request #2231 from eugeneko/ribbon-trail-update
Add RibbonTrail base velocity.
2018-03-06 14:56:09 +03:00
Eugene Kozlov
f6d78924a8 Fix Node::GetComponent shadowing for Scene Lua binding. 2018-03-03 19:06:02 +03:00
Eugene Kozlov
9a6e1fe598 Make LuaFunction::PushLuaTable able to lookup nested tables. 2018-03-01 22:17:52 +03:00
Henrik Heino
b65423cc6e kNet: Prevent SIGPIPE signal when other end closes connection.
Added Lasse Öörni's name too, as he has also modified Socket.cpp for Urho3D.
2018-02-26 09:36:24 +08:00
Yao Wei Tjong 姚伟忠
6d08bcd8c0
Clang-Tidy - hicpp-member-init. 2018-02-25 23:32:38 +08:00
Zhang Kaikai
75d536793e
Fixed can't save ValueAnimation by SaveJSON() and can't load ValueAnimation by LoadJSON() 2018-02-25 23:20:01 +08:00
Yao Wei Tjong 姚伟忠
b4f3b19d54
Fix the header include for ScrollBar class.
Close #2262.
2018-02-20 00:54:05 +08:00
Sandu Liviu Catalin
93d4b18390
The constant random access iterator was not treating the pointer as const.
Close #2258.
2018-02-13 02:05:51 +08:00
JSandusky
9ae2e2b5fc Force mip-levels to 1 when texture usage is dynamic 2018-02-11 14:38:19 +08:00
JSandusky
c4a04456f4 On OpenGL set requested levels to 1 when texture usage is dynamic 2018-02-11 14:38:19 +08:00
Yao Wei Tjong 姚伟忠
a002247c68
Remove redundant header and apply modernize-use-auto for the remaining.
Close #2256
2018-02-10 01:19:16 +08:00
JSandusky
b3d2573eb5 On Windows use SDL event watch to repaint the window while resizing 2018-02-09 02:53:45 -05:00
Ricardo Abreu
1942bd5562 add and employ ShaderParameter constructor for D3D9 case 2018-02-07 05:46:01 +08:00
Ricardo Abreu
3505de224a add and employ ShaderParameter constructor for D3D11 case 2018-02-07 05:46:01 +08:00
Ricardo Abreu
5eea074280 add and employ ShaderParameter constructor for OpenGL use-case and zero-initialize remaining attributes by default - fixes coverity with CID 127650 2018-02-07 05:46:01 +08:00
Yao Wei Tjong 姚伟忠
3a76654c44
Demonstrate how to bring to front an UI-element.
Close #2251.
2018-02-04 16:11:50 +08:00
urho3d-travis-ci
a5e4e52498 Travis CI: API documentation update at 2018-02-04 04:32:56 UTC.
[ci package]

Commit: 8bef420d97

Message: Update contributor list.
Close #2250
Close #2223
2018-02-04 04:32:56 +00:00
pmatsula
f1fbe49383
Switched all gid variables from int to unsigned. 2018-02-04 12:04:36 +08:00
pmatsula
edd3bd9b67
Fixed a serious bug with flipping X and Y (tested), reverted some occasional changes to sample data. 2018-02-04 12:04:35 +08:00
pmatsula
19f6c148b6
Fixed a serious bug with flipping X and Y (after testing) 2018-02-04 12:04:35 +08:00
pmatsula
0b36ad6633
Added Lua and AngelScript bindings, refactored according to coding style. 2018-02-04 12:04:35 +08:00
pmatsula
7852abd881
Implemented StaticSprite2D flipping diagonally (not tested) 2018-02-04 12:04:35 +08:00
pmatsula
ce04549e25
Implemented TileMapObject2D flipping horizontally and vertically, fixed a bug with bit shift 2018-02-04 12:04:35 +08:00
pmatsula
13c917fdad
Implemented Tile2D flipping horizontally and vertically 2018-02-04 12:04:34 +08:00
Yao Wei Tjong 姚伟忠
06e724a5c7
Remove commit SHA1 in LibCpuId version string as MinGW doesn't like it.
[ci only: master, MinGW]
2018-02-04 00:51:46 +08:00
Yao Wei Tjong 姚伟忠
c771aec304
Clean up redundant files from LibCpuId subtree. 2018-02-03 23:55:48 +08:00
Yao Wei Tjong 姚伟忠
da01a0d5b1 Merge commit '987280793337c6caedaa65233b0611999614ab3c' as 'Source/ThirdParty/LibCpuId' 2018-02-03 23:46:25 +08:00
Yao Wei Tjong 姚伟忠
9722dd6011
Replace Source/ThirdParty/LibCpuId subdirectory with subtree. 2018-02-03 23:44:11 +08:00
urho3d-travis-ci
cb59ca840f Travis CI: API documentation update at 2018-02-03 03:40:56 UTC.
[ci package]

Commit: cda6440685

Message: Update contributor list.
Close #2249.
2018-02-03 03:40:56 +00:00
Nicholas Farshidmehr
d58bca2e66
Declare all permutations of coordinate systems. 2018-02-03 11:18:31 +08:00
Nicholas Farshidmehr
5d80485323
Add angelscript binding. 2018-02-03 11:18:31 +08:00
Nicholas Farshidmehr
3a44a98ed2
Add lua binding. 2018-02-03 11:18:31 +08:00
Nicholas Farshidmehr
5b6b5ae9fa
Make GetCoordinateSystem() const and move it to the header. 2018-02-03 11:18:31 +08:00
Nicholas Farshidmehr
38e008ea5a
Make improvements to coordinate system code. 2018-02-03 11:18:31 +08:00
Nicholas Farshidmehr
cb6fe9b896
Allow arbitrary coordinate systems for RaycastVehicle. 2018-02-03 11:18:30 +08:00
Yao Wei Tjong 姚伟忠
c2ca48c410
Merge commit 'b597fc956489b2fb3fc651986db0de0cc41cfc32'. 2018-02-03 11:12:08 +08:00
Sandu Liviu Catalin
4740e142b3
Update the STB Image Write library. This removes the dependency on the Jo_JPEG library since it was integrated into STB Image Writte (github.com/nothings/stb/pull/432). 2018-02-03 10:46:06 +08:00
Ricardo Abreu
38feb91078 use explicit default initialization in TrailPoint in-class member initializers; add periods to comments. 2018-02-01 18:59:01 +08:00
Ricardo Abreu
29dce85939 move scalar initializers to TrailPoint declaration; make TrailPoint's default constructor explicitly-defaulted 2018-02-01 18:59:01 +08:00
Ricardo Abreu
10734bad2c fix RibbonTrail coverity issues; CID: 127543, 216057, 216060, 216066 2018-02-01 18:59:01 +08:00
urho3d-travis-ci
952ecf6c96 Travis CI: API documentation update at 2018-01-28 05:24:14 UTC.
[ci package]

Commit: 787dc118bb

Message: Minor refactoring and binding fixes.
Close #2235.
2018-01-28 05:24:14 +00:00
Yao Wei Tjong 姚伟忠
787dc118bb Minor refactoring and binding fixes.
Close #2235.
2018-01-28 13:13:51 +08:00
Konstantin Guschin
9f926d02fa Added SetSpriteTextureEdgeOffset method for TmxFile2D. 2018-01-28 12:26:17 +08:00
urho3d-travis-ci
b731e5a567 Travis CI: API documentation update at 2018-01-27 23:53:07 UTC.
[ci package]

Commit: 80668bf125

Message: Add Scene::IsReplicatedID() static helper method for code reuse.
Modify the Angelscript binding of the Component::IsReplicated() to use asMETHODPR macro to keep VS happy.
2018-01-27 23:53:07 +00:00
Yao Wei Tjong 姚伟忠
80668bf125 Add Scene::IsReplicatedID() static helper method for code reuse.
Modify the Angelscript binding of the Component::IsReplicated() to use asMETHODPR macro to keep VS happy.
2018-01-28 07:38:58 +08:00
urho3d-travis-ci
28a1b47eb0 Travis CI: API documentation update at 2018-01-27 16:25:41 UTC.
[ci package]

Commit: 23a696676d

Message: Add IsReplicated() method for Node and Component classes.
Close #2211.
2018-01-27 16:25:41 +00:00
Yao Wei Tjong 姚伟忠
23a696676d Add IsReplicated() method for Node and Component classes.
Close #2211.
2018-01-28 00:11:31 +08:00
Yao Wei Tjong 姚伟忠
0de9d15ada Skip sending scene-specific events when node is outside of a scene.
Credit to lezak for pointing this out. Fix #2230.
2018-01-27 22:25:39 +08:00
Yao Wei Tjong 姚伟忠
bab0216bf1 Reset the head after clearing the linked list.
Credit to nchoiset for reporting this issue. Fix #2244.
2018-01-27 09:53:57 +08:00
urho3d-travis-ci
2045d7a22d Travis CI: API documentation update at 2018-01-26 00:40:51 UTC.
[ci package]

Commit: d368227648

Message: Minor formatting and modernizing the code.
Close #2214.
2018-01-26 00:40:51 +00:00
Yao Wei Tjong 姚伟忠
d368227648 Minor formatting and modernizing the code.
Close #2214.
2018-01-26 07:56:25 +08:00
Ricardo Abreu
c6a6598764 Add stretchable sprite component and corresponding sample. 2018-01-26 06:57:23 +08:00
Yao Wei Tjong 姚伟忠
c277e7fd01 Rinse and repeat using Clang-Tidy 4.0 and Clion. 2018-01-26 06:55:09 +08:00
lieff
1fcfbf0fed fix double it++ 2018-01-25 14:43:49 +03:00
urho3d-travis-ci
89476f7787 Travis CI: API documentation update at 2018-01-24 00:54:43 UTC.
[ci package]

Commit: f1c1f5aa42

Message: For CI - setup the lint stage on the primary CI.
2018-01-24 00:54:43 +00:00
Yao Wei Tjong 姚伟忠
f1c1f5aa42 For CI - setup the lint stage on the primary CI. 2018-01-24 02:06:23 +08:00
Yao Wei Tjong 姚伟忠
29fed24492 Rinse and repeat by invoking clang-tidy (v3.9) from CLI directly.
It appears that Clion's modified version of the clang-tidy does not detect and fix all the issues.
2018-01-22 23:34:16 +08:00
Yao Wei Tjong 姚伟忠
20eeec2b84 Clang-Tidy - partial revert for cert-err58-cpp. 2018-01-22 23:34:16 +08:00
Yao Wei Tjong 姚伟忠
628d321d05 Clang-Tidy - readability-inconsistent-declaration-parameter-name. 2018-01-20 23:52:03 +08:00
Yao Wei Tjong 姚伟忠
49e0e2122d Clang-Tidy - readability-non-const-parameter. 2018-01-20 23:52:03 +08:00
Yao Wei Tjong 姚伟忠
2435a523d7 Clang-Tidy - readability-misleading-indentation, actually it's a bug. 2018-01-20 23:52:03 +08:00
Yao Wei Tjong 姚伟忠
f15712ba24 Clang-Tidy - performance-unnecessary-value-param. 2018-01-20 23:52:03 +08:00
Yao Wei Tjong 姚伟忠
f7ad9b138e Clang-Tidy - performance-unnecessary-copy-initialization. 2018-01-20 23:52:03 +08:00
Yao Wei Tjong 姚伟忠
1156ebfcec Clang-Tidy - cert-flp30-c. 2018-01-20 23:52:03 +08:00
Lasse Öörni
c13e55508a Revert making substitute rendertargets multisampled if the original rendertarget is. Fixes #2232. (#2236) 2018-01-15 01:40:42 +08:00
Eugene Kozlov
9ffaacdfdd
Merge pull request #2229 from eugeneko/master
Remove misplace explicits from smart pointers.
2018-01-10 16:38:14 +03:00
Eugene Kozlov
69550b5203 Remove misplace explicits from smart pointers. 2018-01-07 14:08:43 +03:00
Yao Wei Tjong 姚伟忠
4af4148048 Misc. bug fixes. Close #2227.
[cache clear]
2018-01-07 16:46:30 +08:00
Eugene Kozlov
8e947952d6 Add RibbonTrail base velocity. 2018-01-05 01:31:12 +03:00
Yao Wei Tjong 姚伟忠
7b4dab3783 Change Audio class to optionally use SDL's internal audio stream.
Close #2215.
2018-01-04 16:02:37 +08:00
Eugene Kozlov
136b84e351
Merge pull request #2194 from SirNate0/script-enum-attributes
ScriptInstance Enum Attributes
2018-01-03 00:27:42 +03:00
urho3d-travis-ci
70049ba582 Travis CI: bump copyright to 2018.
[cache clear]
2018-01-01 05:35:37 +00:00
Yao Wei Tjong 姚伟忠
ad9c6594d1 Fix web build on Windows host system.
Close #2224.
2018-01-01 13:11:05 +08:00
urho3d-travis-ci
53aba6a523 Travis CI: API documentation update at 2017-12-31 11:30:19 UTC.
[ci package]

Commit: 557b7621b4

Message: Add noexcept specifier for the rest of value classes for consistency.
2017-12-31 11:30:19 +00:00
Yao Wei Tjong 姚伟忠
557b7621b4 Add noexcept specifier for the rest of value classes for consistency. 2017-12-31 15:38:10 +08:00
Yao Wei Tjong 姚伟忠
56f956d591 Attempt to workaround the 'noexcept' ICE on old MinGW version. 2017-12-31 15:38:10 +08:00
Yao Wei Tjong 姚伟忠
e2ecc52adc Clang-Tidy - cert-err58-cpp (WIP). 2017-12-31 15:38:09 +08:00
Yao Wei Tjong 姚伟忠
2b493dc3dd Add NOLINT for types that we consider can be used interchangebly.
Fix the rest of the build error by calling constructor explicitly.
Related to commit d6eb307e34
2017-12-31 15:38:09 +08:00
Yao Wei Tjong 姚伟忠
d6eb307e34 Clang-Tidy - google-explicit-constructor. 2017-12-31 13:48:28 +08:00
Yao Wei Tjong 姚伟忠
f82ea40480 Clang-Tidy - google-default-arguments.
Refactor StaticMode::GetMaterial() virtual method.
2017-12-31 13:48:27 +08:00
Yao Wei Tjong 姚伟忠
c29cb530b6 Clang-Tidy - google-default-arguments.
Refactor Serializable::Load(), Seriazable::LoadXML(), and Serializable::LoadJSON() virtual methods.
2017-12-31 13:48:27 +08:00
Yao Wei Tjong 姚伟忠
c3f1eeb9f7 Add NOLINT to prevent false positive from modernize-use-bool-literals. 2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
a5c2e95b15 Add NOLINT to prevent false positive from modernize-redundant-void-arg.
The "void" keyword being flagged up in this case cannot be actually removed, so this is really a bug in the check in question to confuse "typeid" as a function.
2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
f2a7fb9aa8 Add NOLINT to prevent false positive from modernize-use-equals-default.
Minor refactor to rearrange the union member of the VariantValue class separating the trivial and non-trivial members.
2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
40516e48c9 Add macro for checking the compiler's C++11 type trait templates.
Modify angelscript.h header file to use our custom compiler define based on the check result to cater for pre-standard Clang compiler toolchain.
2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
845cf45c28 Fix AngelScript binding for GCC/Clang compiler toolchains.
Related to modernize-use-equals-default.
2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
c2fcc8decb Clang-tidy - modernize-use-equals-delete.
Deleted member function should be public.
2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
c999210676 Clang-Tidy - modernize-use-equals-delete. 2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
d2b9271f05 Clang-Tidy - modernize-use-using. 2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
dc384c1bec Quick fix for Android-CI build.
Related to modernize-use-equals-default.
2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
c99c5fbf64 Clang-Tidy - modernize-use-equals-default. 2017-12-31 13:48:26 +08:00
Yao Wei Tjong 姚伟忠
c8bc642020 Clang-Tidy - modernize-use-nullptr. 2017-12-31 13:48:25 +08:00
Yao Wei Tjong 姚伟忠
0f3d3a2621 Clang-Tidy - modernize-use-bool-literals. 2017-12-31 13:48:25 +08:00
Yao Wei Tjong 姚伟忠
2e963e7130 Minor refactor to avoid the explicit static_cast. 2017-12-31 13:48:25 +08:00
Yao Wei Tjong 姚伟忠
d8a438b169 Clang-Tidy - modernize-return-braced-init-list. 2017-12-31 13:48:25 +08:00
Yao Wei Tjong 姚伟忠
d23ee35938 Clang-Tidy - modernize-pass-by-value. 2017-12-31 13:48:25 +08:00
Yao Wei Tjong 姚伟忠
617b2d8cf7 Minor refactor to manually rename the range-based-for-loop index. 2017-12-31 13:48:25 +08:00
Yao Wei Tjong 姚伟忠
446247fa8c Clang-Tidy - modernize-loop-convert. 2017-12-31 13:48:08 +08:00
Yao Wei Tjong 姚伟忠
4ff9580f06 Clang-Tidy - modernize-deprecated-headers. 2017-12-31 12:46:27 +08:00
Yao Wei Tjong 姚伟忠
ca97fd9b9b Clang-Tidy - modernize-use-auto. 2017-12-31 12:46:26 +08:00
Yao Wei Tjong 姚伟忠
5e89e566e6 Clang-Tidy - modernize-use-override. 2017-12-31 12:11:09 +08:00
urho3d-travis-ci
18682ce75d Travis CI: API documentation update at 2017-12-24 10:33:33 UTC.
[ci package]

Commit: 21389b73bc

Message: Merge pull request #2207 from eugeneko/master

Add some Skeleton and Math helper functions.
2017-12-24 10:33:33 +00:00
Eugene Kozlov
21389b73bc
Merge pull request #2207 from eugeneko/master
Add some Skeleton and Math helper functions.
2017-12-24 12:42:49 +03:00
Eugene Kozlov
04519952a1
Merge pull request #2202 from TrevorCash/feature/doubleclickdist
added UI::SetMaxDoubleClickDist and UI::GetMaxDoubleClickDist
2017-12-24 12:42:21 +03:00
Eugene Kozlov
7ed2aa7a36 Fix AS binding for Vector3::ProjectOntoLine. 2017-12-24 12:41:32 +03:00
TrevorCash
876ad35a10
Comment Changes 2017-12-20 08:21:59 -07:00
Eugene Kozlov
91f56236b7 Use M_MAX_UNSIGNED instead of number of bones in Skeleton::GetBoneIndex. Add bindings. 2017-12-17 21:32:30 +03:00
Yao Wei Tjong 姚伟忠
28e4c64bfc Remove "execute" permission in the source files.
[ci skip]
2017-12-17 09:37:10 +08:00
Eugene Kozlov
2c773e5bd5 Add Vector3::DistanceToPoint and DistanceToPlane math functions. 2017-12-17 01:57:27 +03:00
Eugene Kozlov
c740dffc30 Add Vector3::ProjectOntoPlane and ProjectOntoLine math functions. 2017-12-17 01:44:01 +03:00
Eugene Kozlov
2c5624f5ca Add Skeleton::GetBoneIndex and GetBoneParent helper functions. Add ValueAnimation::GetKeyFrames. 2017-12-17 01:11:36 +03:00
Yao Wei Tjong 姚伟忠
cc5eccec1b Fix RPI build, could not have khronos in the header search path. 2017-12-17 02:03:18 +08:00
Yao Wei Tjong 姚伟忠
2af82c6eff Bug fix to allow build with appletvsimulator and iphonesimulator SDKs. 2017-12-17 01:51:32 +08:00
Yao Wei Tjong 姚伟忠
b4732cf555 Fix Android build. Starting to use Java 8. 2017-12-17 01:51:32 +08:00
Yao Wei Tjong 姚伟忠
9b7ae13095 Fix the mistake when merging the custom changes. 2017-12-17 01:51:32 +08:00
Yao Wei Tjong 姚伟忠
afae5cae35 Remove the custom bug fix for SDL_x11opengl.c as SDL has fixed it. 2017-12-17 01:51:32 +08:00
Yao Wei Tjong 姚伟忠
b2f8935cf9 Fix SDL assert due to SDL window ops called before SDL window creation. 2017-12-17 01:51:32 +08:00
Yao Wei Tjong 姚伟忠
3c692181bc Move the workaround to the FindDirectX.cmake module.
Don't need to add the define via CMake anymore as the new SDL 2.0.7 header now has it baked in.
2017-12-17 01:51:31 +08:00
Yao Wei Tjong 姚伟忠
68cea3a1e7 Remove SDL2Config.cmake. 2017-12-17 01:51:31 +08:00
Yao Wei Tjong 姚伟忠
1cc32beff6 Merge commit '28a8bc01ddef814b654840d30f1cc07651cc347a' into master. 2017-12-17 01:48:20 +08:00
2gitcans
83960fe2e8 Merge branch 'master' into feature/doubleclickdist 2017-12-15 21:04:47 -07:00
Yao Wei Tjong 姚伟忠
bf9629144a Suppress C++11 warning on a compiler define. 2017-12-16 08:12:35 +08:00
Yao Wei Tjong 姚伟忠
8fe15fab49 Set compiler define to indicate iOS does not have system() function. 2017-12-16 08:09:51 +08:00
Yao Wei Tjong 姚伟忠
860922136b Fix iOS build to support 11.x deployment target.
Close #2190.
2017-12-15 23:32:34 +08:00
SirNate0
b9f39755db Minor fixes: cleaning up comments, variable initilization, early return 2017-12-12 21:17:53 -06:00
2gitcans
33c495f9c0 removed unused parameter from UI::SendDoubleClickEvent 2017-12-12 17:05:07 -07:00
2gitcans
9ef9300ada Use M_MARGE_VALUE instead of 99999.0f 2017-12-10 17:43:30 -07:00
2gitcans
135085714d formating correction 2017-12-10 15:45:43 -07:00
2gitcans
a411214e7c Removed Tabs, replaced FLT_MAX with large float. Capitalized event params 2017-12-10 15:29:34 -07:00
2gitcans
b8f6d0061a Merge branch 'enhancement/doubleclickinfo' into feature/doubleclickdist 2017-12-10 14:21:53 -07:00
2gitcans
25b4d9cf0d addded Lua bindings 2017-12-10 14:21:25 -07:00
2gitcans
6e0caa1341 Added angelscript api calls 2017-12-10 14:18:42 -07:00
2gitcans
00b103b5d6 Added missing distance check to the end of ProcessClickBegin. Seperate private function for dispaching double click events and added position of beggining click to double click events. 2017-12-10 14:13:32 -07:00
2gitcans
e78e3ab165 added UI::SetMaxDoubleClickDist and UI::GetMaxDoubpleClickDist 2017-12-10 13:34:07 -07:00
SirNate0
8ef31d75bb Added enum support for ScriptInstance attributes. Presently names are cached in the Script class. 2017-12-03 15:45:49 -06:00
Eugene Kozlov
54ed4c917f
Merge pull request #2176 from thesquib/2ddemos
Updated 2D samples from pull request #641
2017-12-02 20:33:18 +03:00
Eugene Kozlov
2ae6c6b85f
Merge pull request #2185 from rokups/update-3D-UI
3D UI cleanup and update
2017-12-02 20:31:24 +03:00
Eugene Kozlov
8bb8aa28e8 Minor changes. 2017-12-02 17:53:50 +03:00
Rokas Kupstys
4571e9ba20 Hide UIElement3D from public API, clean up UIElement3D and UIComponent.
`UIElement3D` is no longer in public API. This prompted addition of `UIComponent::SetViewportIndex(unsigned index)` API for controlling which viewport is used for UI input mapping. If component does not belong to a node then index will be cached and used when component is added to a node. Not setting viewport index or setting invalid index will result in use of viewport at index 0.

`UIElement3D` no longer holds `UIComponent` pointer. Instead it holds `Node` pointer and obtains `Scene` and `StaticModel` directly from the model. This allows model to be removed and re-added without breaking. Note that after re-adding (likely new) `StaticModel` it is user's responsibility to set material returned by `UIComponent` to a new `StaticModel`.

`UIElement3D` no longer caches model pointer if component does not own the model. As a result of that flag `isStaticModelOwned_` was removed.

Swapped protected members and methods in `UIComponent` to fit style guidelines.
2017-11-26 20:47:42 +02:00
Rokas Kupstys
a27620bae2 Rename UI::SetRenderTexture() to UI:SetElementRenderTexture(). 2017-11-25 18:39:54 +02:00
Eugene Kozlov
26ff4fce30 Fix AssImp compilation with VS 2017. Remove cmake_vs2013.bat. Closes #2191. 2017-11-25 09:04:41 +03:00
Eugene Kozlov
2711d7b73f Update contributor list. Remove unnecessary casts. 2017-11-24 23:24:00 +03:00
urho3d-travis-ci
70b8fc7609 Travis CI: API documentation update at 2017-11-24 20:15:29 UTC.
[ci package]

Commit: e9c72fac33

Message: Merge pull request #2184 from hsnabn/color-fromuint

Add Color::FromUInt.
2017-11-24 20:15:29 +00:00
thesquib
7acefc3d88 Setup tests correctly in CMakeLists 2017-11-23 23:04:08 +13:00
thesquib
b46db86f24 Updated for current Urho3D, modified isometric demo to include interactions similar to the 2d platformer. 2017-11-23 23:01:51 +13:00
Mike3D
e7ff66e6d7 Added 2 Urho2D samples (isometric demo and platformer) 2017-11-23 23:01:50 +13:00
Rokas Kupstys
c5c560e759 3D UI cleanup and update
Turns out 3D UI implementation was not flexible enough. This change allows ultimate freedom by splitting up responsibilities correctly.

UIComponent is no longer responsible for storing batches and vertex data. This information was moved to new `RenderToTextureData` struct inside `UI` subsystem. `UI` and `UIComponent` are no longer friends of each other.

New class `UIElement3D` was created. It is used as root UI element of UI rendered in a 3D scene. It implements `ScreenToElement()` method which is used for translating screen coordinates to element coordinates. Previously `UIComponent` did translation of these coordinates. `UIElement3D::ElementToScreen()` is not implemented at this time and returns `{-1, -1}` (invalid coordinates). It is also possible to set a custom viewport to root element of `UIComponent` and this viewport will be used for processing user input.

In order to render UIElement to a texture it is enough to call SetRenderTexture(texture), where texture is set up as `TEXTURE_RENDERTARGET`. In order to properly support input of `UIElement` rendered to a texture user should subclass `UIElement` and implement `ScreenToElement()` method which properly translates global screen coordinates to local element coordinates.

New API:
* UIElement::SetRenderTexture(Texture2D*)
* UI::SetRenderTexture(UIElement*, Texture2D*)
2017-11-22 16:19:06 +02:00
Aban Hussain
16da4de876 Color::FromUInt: Divide by float to avoid rounding issues. 2017-11-22 02:41:24 +05:00
Aban Hussain
ecb888f941 Add Color::FromUInt to Lua and AngelScript APIs. 2017-11-22 02:25:22 +05:00
Aban Hussain
3d7e8aba02 Add FromUInt function to Color. 2017-11-22 02:24:54 +05:00
Eugene Kozlov
fce50003d2 Revert initial signature of Object::IsInstanceOf. Add Object::Cast instead. 2017-11-20 23:18:54 +03:00
urho3d-travis-ci
9061e26157 Travis CI: API documentation update at 2017-11-19 22:16:36 UTC.
[ci package]

Commit: 28734f6a1c

Message: Merge pull request #2177 from eugeneko/master

Misc fixes and features #2
2017-11-19 22:16:36 +00:00
Eugene Kozlov
28734f6a1c
Merge pull request #2177 from eugeneko/master
Misc fixes and features #2
2017-11-20 00:25:06 +03:00
Eugene Kozlov
7b60ab1724 Rename Variant custom type strings. 2017-11-19 15:41:54 +03:00
Eugene Kozlov
65253d48c8 Make Object::IsInstanceOf return tested type. 2017-11-19 15:41:31 +03:00
Eugene Kozlov
90f4cf8b8d Add template version of Context::RegisterSubsystem. 2017-11-19 15:38:51 +03:00
Eugene Kozlov
8809c05278 Fix crash when GImpactMesh is collided with TriangleMesh. Fixes #2172 2017-11-19 15:38:14 +03:00
Eugene Kozlov
abf556c66a Hide added item in hierarchy ListView if parent item is collapsed. 2017-11-19 15:35:49 +03:00
Eugene Kozlov
7b036b57af Add allocation-less version of Texture2D::GetImage. 2017-11-19 15:34:34 +03:00
Eugene Kozlov
ee77457006 Add UIElement::IsChildOf helper function. 2017-11-19 15:33:25 +03:00
Eugene Kozlov
06864f5d54 Non-functional refactoring of wheel handling. 2017-11-19 15:32:46 +03:00
Eugene Kozlov
56506a359e Add ScrollView horizontal/vertical bar visibility properties. 2017-11-19 15:29:43 +03:00
Rokas Kupstys
c93b3b513a AngelScript bindings. 2017-11-17 19:17:04 +02:00
Rokas Kupstys
0bb81bf8be Lua bindings for new methods. 2017-11-17 19:17:04 +02:00
Rokas Kupstys
9b5d759c60 Add "monitor" parameter to Graphics::GetDisplayDPI method. 2017-11-17 19:17:04 +02:00
Eugene Kozlov
8fd843703e Minor changes. 2017-11-17 19:17:04 +02:00
Eugene Kozlov
ba95abbad8 Add few bindings. Add some TODOs. Non-functional changes. 2017-11-17 19:17:03 +02:00
Eugene Kozlov
f2c78c2ab8 Move new graphics APIs 2017-11-17 19:17:03 +02:00
Eugene Kozlov
293370db1f Rename Graphics::RaiseWindow to Graphics::Raise. 2017-11-17 19:17:03 +02:00
Rokas Kupstys
eacf671d12 String FileSystem::GetTemporaryDir() const API 2017-11-17 19:17:03 +02:00
Rokas Kupstys
964f4c6759 Context::RemoveAllAttributes(StringHash) API 2017-11-17 19:15:50 +02:00
Rokas Kupstys
690afb2985 Add vertexStart parameter to DebugRenderer::AddTriangleMesh() 2017-11-17 19:15:50 +02:00
Rokas Kupstys
b8689422cc Add Int64 support to Serializable::OnSetAttribute and Serializable::OnGetAttribute 2017-11-17 19:15:50 +02:00
Rokas Kupstys
e1409e6ddc New API for XMLElement
bool AppendChild(XMLElement element, bool asCopy=false)
    bool Remove()
2017-11-14 11:34:52 +02:00
Rokas Kupstys
2e7bef8ca3 New API for Image
bool Image::HasAlphaChannel() const;
bool Image::SetSubimage(const Image* image, const IntRect& rect);
2017-11-14 11:34:52 +02:00
Rokas Kupstys
fba10847c6 Operators and getters for Rect and IntRect
Rect received following operators and getters:

    Rect& operator +=(const Rect& rhs)
    Rect& operator -=(const Rect& rhs)
    Rect& operator /=(float value)
    Rect& operator *=(float value)
    Rect operator /(float value) const
    Rect operator *(float value) const
    Rect operator +(const Rect& rhs) const
    Rect operator -(const Rect& rhs) const
    Vector2 Min() const
    Vector2 Max() const
    float Left() const
    float Top() const
    float Right() const
    float Bottom() const

IntRect received following operators and getters:

    IntRect& operator +=(const IntRect& rhs)
    IntRect& operator -=(const IntRect& rhs)
    IntRect& operator /=(float value)
    IntRect& operator *=(float value)
    IntRect operator /(float value) const
    IntRect operator *(float value) const
    IntRect operator +(const IntRect& rhs) const
    IntRect operator -(const IntRect& rhs) const
    IntVector2 Min() const
    IntVector2 Max() const
    int Left() const
    int Top() const
    int Right() const
    int Bottom() const
2017-11-14 11:34:52 +02:00
Rokas Kupstys
46785cb0c2 Mark IntVector(const int*) constructor as explicit and add IntVector(const float*) constructor 2017-11-14 11:34:52 +02:00
Rokas Kupstys
6909b741f1 Add base hash parameter to StringHash::Calculate() in order to allow incremental hash calculation 2017-11-14 11:28:07 +02:00
Rokas Kupstys
c3632eff78 Fix FileSystem::ScanDirInternal() improperly detecting file extension when file name contains more than one dot. 2017-11-13 17:17:33 +02:00
Rokas Kupstys
6d7ae4f755 Define remaining key constants 2017-11-13 17:17:33 +02:00
Rokas Kupstys
6045a86345 New RenderPath APIs
/// Return true of any of render targets or commands with specified tag are enabled.
    bool IsEnabled(const String& tag) const;
    /// Return true if renderpath or command with given tag exists.
    bool IsAdded(const String& tag) const;
2017-11-13 17:17:33 +02:00
Rokas Kupstys
0b2ade9efb New Graphics APIs
/// Returns the index of the display containing the center of the window on success or a negative error code on failure.
    int GetCurrentMonitor() const;
    /// Returns true if window is maximized or runs in full screen mode.
    bool GetMaximized() const;
    /// Raises window if it was minimized.
    void RaiseWindow() const;
    /// Return display dpi information: (hdpi, vdpi, ddpi). On failure returns zero vector.
    Vector3 GetDisplayDPI() const;
2017-11-13 17:17:33 +02:00
Rokas Kupstys
5cd0e558a9 Fix Graphics::GetWindowPosition() to return actual window position when it is created. Position is queried from SDL 2017-11-13 17:17:32 +02:00
Rokas Kupstys
d5bd3eea26 Define DRAWABLE_UNDEFINED constant and display a warning when drawable is created with invalid flags. 2017-11-13 17:17:32 +02:00
Rokas Kupstys
fe1a20025f "float Time::GetFramesPerSecond() const" API 2017-11-13 17:17:32 +02:00
Rokas Kupstys
c4c8e7cf6b "Object::SetBlockEvents(bool)" and "bool Object::GetBlockEvents()" APIs - allow blocking certain objects from sending and receiving events 2017-11-13 17:17:32 +02:00
Rokas Kupstys
39d0676e3a Define STB_VORBIS_HEADER_ONLY only if was previously undefined - avoids warnings. 2017-11-13 17:17:32 +02:00
Eugene Kozlov
4c7d0f3a71
Merge pull request #2091 from urho3d/refactor-attributes
Attribute refactoring
2017-11-12 20:21:50 +03:00
Eugene Kozlov
6961d6f358 Use "post-set callback" instead of "epilogue". Update docs. 2017-11-12 20:17:40 +03:00
Eugene Kozlov
e7d7af4a2e Revert temporary test code in HelloWorld.cpp 2017-11-12 15:20:16 +03:00
urho3d-travis-ci
21efb5bda9 Travis CI: API documentation update at 2017-11-12 10:01:39 UTC.
[ci package]

Commit: 949af7adc7

Message: Add another new log level (TRACE) for verbose tracing.
Close #2163.
2017-11-12 10:01:39 +00:00
Yao Wei Tjong 姚伟忠
949af7adc7 Add another new log level (TRACE) for verbose tracing.
Close #2163.
2017-11-12 17:46:45 +08:00
Yao Wei Tjong 姚伟忠
de58ce17a3 Merge branch 'master' of https://github.com/att-kin9/Urho3D into master.
Close #2164.
2017-11-12 17:13:06 +08:00
Eugene Kozlov
048ed5cf3e Update test code. 2017-11-11 21:17:14 +03:00
Eugene Kozlov
22ed4a63e9 Remove non-obvious macro accessors generators. Fix out-of-Urho3D serializables compilation. 2017-11-11 21:17:02 +03:00
Eugene Kozlov
eb66698487 Temporarily add serialization test code. 2017-11-11 19:21:51 +03:00
Eugene Kozlov
1b0fec98de Add attributes with custom set and get functions. 2017-11-11 19:21:50 +03:00
Rokas Kupstys
d4c64c110f Remove headers few headers from Urho3DAll.h
* Urho3D/IK/IKConverters.h - includes headers from third party ik library which is not bundled in the SDK.
* Graphics/GraphicsImpl.h - includes headers from third party GLEW library which is not bundled in the SDK.
2017-11-11 13:25:51 +02:00
Eugene Kozlov
23a15c893a Fix CascadeParameters.splits_ AS binding. 2017-11-11 13:54:22 +03:00
Eugene Kozlov
7a3ec74ea4 Refactor attributes. Minor changes. 2017-11-11 13:00:35 +03:00
att-kin9
7ab0d69d0b
Deleted default parameter passed. 2017-11-08 22:49:02 +08:00
att-kin9
29e92fd246
Fixed failing for picking rigidbody.
Fixed failing for picking rigidbody on touch devices.
2017-11-07 11:42:03 +08:00
Eugene Kozlov
b84239a3ae Add missing Swap.h include in Ptr.h. 2017-10-28 22:18:16 +03:00
urho3d-travis-ci
0c43256b28 Travis CI: API documentation update at 2017-10-28 18:04:11 UTC.
[ci package]

Commit: 56f4c6cb79

Message: Minor changes in ScriptInstance. Use &inout qualifier for AS Array::Swap.
2017-10-28 18:04:11 +00:00
Eugene Kozlov
56f4c6cb79 Minor changes in ScriptInstance. Use &inout qualifier for AS Array::Swap. 2017-10-28 20:32:10 +03:00
orefkov
187a353d6b Improve serialization of ScriptInstance (#2156)
* Added serialization of Array<String> and Array<Variant> attributes of ScriptInstance.

* Fix error in load content of Array<String> and Array<Vector> attributes in deserealization.
Add metod Swap in Array<T> script object for swap content of two arrays for avoid copy.

* Changes by code review.

* Fix error in deserialize String[] and Vector[] attributes of ScriptInstance in background scene loading.
2017-10-28 20:29:28 +03:00
Yao Wei Tjong 姚伟忠
aaa4fd8eb8 Include one of assimp's cmake module for enabling Open3DGC for Linux.
Fix header search path for the compiling Open3DGC build option.
2017-10-24 21:52:19 +08:00
orefkov
b8335f5059 In scripting optimize searching node's script object by their type name (#2154)
Optimizing in scripting searching by type name in Node.GetScriptObject(const String&) and allow searching by implemented interfaces.
2017-10-21 09:33:13 +08:00
Eugene Kozlov
04c615822c Fix SharedPtr assignment. 2017-10-15 15:04:38 +03:00
urho3d-travis-ci
07024da809 Travis CI: API documentation update at 2017-10-15 11:49:59 UTC.
[ci package]

Commit: 69ffd879f3

Message: Merge pull request #2140 from eugeneko/master

Add internal layout functions for ListView.
2017-10-15 11:49:59 +00:00
Eugene Kozlov
69ffd879f3 Merge pull request #2140 from eugeneko/master
Add internal layout functions for ListView.
2017-10-15 14:38:30 +03:00
Eugene Kozlov
4475565749 Add AS and Lua bindings for ListView internal layout functions. 2017-10-14 12:37:47 +03:00
Yao Wei Tjong 姚伟忠
9b22e16324 Fix the intermittent Android-CI build failure
Related to commit 6b63f20065.
2017-10-14 14:30:22 +08:00
Yao Wei Tjong 姚伟忠
0af84653df Minor patch for the assimp's CMakeLists to fix MinGW build. 2017-10-14 08:37:02 +08:00
Yao Wei Tjong 姚伟忠
0c96975249 Merge commit '661527824a9364865142e46c2a46b2e57f64c8ce' as 'Source/ThirdParty/Assimp' 2017-10-12 22:58:00 +08:00
Yao Wei Tjong 姚伟忠
b096792dcc Replace Source/ThirdParty/Assimp subdirectory with subtree. 2017-10-12 22:57:57 +08:00
Yao Wei Tjong 姚伟忠
6b63f20065 Fix the intermittent Android-CI build failure.
A few of the docker-containers for Android build environment in Travis may have been wrongly configured recently (have different CPU type than the rest) that the 'native' host tool built from the Android build environment caused illegal instruction (core dumped) when the tool was run on the container host. We are using "ccache" to cache the object files. For this to work, we expect to have a uniform build environments. Setting the deployment target to 'generic' for now in order to workaround the problem.
2017-10-11 17:12:59 +08:00
lieff
e269c0c082 fix typo in Quaternion opSub 2017-10-10 18:49:25 +03:00
Eugene Kozlov
8d49cbba00 Add internal layout functions for ListView. 2017-10-03 23:57:16 +03:00
Yao Wei Tjong 姚伟忠
c38299ae1b Merge commit '6f9bcea2833beb3a0b5a4428d7228d2206a58f5e' as 'Source/ThirdParty/AngelScript' 2017-10-01 17:00:22 +08:00
Yao Wei Tjong 姚伟忠
65ec0deca6 Replace Source/ThirdParty/AngelScript subdirectory with subtree. 2017-10-01 16:58:11 +08:00
Alexey Rassikhin
e66561464f Switch Lua gc mode to incremental step 2017-09-29 09:59:14 +03:00
Yao Wei Tjong 姚伟忠
b53cda9d6f Remove the nanodbc internal build options.
To revisit when our code base and/or build system has catched up with them.
2017-09-24 12:07:23 +08:00
Yao Wei Tjong 姚伟忠
d8d00567fb Rename nanodbc string type to match the upstream. 2017-09-23 21:01:09 +08:00
Yao Wei Tjong 姚伟忠
27d00d19c6 Merge commit 'c5706e2c884636104906ea75dbf444ad82abf0f4' into master. 2017-09-23 20:58:06 +08:00
Eugene Kozlov
8437361eba Add Vector4::ToHash and Color::ToHash. Fixes #2131. 2017-09-23 02:32:13 +03:00
Eugene Kozlov
7dde6073aa Merge pull request #2128 from eugeneko/master
Fix crash in AS named object constructor & minor refactoring
2017-09-20 19:43:48 +03:00
Yao Wei Tjong 姚伟忠
22e9a3f637 Fix Window UI-element LMB dragging mode handling.
Close #2129.
2017-09-20 23:01:13 +08:00
Eugene Kozlov
cb15cd658d Fix crash in AS named object constructor. 2017-09-19 11:13:18 +03:00
Eugene Kozlov
912cc04018 Make ValueAnimation::GetAnimationValue const. 2017-09-19 01:19:48 +03:00
urho3d-travis-ci
a57bd0f767 Travis CI: API documentation update at 2017-09-18 20:53:40 UTC.
[ci package]

Commit: c4b609ccaa

Message: Fix another tab.
2017-09-18 20:53:40 +00:00
JTippetts
c4b609ccaa Fix another tab. 2017-09-18 21:17:03 +03:00
JTippetts
6cf2995c8d Fix tabs. 2017-09-18 21:17:03 +03:00
JTippetts
7be156e604 Add ability to specify an image offset for buttons that are disabled. Enables displaying a grayed-out version of the button when disabled if desired. 2017-09-18 21:17:03 +03:00
Eugene Kozlov
7223708d0c Fixed argument names in PhysicsWorld.cpp. 2017-09-14 21:42:30 +03:00
Henrik Heino
a149a71c78 Fix too strict assert in kNet. 2017-09-14 09:55:41 +03:00
Eugene Kozlov
d16abdeec1 Add dynamic triangle meshes support. 2017-09-13 23:59:24 +03:00
Yao Wei Tjong
a8893bafca Merge pull request #2122 from rainerdeyke/master
Hot-fix to AngelScript: fixed compile with address sanitizer.
2017-09-10 16:35:05 +08:00
Eugene Kozlov
8f8f0e658d Merge pull request #2101 from cadaver/fix-accelerator-focus
Disregard Menu accelerator keys when a LineEdit is focused
2017-09-09 01:41:47 +03:00
Eugene Kozlov
bd9e2ad102 Merge pull request #2112 from ricab/master
fix fixtureless 2D shape scaling; fixes #2111
2017-09-09 01:28:18 +03:00
Yao Wei Tjong 姚伟忠
e29e743c2a Fix Android debug build caused by ik library. 2017-09-07 21:57:19 +08:00
Lasse Öörni
63f4b8d3f4 If no constraint created yet, create even when type is set to same. Fixes programmatic point constraint creation after RigidBody. Closes #2116. 2017-09-06 14:49:24 +03:00
Yao Wei Tjong 姚伟忠
dad96f2c2e Fix local variable naming convention and comment out unused parameters.
Related to commit 61d870b657.
2017-09-05 22:56:11 +08:00
Yao Wei Tjong 姚伟忠
61d870b657 Prevent windows UI-element moving while it is being resized.
Fix #2114.
2017-09-05 22:10:28 +08:00
Rainer Deyke
19acb12713 Hot-fix to AngelScript: fixed compile with address sanitizer. 2017-09-05 11:43:30 +02:00
Ricardo Abreu
c21f5dd8b1 fix fixtureless 2D shape scaling; fixes #2111 2017-08-31 22:52:11 +01:00
urho3d-travis-ci
14bdd868e8 Travis CI: API documentation update at 2017-08-29 20:58:33 UTC.
[ci package]

Commit: e56ff1b0c6

Message: Merge pull request #2098 from Modanung/IntVector-operators

Added operator overloads for multiplying IntVectors
2017-08-29 20:58:33 +00:00
Eugene Kozlov
e56ff1b0c6 Merge pull request #2098 from Modanung/IntVector-operators
Added operator overloads for multiplying IntVectors
2017-08-29 23:12:09 +03:00
Eugene Kozlov
4fee6e9b40 Add override into URHO3D_OBJECT. 2017-08-29 18:26:10 +03:00
Eugene Kozlov
de249a1963 Remove casts around nullptr. 2017-08-29 14:48:23 +03:00
Eugene Kozlov
59391f9523 Source/Tools and Source/Samples automatic upgrade: override, typedef to using, 0 to nullptr. 2017-08-29 11:40:46 +03:00
Eugene Kozlov
efe6ec17e2 Manual typedef to using upgrade. 2017-08-29 10:08:27 +03:00
Eugene Kozlov
5a2bec95f1 Automatic upgrade: override, typedef to using, 0 to nullptr. 2017-08-28 19:54:27 +03:00
urho3d-travis-ci
633afbbe13 Travis CI: API documentation update at 2017-08-28 13:35:48 UTC.
[ci package]

Commit: 79f01057d3

Message: Merge pull request #2105 from eugeneko/attribute-metadata

Add attribute metadata.
2017-08-28 13:35:48 +00:00
Modanung
7ac9f749ef Added Lua bindings for non-assignment IntVector operators 2017-08-28 15:12:01 +02:00
Eugene Kozlov
79f01057d3 Merge pull request #2105 from eugeneko/attribute-metadata
Add attribute metadata.
2017-08-28 15:53:20 +03:00
Eugene Kozlov
f77ff2d90c Merge pull request #2103 from eugeneko/refactor-variant
Make Variant able to store any type.
2017-08-28 15:52:48 +03:00
Modanung
07e2baa4f6 Added angelscript bindings for new IntVector functions 2017-08-28 12:57:49 +02:00
Eugene Kozlov
1806926975 Added CustomVariantValue traits. Minor updates and fixes. 2017-08-27 15:43:33 +03:00
Eugene Kozlov
b617a576c4 Added attribute metadata. Removed attribute variant structure element names. Resolves #1766. 2017-08-27 12:02:47 +03:00
Eugene Kozlov
3fdc30fa6a Make Variant able to store any type. 2017-08-27 10:39:19 +03:00
Eugene Kozlov
a97ad88ead Revert "Remove OnSetAttribute hooks from Light, Terrain, Zone, OffMeshConnection, CollisionShape, Constraint, Constraint2D and RigidBody components."
This reverts commit c55bbb4230.
2017-08-27 03:46:47 +03:00
Lasse Öörni
c2bc19df2b Do not apply Menu accelerator key if a LineEdit element is focused. Closes #2100. 2017-08-26 21:36:40 +03:00
Eugene Kozlov
c55bbb4230 Remove OnSetAttribute hooks from Light, Terrain, Zone, OffMeshConnection, CollisionShape, Constraint, Constraint2D and RigidBody components. 2017-08-26 19:50:10 +03:00
Eugene Kozlov
a523e604dc Merge pull request #2097 from eugeneko/refactor-variant
Refactor Variant (part #1)
2017-08-26 18:58:11 +03:00
Modanung
b8ab2cf1d1 Added operator overloads for multiplying IntVectors 2017-08-26 14:37:39 +02:00
Eugene Kozlov
71c490c492 Collapse unnamed union in VariantValue. 2017-08-26 13:14:17 +03:00
Eugene Kozlov
7d37186e12 Refactored Variant. 2017-08-26 11:06:53 +03:00
cosmy
a6456e7308 Update sqlite to 3.20.1. 2017-08-24 21:15:24 +02:00
urho3d-travis-ci
6ba4cab0c7 Travis CI: API documentation update at 2017-08-24 03:30:13 UTC.
[ci package]

Commit: d01134d7e1

Message: Fix shared library build.
2017-08-24 03:30:13 +00:00
Lasse Öörni
d01134d7e1 Fix shared library build. 2017-08-24 00:58:59 +03:00
Lasse Öörni
7b7c15d6f7 Cleanup Scene include / forward declaration. 2017-08-23 23:57:47 +03:00