Commit Graph

5243 Commits

Author SHA1 Message Date
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
Lasse Öörni
4f54e7a95e Hello3DUI Lua version and minor Lua binding fix. 2017-08-23 23:29:02 +03:00
Lasse Öörni
a7dc56b5a3 Minor consistency fix in Text::GetFont(), the filename version. Move UIComponent getters to implementation to avoid requiring class definitions. 2017-08-23 22:23:09 +03:00
Lasse Öörni
50fbdbd12e UIComponent AngelScript API fix, AS example and shutdown crash fix. 2017-08-23 22:02:51 +03:00
Lasse Öörni
df669fbe1b Restore earlier HelloGUI sample, instead create separate Hello3DUI which demonstrates 3D UI render to texture. Move getting viewport related to scene from Scene to Renderer, so that Scene doesn't have to know about Renderer unnecessarily. Refactor the internal UI render calls related to rendertarget use. 2017-08-23 21:15:56 +03:00
Lasse Öörni
d95aae9477 Merge remote-tracking branch 'rokups/feature/3D-UI' 2017-08-23 19:30:27 +03:00
Eugene Kozlov
9c569295d8 Merge pull request #2092 from urho3d/remove-cxx11-guards
Remove cxx11 guards
2017-08-23 11:48:19 +03:00
urho3d-travis-ci
0ffd291638 Travis CI: API documentation update at 2017-08-22 18:30:11 UTC.
[ci package]

Commit: 27141fe66b

Message: Add contributor.
2017-08-22 18:30:11 +00:00
Eugene Kozlov
c38a14c537 Use variadic SendEvent in Console::HandleTextFinished. Remove URHO3D_CXX11 define. Revert find_package (ODBC REQUIRED). Update porting notes. 2017-08-22 20:39:27 +03:00
Lasse Öörni
435d73da8a Merge remote-tracking branch 'rainerdeyke/master' 2017-08-22 20:38:29 +03:00
Rainer Deyke
8ebfa39ce8 Added Lua bindings for new IntRect utility functions. 2017-08-22 07:50:05 +02:00
Eugene Kozlov
b26903703a Remove URHO3D_CXX11 guards. 2017-08-22 00:45:38 +03:00
Lasse Öörni
de18c72ce7 Cleanup unused code from Renderer. Add "persistent" flag to readable depth buffers in the HWDepth deferred renderpaths. This is required to fix a D3D11 bug leading to garbled display with multiple rendertexture views that use readable depth. Closes #2082. 2017-08-20 21:43:45 +03:00
Lasse Öörni
3a85655248 Prevent use of system call also on iOS. Closes #2083. 2017-08-20 21:43:45 +03:00
Rokas Kupstys
ad464086e4 Fix for build error on AppVeyor 2017-08-20 18:20:55 +03:00
Rainer Deyke
b8495dbd28 Added Clip, Merge, and contructor from pair of IntVector2 to IntRect. 2017-08-20 15:01:59 +02:00
Lasse Öörni
fece9d6cc4 Fix uninitialized variables in InverseKinematics sample. Closes #2081. 2017-08-20 12:24:05 +03:00
Rokas Kupstys
f8097b976a After rendering to texture restore previous render surface if UI subsystem was called with resetRenderTargets=false. 2017-08-20 11:04:43 +03:00
Rokas Kupstys
6fc2c19baa More code cleanups.
* Moved `UIComponent::GetViewport()` to `Scene` class.
* Simplified resource initialization of `UIComponent` and removed need of overriding `IsEnabled()`.
* Renamed `UIComponent::GetElement()` to `GetRoot()` to be more consistent with UI subsystem.
* Removed ability to set root UI element to `UIComponent`, instead to add UI elements should be added as children to element renturned by `UIComponent::GetRoot()`.
* Cleaned up debug rendering in HelloGUI sample. Debug data is now rendered after pressing F2.
2017-08-20 10:55:58 +03:00
Lasse Öörni
50dd3fd3c9 Fix memory backtrace option (Linux-only) getting enabled on non-Unix platform in debug build. 2017-08-19 20:38:45 +03:00
Rokas Kupstys
16ee7e1121 * Changed UIComponent::IsValid() to overriden UIComponent::IsEnabled()
* Separated batches and vertex buffers of normal UI and UI rendered to texture.
* Cleaned up `Render()` method adding additional `surface` parameter to render into. Passing null renders on to screen.
Support for rendering UI to texture.

This change adds support for rendering GUI into a texture. This is achieved by adding `UIComponent` component to `Node`. `UIComponent` overrides material of `Node`'s `StaticModel`. UI subsystem is changed so that batches belonging to UI elements owned by `UIComponent` are rendered into a texture that is also contained in `UIComponent`. Input is handled by UI subsystem, so anything that worked on normal UI will work on UI rendered on to 3D object. This required a minor change for input handling. Previously "screen" was considered surface of entire window. Now screen is considered area of root_element_position + root_element_size. This is fully backwards-compatible.

There is one issue i am unable to solve: since on OpenGL texture coordinates start from bottom-left corner a workaround is needed. Texture is flipped by projection matrix, however it breaks scissor test. I do not know how to properly fix it therefore scissor test is disabled when rendering into texture on OpenGL. Issue is clearly visible when scrolling a `ListView` in `HelloGUI` sample when UI is rendered on to a cube.

Other changes: lua and angelscript bindings, HelloGUI sample can toggle between rendering on screen or rendering on cube, added a ListView to HelloGUI sample window. `UI::DebugDraw()` support.
2017-08-19 20:33:00 +03:00
Lasse Öörni
12c394232c Disable verbose debug output (z_verbose & z_error) from FreeType's zlib, to make sure it doesn't clash with Assimp's zlib in a debug build. 2017-08-19 19:56:06 +03:00
urho3d-travis-ci
c4ebdf9424 Travis CI: API documentation update at 2017-08-19 08:04:29 UTC.
[ci package]

Commit: 05452b8bd1

Message: Refactor IntegerLog2() to LogBaseTwo() for performance and consistency.
2017-08-19 08:04:29 +00:00
Yao Wei Tjong 姚伟忠
05452b8bd1 Refactor IntegerLog2() to LogBaseTwo() for performance and consistency. 2017-08-19 15:43:38 +08:00
Lasse Öörni
c1630d8d8d Merge pull request #2067 from TheComet93/iss2054
IKEffector target bug fix
2017-08-13 16:24:46 +03:00
Lasse Öörni
6af97c59b6 Remove setting certain RigidBody boolean flags when UpdateMass() readds the body to world, to avoid introducing potential new bugs. 2017-08-13 15:40:39 +03:00
TheComet
cdbfd83e4a fixes #2054 - If there was a node in the scene with an empty name, IKEffector would always select that node as a target 2017-08-13 14:04:27 +02:00
urho3d-travis-ci
2da19c1ab6 Travis CI: API documentation update at 2017-08-12 13:56:05 UTC.
[ci package]

Commit: d537c2027a

Message: Merge pull request #2061 from eugeneko/navmesh-streaming

Navmesh streaming
2017-08-12 13:56:05 +00:00
Eugene Kozlov
d537c2027a Merge pull request #2061 from eugeneko/navmesh-streaming
Navmesh streaming
2017-08-12 15:52:35 +03:00
Lasse Öörni
63724fcdc3 Remove unnecessary parameter from the bugfix code. 2017-08-12 15:14:01 +03:00
Lasse Öörni
ad3a30f2e3 If Rigidbody's collisionshape changes, readd to world. Fixes #2064. 2017-08-12 13:41:24 +03:00
urho3d-travis-ci
768b6ddf5a Travis CI: API documentation update at 2017-08-09 19:56:06 UTC.
[ci package]

Commit: 787ce41a81

Message: Merge remote-tracking branch 'TheComet93/iss2058'
2017-08-09 19:56:06 +00:00
TheComet
e419afa30b Fixing grammar error, making feature flags boolean in lua script bindings 2017-08-09 00:09:11 +02:00
Eugene Kozlov
f7b98fea74 Use VectorBuffer for Lua NavigationMesh API. 2017-08-08 23:01:08 +03:00
Eugene Kozlov
ef3b6efd96 Add streaming mode to Lua samples 15_Navigation and 39_CrowdNavigation. Minor changes. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
e110998f70 Update Lua bindings. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
4403b99cbd Remove separate navigation streaming samples. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
f84e9d1392 Add streaming mode to C++ samples 15_Navigation and 39_CrowdNavigation . Fix using outdated navigation mesh data for streaming. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
f7573971f4 Update Navigation AS API. Add streaming mode to AS sample 39_CrowdNavigation. Disable bounding box padding on NavigationMesh::Allocate. Send E_NAVIGATION_MESH_REBUILT on NavigationMesh::Allocate. 2017-08-08 01:34:56 +03:00
Eugene Kozlov
db7d92e419 Fix stuck CrowdAgent-s after NavigationMesh::AddTile. 2017-08-08 01:34:56 +03:00
Eugene Kozlov
2073349613 Partially revert commit a8a29d7 due to broken off-mesh movement. 2017-08-08 01:34:56 +03:00
Eugene Kozlov
6f57b5b4e5 Add events for navigation mesh tile operations. Fix obstacles rendering into newly added tiles. 2017-08-08 01:34:56 +03:00
Eugene Kozlov
214dcc6638 Fix C++98 compilation. 2017-08-08 01:34:56 +03:00
Eugene Kozlov
e85e9d897c Add support of sparse navigation meshes and dynamic tile management. Add two examples based on 15_Navigation and 39_CrowdNavigation. 2017-08-08 01:34:56 +03:00
Eugene Kozlov
e963e89f47 Copy 15_Navigation and 39_CrowdNavigation samples. 2017-08-08 01:34:56 +03:00
TheComet
c43b269845 Updating script APIs, making sure sample compiles, see thread on the forum for more info 2017-08-06 17:08:14 +02:00
TheComet
1f679d6756 fixes #2058 - It probably still has some bugs that need fixing, and the script bindings need updating 2017-08-03 23:22:32 +02:00
TheComet
0e72531fe3 Gotta stop here, will continue tomorrow 2017-08-03 00:02:17 +02:00
TheComet
15f837d880 (Sorry) giving RebuildData() a more sensible name 2017-08-02 23:10:28 +02:00
urho3d-travis-ci
c44e954abf Travis CI: API documentation update at 2017-08-02 15:56:23 UTC.
[ci package]

Commit: e439197cfa

Message: Merge pull request #2034 from kostik1337/tilemap-improvements

Several tilemap improvements
2017-08-02 15:56:23 +00:00
Lasse Öörni
e439197cfa Merge pull request #2034 from kostik1337/tilemap-improvements
Several tilemap improvements
2017-08-02 18:45:13 +03:00
urho3d-travis-ci
0e2fd9271e Travis CI: API documentation update at 2017-08-02 11:25:11 UTC.
[ci package]

Commit: 947fe2bde7

Message: Add SeekRelative() & Tell() (which is merely an alias to GetPosition()) to Deserializer. Closes #2053.
2017-08-02 11:25:11 +00:00
Lasse Öörni
947fe2bde7 Add SeekRelative() & Tell() (which is merely an alias to GetPosition()) to Deserializer. Closes #2053. 2017-08-02 13:25:39 +03:00
urho3d-travis-ci
aa4c7fa9f4 Travis CI: API documentation update at 2017-08-01 09:45:24 UTC.
[ci package]

Commit: 0df18d3f54

Message: Merge remote-tracking branch 'TheComet93/iss1957'
2017-08-01 09:45:24 +00:00
Lasse Öörni
0df18d3f54 Merge remote-tracking branch 'TheComet93/iss1957' 2017-08-01 11:24:48 +03:00
Guschin Konstantin
5ebe92d6ee Naming fixes, angelscript bindings, refactoring 2017-07-31 21:18:39 +07:00
TheComet
ea593632a5 Setting IK_RESTRICT properly this time. Also refactoring export.h.in 2017-07-29 21:53:40 +02:00
TheComet
cc8b06c8f9 Using #cmakedefine and making the for loop more efficient 2017-07-29 16:36:03 +02:00
urho3d-travis-ci
e6d9e45ab5 Travis CI: API documentation update at 2017-07-29 14:22:05 UTC.
[ci package]

Commit: f68e04a6fc

Message: Fix tabs.
2017-07-29 14:22:05 +00:00
JTippetts
f68e04a6fc Fix tabs. 2017-07-29 07:14:38 -06:00
JTippetts
7d9cade436 Fix tabs. 2017-07-29 07:13:50 -06:00
JTippetts
39d991c750 Expose Scene::InstantiateJSON to Lua 2017-07-29 07:10:56 -06:00
Alex Murray
a7b20de253 config.h.in fail 2017-07-29 01:12:13 +02:00
TheComet
eaebb5e82b Fixing IK_HAVE_STDINT_H 2017-07-29 00:31:15 +02:00
TheComet
c628b27cf9 Not registering IKConstraint, since it doesn't do anything yet 2017-07-28 19:10:50 +02:00
TheComet
2e79d7d39a fixes #1957 2017-07-28 19:08:58 +02:00
TheComet
4f96c7c29f Refactoring the 'feature' setters and getters into a single method. Renaming a few things to be more consistent. Adding Documentation 2017-07-28 18:36:57 +02:00
TheComet
4a6d86804e Fixing bugs, updating script bindings and sample code 2017-07-28 03:42:16 +02:00
TheComet
bbaeccb11b Fixing compilation errors 2017-07-26 01:40:06 +02:00
TheComet
a6930ec06f Merging updated Urho3D wrappers and script bindings from my own test branch 2017-07-26 01:40:06 +02:00
TheComet
183cea3ef5 Merging updated IK library source files 2017-07-26 01:40:06 +02:00
urho3d-travis-ci
2db441a220 Travis CI: API documentation update at 2017-07-25 11:26:41 UTC.
[ci package]

Commit: 982befaab5

Message: Add default parameter value to Image::SaveWEBP() bindings.
2017-07-25 11:26:41 +00:00
Lasse Öörni
982befaab5 Add default parameter value to Image::SaveWEBP() bindings. 2017-07-25 13:13:54 +03:00
Lasse Öörni
f51317bed5 Merge remote-tracking branch 'carnalis/master' 2017-07-25 12:55:04 +03:00
Lasse Öörni
4d8330c5df When text is wordwrapping, do not update its width in text update at all. Possible fix for #2043. 2017-07-25 12:36:04 +03:00
carnalis
3dfc8f750c Add SaveWEBP() bindings. 2017-07-25 02:22:00 -04:00
carnalis
1f41a8c7c3 Implemented SaveWEBP() with optional compression level. 2017-07-24 11:47:09 -04:00
urho3d-travis-ci
fff56a6ba5 Travis CI: API documentation update at 2017-07-23 12:44:04 UTC.
[ci package]

Commit: dd1582dc6f

Message: Merge branch 'webp'
2017-07-23 12:44:04 +00:00
Lasse Öörni
dd1582dc6f Merge branch 'webp' 2017-07-23 14:41:09 +03:00
Iain Merrick
2780c70cd3 Fix uninitialized FontGlyph fields in FontFaceBitmap (closes #2035)
Commit 0450bcd1 added two extra fields to FontGlyph, texWidth_ and texHeight_,
but these weren't being initialized for bitmap fonts.

Bitmap text would sometimes randomly look OK if the uninitialized fields
contained large numbers, and fail if the fields contained zeroes.
2017-07-22 22:31:13 -05:00
Lasse Öörni
aa47eb13ba Merge branch 'master' into webp 2017-07-22 13:36:51 +03:00
Lasse Öörni
5fb53f9bd8 Better check for Android NEON support in WebP. 2017-07-22 13:18:48 +03:00
Lasse Öörni
93fc311b30 Disable NEON from WebP library on Android for now, as it results in compile error from the include files if the NEON instruction set is not in use. 2017-07-21 22:38:49 +03:00
urho3d-travis-ci
78643541e4 Travis CI: API documentation update at 2017-07-20 22:28:36 UTC.
[ci package]

Commit: 1c992b2611

Message: Merge pull request #2033 from eugeneko/master

Add DebugRenderer::AddSphereSector. Expose Sphere helper funcions.
2017-07-20 22:28:36 +00:00
Eugene Kozlov
1c992b2611 Merge pull request #2033 from eugeneko/master
Add DebugRenderer::AddSphereSector. Expose Sphere helper funcions.
2017-07-20 23:40:34 +03:00
Lasse Öörni
95062fcb63 Always have SaveWEBP in public API of Image; add script binding. Will be a no-op if not supported. 2017-07-20 22:35:13 +03:00
Lasse Öörni
157130c612 Add WebP license and mention to library list. 2017-07-20 22:13:49 +03:00
Lasse Öörni
da996ddae9 Merge remote-tracking branch 'carnalis/webp' 2017-07-20 22:06:08 +03:00
Eugene Kozlov
cf0d6b6f78 Fix DebugRenderer::AddSphereSector AS binding. Use AddSphereSector for rendering SoundSource3D. 2017-07-20 20:55:40 +03:00
Lasse Öörni
4739de573d Improved convex hull debug draw from Lumak. Works only when called individually for CollisionShape; whole physics world debug draw still uses Bullet's internal rendering. Closes #2031. 2017-07-20 13:52:54 +03:00
urho3d-travis-ci
2d435b3d57 Travis CI: API documentation update at 2017-07-20 10:03:25 UTC.
[ci package]

Commit: f916c02a4e

Message: Fixed HeightMapToWorld contributed by Lumak. Closes #2030.
2017-07-20 10:03:25 +00:00
Lasse Öörni
f916c02a4e Fixed HeightMapToWorld contributed by Lumak. Closes #2030. 2017-07-20 12:40:56 +03:00
Guschin Konstantin
0f2480847a Several tilemap improvements 2017-07-20 16:34:36 +07:00
Eugene Kozlov
f266475994 Add Sphere::GetPoint and Sphere::GetLocalPoint functions. Add DebugRenderer::AddSphereSector function. 2017-07-20 09:25:10 +03:00
carnalis
3339e5012b Initial commit of WebP image support 2017-07-20 00:43:15 -04:00
Yao Wei Tjong 姚伟忠
ec84cfdfd1 Remove the usage of add_compiler_export_flags() deprecated function.
Fix #1945.
2017-07-13 23:17:09 +08:00
Lasse Öörni
c8ecd9f55c Typo fix in AssetImporter. 2017-07-13 14:03:43 +03:00
Lasse Öörni
60c478212c Fix wrong AngelScript binding in ResourceCache::GetExistingResource(). Closes #2016. 2017-07-11 14:10:35 +03:00
urho3d-travis-ci
d03134682a Travis CI: API documentation update at 2017-07-10 07:05:23 UTC.
[ci package]

Commit: dfe94e36ca

Message: Merge pull request #2014 from eugeneko/master

Prevent sending events for subscribers added during event handling.
2017-07-10 07:05:23 +00:00
Eugene Kozlov
550f44c56a Prevent sending events for subscribers added during event handling. Fixes #2013. 2017-07-09 17:28:21 +03:00
Eugene Kozlov
a5ee22ce9e Expose Context::CreateObject to AngelScript API. 2017-07-09 17:28:21 +03:00
Yao Wei Tjong 姚伟忠
7fc9aa816a Make clean for MinGW/Android/Web platforms.
The rest of the platforms are already taken care of by this commit, however, only tested explicitly on Linux native, RPI, and ARM.
2017-07-09 21:58:33 +08:00
Lasse Öörni
a725b608ec Merge remote-tracking branch 'Mezozoysky/bgload' 2017-07-08 13:38:28 +03:00
Stanislav Demyanovich
9bb48ed015 Background loading: add resource into cache before sending E_RESOURCEBACKGROUNDLOADED. 2017-07-08 15:29:56 +07:00
Lasse Öörni
18df5b8525 Also send highdpi parameter in window resize event on D3D9/D3D11 to match OpenGL behavior. 2017-07-06 20:04:10 +03:00
Iain Merrick
237b2b0fe6 Fix Graphics::GetHighDPI() on OS X (closes #2009) 2017-07-06 09:44:50 -05:00
Iain Merrick
7ced601b6c Scale kerning values correctly (closes #2007) 2017-07-05 11:47:39 -05:00
Lasse Öörni
650f380623 Add base64 license, apply Urho code convention to base64 code since it's inside StringUtils.cpp. 2017-07-05 13:55:22 +03:00
Konstantin Guschin
dddbdcc595 Add csv and base64 encodings for tmxfile 2017-07-05 13:55:22 +03:00
urho3d-travis-ci
6c5f0f4815 Travis CI: API documentation update at 2017-07-05 08:42:09 UTC.
[ci package]

Commit: cd38109ddf

Message: Minor doc edit & header comment fix.
2017-07-05 08:42:09 +00:00
Lasse Öörni
cd38109ddf Minor doc edit & header comment fix. 2017-07-05 11:31:04 +03:00
Iain Merrick
0450bcd11e Add configurable oversampling to improve subpixel font rendering (#1953)
Subpixel-positioned text looks blurry, due to bilinear filtering of the
underlying texture. The basic idea here is to stretch the font glyphs
horizontally to increase the sharpness at subpixel positions. The
stretched images need to be smoothed to avoid aliasing artifacts; this
is done in FontFaceFreeType::BoxFilter().

Glyphs are always pixel-aligned vertically, so no vertical oversampling
is needed.

To make this feature comprehensible (I hope!) I've removed the
'subpixelGlyphPositions' flag and replaced it with a couple of values:
'fontSubpixelThreshold' sets the point at which subpixel positioning
kicks on, and 'fontOversampling' controls the amount of stretching.

The default values are 12pt text and 2x oversampling. These are fairly
conservative settings, which should improve small text without wasting
a lot of memory.

Note that when the font hint level is NORMAL (the default), subpixel
positioning and oversampling are both disabled. So, this feature doesn't
change any default behavior, and applies some hopefully sensible values
if the hint level is set to LIGHT or NONE.
2017-07-03 11:21:47 -05:00
Iain Merrick
2ab978e968 Fix kerning pairs (#2003)
Kerning values were being associated with the wrong char codes.
This was broken in commit 39930c9a, which moved some code around
to ensure that the space character is always the first one loaded.
2017-07-02 21:42:03 -05:00
Lasse Öörni
3c9881faca Further consistency edit to return (?) on failure path in all ProcessUtils detection functions. Improve function comments in header. 2017-07-01 21:12:56 +03:00
Florastamine
e602496be7 Minor incoherent fix. 2017-07-01 19:37:47 +07:00
Yao Wei Tjong 姚伟忠
752609701b Indirectly detect the availability of the "RtlGetVersion" function.
Fix #1998.
2017-07-01 17:49:17 +08:00
Lasse Öörni
0bdb20fd8e Add MINI_URHO check to disable Windows OS version detection, to help with issue #1998. 2017-06-27 20:18:32 +03:00
Lasse Öörni
ce98afc76e Add contributor credits. Re-add old behavior of also acquiring properties directly from tileElem in TmxFile2D, if defined. 2017-06-26 18:37:01 +03:00
Georgii Pelageikin
3981a92a05 Added b2ChainShape::Clear() call into CollisionChain2D::RecreateFixture() (fixes #1995) 2017-06-26 18:36:59 +03:00
Thomas Böhm
ef63c079cb fixed loading user defined tile properties from tileset-file. 2017-06-26 18:36:57 +03:00
urho3d-travis-ci
ecacd32e33 Travis CI: API documentation update at 2017-06-26 10:23:08 UTC.
[ci package]

Commit: 1826fdb73a

Message: Merge pull request #1997 from eugeneko/master

Add Vector3::Orthogonalize helper function.
2017-06-26 10:23:08 +00:00
Eugene Kozlov
7f1f44d5cc Add Vector3::Orthogonalize helper function. 2017-06-26 00:39:10 +03:00
urho3d-travis-ci
7a905bd056 Travis CI: API documentation update at 2017-06-23 22:50:38 UTC.
[ci package]

Commit: 071b42819d

Message: Amend porting note.
2017-06-23 22:50:38 +00:00
Lasse Öörni
bb31dee5f9 Merge remote-tracking branch 'iainmerrick/fractional_glyph_advances' 2017-06-23 18:24:05 +03:00
urho3d-travis-ci
b51625df5b Travis CI: API documentation update at 2017-06-23 06:45:43 UTC.
[ci package]

Commit: 58277e3621

Message: Add AS bindings for searching Node children by name.
2017-06-23 06:45:43 +00:00
Eugene Kozlov
58277e3621 Add AS bindings for searching Node children by name. 2017-06-23 09:35:45 +03:00
Iain Merrick
e603eed814 Add a 'subpixel glyph positions' option to UI (#1953)
When this option is enabled, text will be formatted with subpixel
(fractional) positions on the x-axis. Positions on the y-axis are
still pixel-aligned.

Note that this option has no effect if the hinting level is set
to FONT_HINT_LEVEL_NORMAL, as each glyph is rounded to an integral
pixel size by the hinter. It only makes a different if the hinting
mode is LIGHT (vertical hinting only) or NONE.

With subpixel positioning, the output will look blurrier due to
texture filtering. TODO: Add horizontal oversampling to improve
sharpness. That needs extra memory so it should be configurable.
2017-06-20 17:04:56 -05:00
urho3d-travis-ci
7fa6f9c960 Travis CI: API documentation update at 2017-06-19 20:16:14 UTC.
[ci package]

Commit: 216cf57e96

Message: Add font size porting note.
2017-06-19 20:16:14 +00:00
Iain Merrick
1e3a1edd45 Change font size to a float (closes #1952)
This commit changes the 'pointSize' parameter in Font, Text
and Text3D from an int to a float, allowing e.g. 14.5pt text.
Note that when hinting is enabled, font metrics are snapped
to pixel boundaries, so the effect may be hard to see unless
you also set UI.FontHintLevel to LIGHT or NONE.

This is a change to the public API, but existing code (including
scripts) should compile and run as before.
2017-06-18 22:27:59 -05:00
urho3d-travis-ci
c1e3969440 Travis CI: API documentation update at 2017-06-18 01:22:28 UTC.
[ci package]

Commit: bcd90a977d

Message: Change attribute to default type & accessor. Add contributor credit.
2017-06-18 01:22:28 +00:00
Lasse Öörni
bcd90a977d Change attribute to default type & accessor. Add contributor credit. 2017-06-17 22:43:26 +03:00
Lasse Öörni
6ab29705d2 Merge remote-tracking branch 'kostik1337/master' 2017-06-17 22:34:36 +03:00
Lasse Öörni
b9c3199a25 Merge remote-tracking branch 'iainmerrick/font_hinting' 2017-06-17 22:17:59 +03:00
Lasse Öörni
9ef8ac9ba9 Tabs to spaces. 2017-06-17 00:09:05 +03:00
Lasse Öörni
e5dcfdafbb Merge remote-tracking branch 'dragonCASTjosh/master' 2017-06-17 00:08:03 +03:00
Lasse Öörni
0b8af7cf04 Remove the FreeType docs/reference folder, as it has been Urho3D tradition to not include it. 2017-06-17 00:06:00 +03:00
Konstantin Guschin
0fd29cfd3b renamed 'is_emitting' angelscript method to 'get_emitting' 2017-06-17 00:42:43 +07:00
Guschin Konstantin
cc3c544485 use 'logical AND' instead of nested ifs 2017-06-16 22:00:39 +07:00
Guschin Konstantin
448b3a66b1 added emitting flag for ParticleEmitter2D 2017-06-16 18:50:08 +07:00
Lasse Öörni
38cf46df54 Merge remote-tracking branch 'iainmerrick/freetype2.8' into update-freetype 2017-06-16 00:21:40 +03:00
Iain Merrick
282f250e3a Add UI.FontHintLevel property
There are three levels: NORMAL (the default), LIGHT and NONE.
The LIGHT level makes FreeType align font outlines to pixel
boundaries vertically, but not horizontally.
2017-06-15 15:30:28 -05:00
Lasse Öörni
77e1232556 Merge pull request #1980 from iainmerrick/typography
Add a 'Typography' sample program
2017-06-15 22:55:39 +03:00
Lasse Öörni
8c18d60896 Merge remote-tracking branch 'iainmerrick/typography' 2017-06-15 22:39:47 +03:00
Iain Merrick
4e851dbd4d Update FreeType to 2.8. 2017-06-15 13:07:34 -05:00
Iain Merrick
a476c43a24 Add a 'Typography' sample program
Displays text in various sizes, with checkboxes to play with settings
that affect the way text is rendered:
- Color (white-on-black versus black-on-white)
- Autohinter
- sRGB output conversion (not available on all platforms)
2017-06-13 13:40:22 -05:00
dragonCASTjosh
eebc9f04c3 Fixed sphere light issue 2017-06-13 06:01:59 +01:00
Lasse Öörni
e41b74c463 Merge branch 'update-bullet' 2017-06-12 19:27:06 +03:00
urho3d-travis-ci
31f698fa60 Travis CI: API documentation update at 2017-06-10 21:26:46 UTC.
[ci package]

Commit: 00eb0c6ff0

Message: Merge pull request #1979 from eugeneko/master

Add Model metadata support.
2017-06-10 21:26:46 +00:00
Lasse Öörni
86ba5e5bdd Update Bullet to 2.86.1. Thanks to slapin for the initial work. 2017-06-10 21:30:19 +03:00
Eugene Kozlov
52e99da087 Add Model metadata support. 2017-06-10 00:24:48 +03:00
Lasse Öörni
1741073835 Merge remote-tracking branch 'iainmerrick/fontfix' 2017-06-09 22:14:05 +03:00
Iain Merrick
457976366b Fix rounding error that can lead to clipped glyphs (closes #1978)
The key thing is to to trust the metrics in slot->bitmap, which
are always correctly rounded up to integral values, rather than
also looking at the fixed-point values in slot->metrics and
rounding them manually.

Previously, CanLoadAllGlyphs was pre-flighting the texture atlas
allocation without rendering the glyphs. However, slot->bitmap
isn't populated until the glyph is rendered. I've therefore
removed CanLoadAllGlyphs entirely, and tweaked the preflight
process so that it calls LoadCharGlyph directly.

This should be slightly faster, as we don't have to load the
glyphs twice. It also reduces the total code size a bit, and
guarantees that the "preflight" is always consistent.

The new preflight behavior is *slightly* different, in that it
will expand the first texture atlas up to its maximum size (but
won't move on to a second atlas). Previously, if CanLoadAllGlyphs
failed, we would render only as far as char code 255 (probably
leaving some of the initial texture atlas free).
2017-06-09 13:46:04 -05:00
Iain Merrick
39930c9ab4 Fix bug in FontFaceFreeType::CanLoadAllGlyphs that can make text vanish
Closes #1976

FontFaceFreeType checks at runtime whether the whole font can be loaded
into a single texture, by preflighting all the necessary texture atlas
placements in CanLoadAllGlyphs.

However, this preflight operation was slightly different from the real
texture atlas generation, so sometimes CanLoadAllGlyphs was incorrectly
returning true. The LoadCharGlyph would then switch to a new texture
atlas (via SetupNextTexture). This would usually make Text elements
vanish, as the rendered glyphs were in the wrong texture.

We fix this bug with two changes:
- Make CanLoadAllGlyphs process the same char codes in the same order
- Make CanLoadAllGlyphs skip zero-size glyphs (as LoadCharGlyph does)

We also log an error if SetupNextTexture is called unexpectedly, to
help catch future occurrences.
2017-06-08 11:25:50 -05:00
Lasse Öörni
14bb9f98be Remember custom depth stencil surface if defined during renderpath, and use it also for any debug rendering. Closes #1975. 2017-06-08 18:22:17 +03:00
Lasse Öörni
fb6492a948 Reposition the window also in borderless mode if it's sized as large as the monitor bounds. 2017-06-07 18:30:51 +03:00
Pengfei Li
d9d98cd35b restore the commits in Sample.inl 2017-06-07 18:30:49 +03:00
Pengfei Li
353fc4d7b3 Consider the initial position for the borderless window 2017-06-07 18:30:47 +03:00
Yao Wei Tjong 姚伟忠
3a6f3e5543 Avoid hard-coding of shell script / batch file names.
Fix #1974.
2017-06-06 22:42:43 +08:00
Henrik Heino
6ff0a0b53a Static VertexBuffer::UpdateOffsets() 2017-06-06 01:02:51 +03:00
Yao Wei Tjong 姚伟忠
c7a0149dc9 Another sweep for tvOS conditional code branch. 2017-06-05 23:04:09 +08:00
Yao Wei Tjong 姚伟忠
75b8420a31 Initial work for porting Urho3D to AppleTV platform. 2017-06-05 23:04:09 +08:00
Lasse Öörni
392155397b Add / remove the vehicle Action when RaycastVehicle component is enabled or disabled. Closes #1954. Minor code reformatting in 46_RaycastVehicleDemo.as. 2017-06-03 23:22:29 +03:00
urho3d-travis-ci
5c7ee10f5f Travis CI: API documentation update at 2017-06-02 23:52:55 UTC.
[ci package]

Commit: d2ac2067c6

Message: Merge pull request #1966 from eugeneko/master

Re-factored PhysicsWorld2D::ContactInfo. Removed NodeEndContact2D::P_…
2017-06-02 23:52:55 +00:00
Eugene Kozlov
d2ac2067c6 Merge pull request #1966 from eugeneko/master
Re-factored PhysicsWorld2D::ContactInfo. Removed NodeEndContact2D::P_…
2017-06-03 01:46:38 +03:00
Lasse Öörni
3f99b1e630 Minor code formatting. 2017-06-03 01:31:26 +03:00
Lasse Öörni
b5e664d4c3 Merge remote-tracking branch 'ricab/master' 2017-06-03 00:39:04 +03:00
Lasse Öörni
3b799b7712 Avoid duplication of code for the float-to-raw-unsigned-bits conversion. 2017-06-03 00:28:04 +03:00
Eugene Kozlov
792c4900a8 Remove P_CONTACT parameter from 2D physics events. Rename P_CONTACTPOINTS to P_CONTACTS. 2017-06-02 22:48:04 +03:00
Lasse Öörni
e4fe4f04bb Add contributor. Prefer union-based float to raw bits conversion. 2017-06-02 18:42:34 +03:00
Eugene Kozlov
9b1fc0715f Re-factored PhysicsWorld2D::ContactInfo. Removed NodeEndContact2D::P_CONTACT and PhysicsEndContact2D::P_CONTACT event parameters. Fixed #1958. Fixed #1965. 2017-06-01 21:59:45 +03:00
CG-SS
07e2c6fcca Update Vector3.h 2017-05-29 17:53:49 -03:00
CG-SS
75db281fcc Hash code calculation for Vector3
Added ToHash() for Vector3, using FloatToRawIntBits from MathDefs.h
2017-05-29 17:36:56 -03:00
CG-SS
98a8097de6 Update MathDefs.h 2017-05-29 17:23:39 -03:00
CG-SS
59e0939c75 Adding FloatToRawIntBits
The FloatToRawIntBits function is used to calculate float hashes.
2017-05-29 17:22:56 -03:00
Ricardo Abreu
5fbbec8b7a Fix RigidBody2D failure to apply transforms that would return it to original position and rotation; fixes #1960 2017-05-28 00:45:00 +01:00
Lasse Öörni
07dfd7b720 Fix copypaste error in SpriteSheet2D load code. Closes #1951. 2017-05-24 00:01:58 +03:00
Lasse Öörni
ba9444ee72 Code convention edits. 2017-05-21 21:46:01 +03:00
Sergey Lapin
2fd97bd798 Fixed memleak by running Init multiple times (ApplyAttributes/Editor thing) 2017-05-21 21:46:01 +03:00
Sergey Lapin
d6ed2104a1 Remove vehicle from Bullet action list
...on component removal
Closes #1949
2017-05-21 21:46:01 +03:00
Yao Wei Tjong 姚伟忠
c935c7dc3f Glue main module and side module(s) together in final output. 2017-05-21 20:21:27 +08:00
Lasse Öörni
364521c1ee Do not transform root bone with model's root node in AssetImporter, only with nodes in between (if any). Possible fix to #1944. 2017-05-20 15:39:23 +03:00
urho3d-travis-ci
110ac2fe84 Travis CI: API documentation update at 2017-05-18 15:07:05 UTC.
[ci package]

Commit: 363f68d36e

Message: When the search path is required, search it as rooted and not-rooted.
2017-05-18 15:07:05 +00:00
Eugene Kozlov
ef304f6bca Fix Node::GetSignedWorldScale. Related to #1926. 2017-05-17 23:38:27 +03:00
Eugene Kozlov
c93d95854d Add helper getters for Matrix3, Matrix3x4, Matrix4. Minor style and typo fixes. 2017-05-17 23:38:23 +03:00
Eugene Kozlov
268c4523cb Merge pull request #1939 from eugeneko/master
Add support of arbitrary data in Sound, Animation and Texture resources.
2017-05-17 21:14:37 +03:00
Lasse Öörni
77170d68ad Avoid calling strlen unnecessarily within AngelScript's ParseToken. May have effect on #1946. 2017-05-17 10:52:55 +03:00
Eugene Kozlov
34adb450f0 Remove trailing spaces. 2017-05-17 00:46:05 +03:00
Eugene Kozlov
baf0daf7aa Add support of arbitrary data in Sound, Animation and Texture resources. 2017-05-17 00:46:05 +03:00
Lasse Öörni
7493684840 Disable unsupported functions on iOS. 2017-05-16 10:22:20 +03:00
Lasse Öörni
9be9330851 Merge remote-tracking branch 'Florastamine/master' into platform-query-functions 2017-05-16 10:09:16 +03:00
Huy Nguyen
497d09f997 Fixed coding convention, replaced atoi(), minor cleanup. 2017-05-15 20:23:14 +07:00
Huy Nguyen
3db26b4fad Fixed missing include for atoi(). 2017-05-14 21:37:20 +07:00
Huy Nguyen
fea5ece69b Added macOS/Mac OS X support for OSGetVersion(). 2017-05-14 21:30:10 +07:00
Huy Nguyen
973c426d69 Rewrote GetLoginName() to properly detect the logged on user. 2017-05-14 21:26:42 +07:00
Huy Nguyen
0df11623c6 Sync with the platform-query-functions branch. 2017-05-14 19:10:21 +07:00
Lasse Öörni
ea15976d7c Add Print() 64-bit integer overloads to AngelScript API. 2017-05-14 12:39:51 +03:00
Lasse Öörni
2af2ec66a2 Merge pull request #1943 from PredatorMF/master
Add missing monitor/refresh rate members initialization
2017-05-13 23:04:42 +03:00
Lasse Öörni
8e32ad01b4 Code convention / comment edits and remove unnecessary ? operator. 2017-05-13 18:26:06 +03:00
urho3d-travis-ci
e88a03154f Travis CI: API documentation update at 2017-05-13 11:38:55 UTC.
[ci package]

Commit: a90bc49b56

Message: Move SoundSource new function registration to APITemplates.h so it works on both SoundSource & SoundSource3D. Minor comment formatting fix. Add contributor.
2017-05-13 11:38:55 +00:00
Lasse Öörni
a90bc49b56 Move SoundSource new function registration to APITemplates.h so it works on both SoundSource & SoundSource3D. Minor comment formatting fix. Add contributor. 2017-05-13 13:05:51 +03:00
Lasse Öörni
e6b9b9557b Squashed commit of the following:
commit 2542705105c840d7507893d24af70ca4673532bd
Author: meshonline <artgolf1000@gmail.com>
Date:   Fri May 12 18:46:45 2017 +0800

    add seek method.
2017-05-13 12:12:06 +03:00
Huy Nguyen
c88c5e6779 Update ProcessUtils.cpp 2017-05-12 21:49:59 +07:00
Huy Nguyen
c29baecbe2 Update ProcessUtils.cpp 2017-05-12 19:32:32 +07:00
Huy Nguyen
dc1746bc6e Exclude other platforms except Windows and Linux. 2017-05-12 19:29:30 +07:00
lhinuz
51935fdcc2 Fix missing #pragma once; 2017-05-11 00:08:51 +08:00
Florastamine
31d0a8afc5 Oops. 2017-05-10 11:23:01 +07:00
Florastamine
4b627f7f72 Fix & minor cleanup. 2017-05-10 11:13:04 +07:00
Florastamine
4c7647aa29 GetOSVersion() returns the version of the OS. 2017-05-09 14:15:57 +07:00
Florastamine
c0c3f56678 GetHostName() returns name of the computer. 2017-05-09 14:13:57 +07:00
Florastamine
de1af331ac GetLoginName() returns the name of the currently logged in user. 2017-05-09 14:09:44 +07:00
Florastamine
c7981ecad1 GetTotalMemory(), which returns the total amount of useable memory. 2017-05-09 14:07:00 +07:00
urho3d-travis-ci
1d4be4ca65 Travis CI: API documentation update at 2017-05-08 10:41:33 UTC.
[ci package]

Commit: cc26cac198

Message: Use base16 for VariantMap hash key conversion in both directions in JSONValue. Expose JSONValue Get/Set Variant & VariantMap to script.
2017-05-08 10:41:33 +00:00
Lasse Öörni
cc26cac198 Use base16 for VariantMap hash key conversion in both directions in JSONValue. Expose JSONValue Get/Set Variant & VariantMap to script. 2017-05-08 13:31:28 +03:00
urho3d-travis-ci
ce69ad556e Travis CI: API documentation update at 2017-05-06 09:47:10 UTC.
[ci package]

Commit: af2ecd5414

Message: Fix copy-paste error in bindings.
2017-05-06 09:47:10 +00:00
Lasse Öörni
af2ecd5414 Fix copy-paste error in bindings. 2017-05-06 12:23:02 +03:00
Lasse Öörni
db29964574 Apply CollisionShape2D / signed world scale patch from Ricardo Abreu. Closes #1926. 2017-05-06 12:21:50 +03:00
Lasse Öörni
d9b5db969f Merge pull request #1930 from 1vanK/master
40_Localization: Center mouse on start
2017-05-06 10:46:12 +03:00
1vanK
16412186e0 Allow trailing commas in JSON 2017-05-05 23:12:30 +03:00
1vanK
fa767d1dc1 40_Localization: Center mouse on start 2017-05-05 19:39:45 +03:00
Lasse Öörni
60f4a3b80f Merge remote-tracking branch '1vanK/master' 2017-05-05 11:56:15 +03:00
Lasse Öörni
71270913b2 Fix issue in SanitateResourceName() on OSX where there could be /./ in executable path, leading the function to fail. 2017-05-04 22:13:16 +03:00
urho3d-travis-ci
d79f0f6122 Travis CI: API documentation update at 2017-05-04 17:43:08 UTC.
[ci package]

Commit: c1da87a498

Message: Merge pull request #1927 from eugeneko/master

Minor fix and helper function
2017-05-04 17:43:08 +00:00
1vanK
e1e6016eeb Update rapidjson lib 2017-05-04 17:28:02 +03:00
Eugene Kozlov
06901b3eb2 Add methods to get rotation axis and angle from Quaternion. 2017-05-03 15:09:30 +03:00
Eugene Kozlov
f42bd0d24f Fix crash when ScriptObject constructor throws. 2017-05-03 12:43:44 +03:00
urho3d-travis-ci
81fc8cb79f Travis CI: API documentation update at 2017-05-02 18:52:39 UTC.
[ci package]

Commit: 29ebd52590

Message: Expose getting JSONValue keys & values as arrays in AngelScript. Closes #1924.
2017-05-02 18:52:39 +00:00
Lasse Öörni
29ebd52590 Expose getting JSONValue keys & values as arrays in AngelScript. Closes #1924. 2017-05-02 21:43:10 +03:00
Lasse Öörni
d57e7bc5c4 Fix JSONValue::End() and typo. Closes #1925. 2017-05-02 20:46:46 +03:00
urho3d-travis-ci
c211d51e6b Travis CI: API documentation update at 2017-04-29 18:44:32 UTC.
[ci package]

Commit: 61d73cf659

Message: Add contributor credit.
2017-04-29 18:44:32 +00:00
Lasse Öörni
d4df1937c8 Line breaks formatting for RaycastVehicle demo code. 2017-04-29 20:33:36 +03:00
Lasse Öörni
13cfad66ef RaycastVehicle code / comments formatting and AngelScript fix. RegisterRaycastVehicleLibrary function removed and class registration performed as part of Physics library initialization instead. 2017-04-29 20:21:55 +03:00
Lasse Öörni
c145b3e03d Merge remote-tracking branch 'slapin/raycast-vehicle' 2017-04-29 19:04:50 +03:00
Lasse Öörni
0fe1f9d6ca Fix the GetElementAt() layout optimization, which should not check up/left limits for child elements in layout. Closes #1923. 2017-04-28 16:40:26 +03:00
Yao Wei Tjong
108530ff45 Merge pull request #1921 from cosmy1/libs-update
Libs update
2017-04-28 09:36:14 +08:00
Lasse Öörni
1dcc111e72 Fixed remaining morph weight check to just check for not equal to zero. 2017-04-27 15:59:33 +03:00
Lasse Öörni
fd68fb6a5e Remove morph clamping. 2017-04-27 13:37:32 +03:00
cosmy
aa6c87f18d Update LZ4 license year. 2017-04-26 20:39:09 +02:00
cosmy
7902fba3b9 Replace deprecated LZ4 functions in Urho3D. 2017-04-26 20:15:04 +02:00
cosmy
0d91c33e22 Update LZ4 to 1.7.5. 2017-04-26 20:14:28 +02:00
Lasse Öörni
cbed718c31 Merge remote-tracking branch 'viva64/loop_conditional' 2017-04-25 21:00:00 +03:00
Svyatoslav
e063eae963 IKSolver.spp: PVS-Studio: Non-void function should return a value
Signed-off-by: Svyatoslav <razmyslov@viva64.com>
2017-04-25 18:40:00 +03:00
Svyatoslav
128230d462 PackageTool.cpp: PVS-Studio: fixed conditional expression of the loop.
Signed-off-by: Svyatoslav <razmyslov@viva64.com>
2017-04-25 18:25:02 +03:00
cosmy1
3c360b9627 Update SQLite to 3.18.0. 2017-04-25 13:26:25 +02:00
cosmy1
0a66603da7 Update boost preprocessor to 1.64.0. 2017-04-25 13:14:15 +02:00
Sergey Lapin
2eb3a1183a RaycastVehicle C++ demo code 2017-04-25 13:45:09 +03:00
Sergey Lapin
18868d74c9 Bullet RaycastVehicle support 2017-04-23 01:29:49 +03:00
Lasse Öörni
218f48ea98 Add lowdpi command line option to force low DPI on Retina display. 2017-04-22 00:32:55 +03:00
Lasse Öörni
493b97225d Clarify ResourceCache function documentation regarding manual resources. 2017-04-21 12:47:53 +03:00
Yao Wei Tjong 姚伟忠
d53928310c Workaround struct redefinition on some newer MinGW header files.
Fix #1899.
2017-04-15 00:55:49 +08:00
urho3d-travis-ci
c3622175d3 Travis CI: API documentation update at 2017-04-14 12:06:07 UTC.
[ci package]

Commit: 1d3c20aa70

Message: Double up the editor UI when on High DPI display.
2017-04-14 12:06:07 +00:00
Yao Wei Tjong 姚伟忠
1d3c20aa70 Double up the editor UI when on High DPI display. 2017-04-14 19:57:16 +08:00
Lasse Öörni
de5a3c118a Add comment to Node::RemoveChild(). 2017-04-13 23:55:25 +03:00
Lasse Öörni
ac9867669f Merge remote-tracking branch 'ssinai1/recursive-remove' 2017-04-13 22:04:44 +03:00
Yao Wei Tjong 姚伟忠
0e4060b61a Use no_weak_imports linker flag to ignore weak symbol during detection. 2017-04-13 19:35:23 +08:00
Yao Wei Tjong 姚伟忠
5b1fdb8852 Also exclude the IK sample when the URHO3D_IK option is disabled. 2017-04-13 17:13:41 +08:00
TheComet
183d2d835e fixes #1907 - Compiler error when URHO3D_IK=OFF 2017-04-12 23:36:55 +02:00
ssinai1
ed3c298106 Fixed: Erasing sibling nodes from component destructor can result in segfault. 2017-04-12 19:32:58 +02:00
Lasse Öörni
e76fea99e8 Fix compile fail if including ValueAnimationInfo.h without other needed includes. 2017-04-12 12:24:04 +03:00
urho3d-travis-ci
f9c811f61c Travis CI: API documentation update at 2017-04-11 08:51:06 UTC.
[ci package]

Commit: 5b0aa268c5

Message: Handle namespace of constants in AngelScript API dump.
2017-04-11 08:51:06 +00:00
Lasse Öörni
5b0aa268c5 Handle namespace of constants in AngelScript API dump. 2017-04-11 11:41:07 +03:00
urho3d-travis-ci
129205a9b1 Travis CI: API documentation update at 2017-04-10 18:11:53 UTC.
[ci package]

Commit: 150c4fb26d

Message: Export some consts to AngelScript
2017-04-10 18:11:53 +00:00
1vanK
150c4fb26d Export some consts to AngelScript 2017-04-09 22:17:34 +03:00
Lasse Öörni
afc5618d5e Merge remote-tracking branch 'ombre5733/fix-rapidjson-usage' 2017-04-09 19:06:30 +03:00
Manuel Freiberger
33179317a6 Populate a newly created rapidjson-value before adding it to the parent.
When converting JSONValue to rapidsjon::Value, create the array elements and
object properties fully before adding them to rapidjson. This makes the
whole operation more efficient because it avoids a useless lookup on the
newly created/added elements.
2017-04-09 15:53:24 +02:00
Manuel Freiberger
f37ffb57a8 Fixed blend modes for 2D particles
The 2D particles had missing blend mode functions for
BlendMode::BLEND_SUBTRACT and BLEND_SUBTRACTALPHA. The values for the
functions have been copied from OGLGraphics.cpp.

If C++11 is enabled, the size of the struct is checked with a static
assertion, now.
2017-04-09 15:19:55 +02:00
Lasse Öörni
76ae937ceb When texture size is assigned for Texture2D / Texture2DArray / TextureCube, set depth to 1 to allow generic width * height * depth calculations. Closes #1894. 2017-04-08 20:50:44 +03:00
orefkov
e4c5001bfb Copy changes from AngelScript's sources, revision r2382.
Fixed problem with calling function expecting @&in where the argument was itself a & argument.
https://www.gamedev.net/topic/686912-array-with-objects-handles/
2017-04-08 20:50:44 +03:00
Yao Wei Tjong 姚伟忠
9daf887f10 Phasing out universal binary build for macOS platform.
Close #1895.
2017-04-09 00:04:41 +08:00
Yao Wei Tjong 姚伟忠
ec102aadfc Reorder initialization order to suppress Xcode warnings. 2017-04-08 23:52:44 +08:00
urho3d-travis-ci
0ae20c528b Travis CI: API documentation update at 2017-04-05 19:35:46 UTC.
[ci package]

Commit: dd0caa6ab7

Message: Move ParticleEmitter2D events into Urho2DEvents header file. Add event parameters and safeguard for event handling causing component destruction. Add contributor credit.
2017-04-05 19:35:46 +00:00
Lasse Öörni
dd0caa6ab7 Move ParticleEmitter2D events into Urho2DEvents header file. Add event parameters and safeguard for event handling causing component destruction. Add contributor credit. 2017-04-05 22:23:13 +03:00
Lasse Öörni
f1513fcaae Allow name-based child attribute animation also on UIElement. 2017-04-05 21:54:37 +03:00
PredatorMF
1bbcdbc42e Add missing monitor/refresh rate members initialization 2017-04-05 21:50:00 +03:00
Lasse Öörni
af6ee8e438 Merge remote-tracking branch 'orefkov/master' 2017-04-05 21:00:08 +03:00
Yao Wei Tjong 姚伟忠
420ce387e0 Partial revert on commit f74f4dd so it doesn't have harcoding anymore.
The change in that commit was done before we have introduced the resource prefix path which is more flexible in setting up where the resources can be searched.
2017-04-05 18:16:49 +08:00
Yao Wei Tjong 姚伟忠
2efbcd570c Rename "define_resource_files" macro to "define_resource_dirs".
Enhance it to take extra arguments for specifiying target-specific resource directories and other extra for Web platform support.
Close #809.
2017-04-05 18:16:36 +08:00
orefkov
c6714aa70b Merge remote-tracking branch 'upstream/master' 2017-04-05 01:24:35 +03:00
orefkov
ef5f4ddd12 Add class factories to script api dump. 2017-04-05 01:11:34 +03:00
urho3d-travis-ci
4078b9f842 Travis CI: API documentation update at 2017-04-04 18:11:18 UTC.
[ci package]

Commit: cd6f76f26e

Message: Merge pull request #1856 from eugeneko/master

Improve Box2D integration
2017-04-04 18:11:18 +00:00
Eugene Kozlov
29952585b1 Revert contacts auto-disabling. 2017-04-04 10:11:42 +03:00
Eugene Kozlov
eba18bcc99 Add events for b2ContactListener::PreSolve callback. Suppress re-enabling contact on each update. 2017-04-04 09:44:07 +03:00
Eugene Kozlov
fc88f5a32b Expose additional info in PhysicsEvents2D. 2017-04-04 09:44:07 +03:00
Yao Wei Tjong 姚伟忠
240e4d1c54 Fix unnecessary exposure of ik's generated header files. 2017-04-04 13:47:06 +08:00
urho3d-travis-ci
d59424daae Travis CI: API documentation update at 2017-04-03 23:26:36 UTC.
[ci package]

Commit: 0eb813518a

Message: Merge remote-tracking branch 'origin/TheComet93-InverseKinematics'
2017-04-03 23:26:36 +00:00
Lasse Öörni
0eb813518a Merge remote-tracking branch 'origin/TheComet93-InverseKinematics' 2017-04-03 21:26:17 +03:00
Lasse Öörni
98322561be Minor code formatting. Add contributor. 2017-04-03 21:16:46 +03:00
orefkov
3020b9062a Clearing code. 2017-04-03 20:31:50 +03:00
orefkov
36a2f29580 Fix tabs 2017-04-03 18:48:34 +03:00
orefkov
1d69458d27 Fix particle emitting duration.
Add event for ending particles emitting.
Add event for all particles over.
2017-04-03 17:16:36 +03:00
orefkov
fb9fcfba6c Added the ability to specify a child node by name when setting attribute animation path. 2017-04-03 17:14:34 +03:00
orefkov
2d3f3fd122 Improve AngelScript API dump. 2017-04-03 17:11:47 +03:00
Manuel Freiberger
0a09c97588 Fix Thread::GetCurrentThreadID() if threading is disabled.
When URHO3D_THREADING is not defined, Thread::GetCurrentThreadID() was missing a return statement.
2017-04-02 21:21:29 +02:00
Yao Wei Tjong 姚伟忠
3758048112 Fix mini-urho build. 2017-04-01 23:32:18 +08:00
Yao Wei Tjong 姚伟忠
b3f4b1d9a0 Include memory backtrace source code only when the option is enabled.
Prevent Web platform to enable the memory backtracing build option.
2017-04-01 23:32:14 +08:00
Yao Wei Tjong 姚伟忠
11299ce86e Fix the Lua IK sample crash due to missing bindings. 2017-04-01 21:28:27 +08:00
Yao Wei Tjong 姚伟忠
8c9122ce25 Minor refactoring and cleaning on IK component's code. 2017-04-01 21:28:27 +08:00
Yao Wei Tjong 姚伟忠
e62179f133 Integrate IK sub-library with Urho3D's build system. 2017-04-01 21:28:27 +08:00
Yao Wei Tjong 姚伟忠
a8dcfa2be9 Merge branch 'InverseKinematics' of https://github.com/TheComet93/Urho3D into TheComet93-InverseKinematics 2017-04-01 14:20:56 +08:00
urho3d-travis-ci
f2c01b1c00 Travis CI: API documentation update at 2017-03-30 14:09:06 UTC.
[ci package]

Commit: 7bf75955d8

Message: Minor code convention edit to avoid underscore in function name.
2017-03-30 14:09:07 +00:00
Lasse Öörni
7bf75955d8 Minor code convention edit to avoid underscore in function name. 2017-03-30 16:54:59 +03:00
Konstant
795af77d74 Bind ResourceCache::GetResources. 2017-03-30 15:49:07 +02:00
Lasse Öörni
84605eec12 Fix comment. Closes #1884. 2017-03-30 10:29:01 +03:00
Lasse Öörni
9df8cfd0a8 Add note on usage of DebugNew.h. Closes #1879. 2017-03-27 11:35:15 +03:00
Yao Wei Tjong 姚伟忠
9d84ccffe4 Initial attempt to support MODULE library type for Web platform.
Disallow memory growth when using MODULE lib-type.
Move the resource defining and checking logic into their own macros.
2017-03-26 22:18:35 +08:00
Lasse Öörni
2e19e8a28f Merge remote-tracking branch 'rokups/feature/move-ui-root-element' 2017-03-24 13:37:29 +02:00
Rokas Kupstys
ca76683568 IntVector2 constants 2017-03-23 19:27:48 +02:00
Rokas Kupstys
5e9579b23a Allow root UI element to be moved. 2017-03-23 18:09:02 +02:00
urho3d-travis-ci
c73f0651e7 Travis CI: API documentation update at 2017-03-22 21:12:55 UTC.
[ci package]

Commit: e92c0ee093

Message: Merge pull request #1872 from Florastamine/master

Add Animation::GetTrack(unsigned)
2017-03-22 21:12:55 +00:00
Florastamine
eb9e5c8b6e Fixed coding style; added AngelScript binding. 2017-03-23 01:27:35 +07:00
Florastamine
00599723aa Added Animation::GetTrack(unsigned) 2017-03-23 00:24:41 +07:00
Alex Murray
68f8d23411 Fixing issues raised by Mike3D (incorrect offset in sample, exposing auto solve) 2017-03-22 14:23:14 +01:00
TheComet
327965a40c Fixing build on windows, fixing segfault in release builds 2017-03-22 02:15:32 +01:00
TheComet
d355540f41 Trying proposed _PSTDINT_H_INCLUDED fix. Reformatting some docstrings 2017-03-21 17:51:14 +01:00
TheComet
816577e98a Fix compiler error 2017-03-21 15:56:47 +01:00
TheComet
d2911ad455 Adding ik library to Urho3D thirdparty libs 2017-03-21 15:56:47 +01:00
TheComet
e6208ab85f Adding detailed docstrings in IK headers 2017-03-21 15:56:47 +01:00
TheComet
8fc0aa2866 Lua script bindings and CPP sample 2017-03-21 15:56:47 +01:00
TheComet
f73b1d16ab Adding IKConstraint support, but it is not not yet usable 2017-03-21 15:56:47 +01:00
TheComet
269a219aae Fixing undefined reference issues in IK sample 2017-03-21 15:56:47 +01:00
TheComet
2be9286d38 Wrote AngelScript bindings, I'm still considering renaming a few things here and there 2017-03-21 15:56:47 +01:00
TheComet
124fd3e0b5 Exposing target rotation settings 2017-03-21 15:56:47 +01:00
TheComet
ea5580f357 Weighted rotations (experimental) 2017-03-21 15:56:47 +01:00
TheComet
073f7ef571 Exposing weighted nlerp 2017-03-21 15:56:47 +01:00
TheComet
b5ded0814a Updating enums 2017-03-21 15:56:47 +01:00
TheComet
1b780a219f Update initial pose every frame to support animated models 2017-03-21 15:56:46 +01:00
TheComet
06a9e87391 IKEffector sets weight (and clamps) correctly 2017-03-21 15:56:46 +01:00
TheComet
b0affd8d9b IKSolver options to enable/disable angle calculations and continuous solving 2017-03-21 15:56:46 +01:00
TheComet
7e36538c44 Reset to initial pose when the tree changes 2017-03-21 15:56:46 +01:00
TheComet
7b3cd64b02 More attributes for settings things. Adapting IKSolver so multiple solvers can be created. It is no longer a subsystem. All child chains terminate at the IKSolver node 2017-03-21 15:56:46 +01:00
TheComet
47a5a077a6 Adapting to changed callback function signature 2017-03-21 15:56:46 +01:00
TheComet
b22871ff20 Applying positions as well as rotations 2017-03-21 15:56:46 +01:00
TheComet
e45d37c230 Adding more debug drawing stuff 2017-03-21 15:56:46 +01:00
TheComet
067785d022 Setting the algorithm creates a new solver 2017-03-21 15:56:46 +01:00
TheComet
cf30fb98c0 Adding IK library to Urho3D, enable/disable it with -DURHO3D_IK 2017-03-21 15:56:46 +01:00
urho3d-travis-ci
eeb4eab788 Travis CI: API documentation update at 2017-03-20 16:32:22 UTC.
[ci package]

Commit: 90e95ab2e3

Message: Update documentation. Add contributor credit. Minor code comment fixes.
2017-03-20 16:32:22 +00:00
Lasse Öörni
90e95ab2e3 Update documentation. Add contributor credit. Minor code comment fixes. 2017-03-20 18:11:12 +02:00
Lasse Öörni
4e30d6f522 Merge remote-tracking branch 'PredatorMF/master' 2017-03-20 17:07:48 +02:00
PredatorMF
0b560f3667 Fix get_monitorCount causing error in AS 2017-03-19 15:35:45 +02:00
PredatorMF
61b7993b20 Expose monitor count to scripting API 2017-03-19 14:44:51 +02:00
PredatorMF
41cca32000 Add Graphics::GetMonitorCount() 2017-03-19 14:42:22 +02:00
PredatorMF
7190e053c4 Fix fullscreen mode not using the correct monitor 2017-03-19 14:40:36 +02:00
urho3d-travis-ci
03fdf19758 Travis CI: API documentation update at 2017-03-19 03:39:21 UTC.
[ci package]

Commit: 8c91b0b32f

Message: Use a dummy enum declaration to avoid duplicate Lua global constants.
2017-03-19 03:39:21 +00:00
Yao Wei Tjong 姚伟忠
8c91b0b32f Use a dummy enum declaration to avoid duplicate Lua global constants. 2017-03-19 11:30:21 +08:00
PredatorMF
2bef979152 Add monitor and refreshrate parameters to E_SCREENMODE 2017-03-18 12:59:27 +02:00
PredatorMF
11c8bf9d16 Fix DX11 renderer with monitor/refresh rate options 2017-03-18 00:00:19 +02:00
PredatorMF
f8beaad5cb Fix OpenGL renderer with monitor/refresh rate options 2017-03-17 23:26:01 +02:00
PredatorMF
07b9675dfd Add monitor and refresh rate options for fullscreen/borderless 2017-03-17 22:01:23 +02:00
urho3d-travis-ci
b8515b563f Travis CI: API documentation update at 2017-03-16 18:26:27 UTC.
[ci package]

Commit: 53d18649d4

Message: Redefine AutoRemoveMode where used in the Lua pkgs to prevent incorrect bindings code generation.
2017-03-16 18:26:27 +00:00
Lasse Öörni
53d18649d4 Redefine AutoRemoveMode where used in the Lua pkgs to prevent incorrect bindings code generation. 2017-03-16 20:17:13 +02:00
Lasse Öörni
3f177185eb Merge remote-tracking branch 'Enhex/master' 2017-03-16 19:20:01 +02:00
Enhex
a3795cfc3a Fix Doxygen comment 2017-03-15 21:15:37 +02:00
Lasse Öörni
a5ff4f43c6 Avoid calling asGetActiveContext() in template functions, as it might result in undefined symbol when used in application code with shared library Urho3D build. Make GetScriptContext() safe to call when it would return null. Provide function GetActiveASContext() (in ScriptInstance.h) as a wrapper. 2017-03-15 17:37:07 +02:00
Lasse Öörni
eccf7cef88 Added documentation chapter on scene graph events, and that individual component removals are not signaled when node is removed. Closes #1864. 2017-03-15 12:12:06 +02:00
Enhex
516fcf18e5 Updated sound effects sample to use SetAutoRemoveMode() instead of nodes. 2017-03-14 23:58:59 +02:00
Lasse Öörni
8561254832 Remove no longer used function declaration. Closes #1861. 2017-03-14 11:34:11 +02:00
Rokas Kupstys
c92d668940 Fix jumping slider knob when it's size is fixed. 2017-03-11 17:34:01 +02:00
Lasse Öörni
5f0b5a6211 Fix ParticleEmitter finish event not working when emission is explicitly disabled with SetEmitting(false). Cleanup ParticleEmitter code. Closes #1854. 2017-03-11 16:25:17 +02:00
Lasse Öörni
d27da7d81c Fix call to Vector & PODVector::EraseSwap(). Closes #1855. 2017-03-11 00:58:05 +02:00
Yao Wei Tjong
106bfcb919 Merge pull request #1849 from iSLC/master
Remove duplicate macro in SDL windows joystick implementation.
2017-03-08 21:42:11 +08:00
Lasse Öörni
48a1f3dcdd Take fix from AngelScript WIP version to fix temp variable corruption. Remove now unnecessary fix from Editor script code. Closes #1850. 2017-03-08 14:26:52 +02:00
Sandu Liviu Catalin
d94a10f488 Remove duplicate macro in SDL windows joystick implementation. 2017-03-07 21:38:50 +02:00
Lasse Öörni
1b725367fc Place proper type check for StaticModel vs. AnimatedModel SetModel() into AngelScript API instead of StaticModel C++ code logging a warning and redirecting. Add a porting note related to this. 2017-03-07 17:36:58 +02:00
Yao Wei Tjong 姚伟忠
5579d1cca8 Prevent unnecessary incremental build due to git branch switching. 2017-03-06 23:09:50 +08:00
Yao Wei Tjong 姚伟忠
ff85c9522a Rename the module and toolchain names to follow new naming convention. 2017-03-06 22:12:27 +08:00
Yao Wei Tjong 姚伟忠
d7eded9178 Add new build option to enable WASM support.
Remove redundant Emscripten build option for pre-generating the system libraries because newer Emscripten version has fixed the cache lock issue.
2017-03-05 08:46:29 +08:00
Yao Wei Tjong 姚伟忠
0c88c99112 Allow possibility of building Urho3D without C++ exceptions feature.
Disallow Android build to turn off C++ RTTI feature.
2017-03-05 08:46:22 +08:00
Yao Wei Tjong 姚伟忠
2f8a80def4 Rewrite from scratch a new Android toolchain file.
The new toolchain file requires Android NDK r12b and above. Default to use 'arm-linux-androideabi-clang' toolchain and LLVM libc++ STL runtime.
Align all the compiler and linker flags according to new ndk-build configuration in Android NDK r12b, i.e. no more '-f[no-]strict-aliasing' and '-f[no-]omit-frame-pointer', but more stringent warnings check.
Improve over the old toolchain file where most of the options are now changeable after the initial configuration. The exceptions are ANDROID_NDK and ANDROID_TOOLCHAIN_NAME due to limitation of CMake.
Close #1441.
Other changes in this commit includes:
- Fix Android sample launcher app to support shared C++ STL runtime library.
- Remove temporary fix in FindUrho3D module as it is not required anymore with our new toolchain file.
- Fix Log::WriteRaw() method to pass the parameters correctly to __android_log_print() function.
- Fix enable_pch() macro to emit -fPIC compiler flags correctly based on target's POSITION_INDEPENDENT_CODE property.
- Fix linker flags for ld.bfd where it needs help to find the location of the rooted shared libraries. The flags are not required for ld.gold but they do no harm for gold linker.
- Enhance the CheckCompilerToolchain module to auto-detect if the NEON SIMD is enabled or not for Android build (based on the chosen ANDROID_ABI).
2017-03-05 08:45:40 +08:00
Yao Wei Tjong 姚伟忠
f32cbb72b0 Rename Urho3D-CMake-common.cmake module to UrhoCommon.cmake.
To be consistent with the other modules. Drop the '3D' simply because it sticks out in 'Urho3DCommon'.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
ffd24cafa1 Take advantage of CMAKE_SYSROOT available in the newer CMake.
Use CMAKE_SYSROOT to manage the sysroot automatically when cross-compiling instead of adding the '--sysroot' flag manually everywhere. We only need to add it manually in places where CMake does not, like in our custom GCC/Clang response file for PCH.
Differentiate between setting up header search path for system headers and for application headers so that GCC/Clang may suppress compilation warnings from the former, if any.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
3b02eeb5eb For CI - suppress all the 3rd-party libraries' warnings.
Somehow after bumping up the CMake minimum version, CMake configures Xcode to work "better" with xcpretty that now the warnings are piping through the xcpretty's filter. Unfortunately when performing CI build, this is undesirable because not only now the log size is swelling, the build is slower too.
2017-03-05 08:45:38 +08:00
Yao Wei Tjong 姚伟忠
73c97d9f64 Only add defines at the scope they are actually required. 2017-03-05 08:45:38 +08:00
Yao Wei Tjong 姚伟忠
3d9eb3f694 Bake CC and CXX env-vars in case they are short lived in init process. 2017-03-05 08:45:38 +08:00
Yao Wei Tjong 姚伟忠
bbbbdb0108 Check native compiler toolchain is available before proceeding.
Some cross-compiling build tree configuration needs native compiler toolchain for host tool building via ExternalProject_Add(). This additional check ensures the native compiler toolchain is available up front before the build tree is even generated. Close #1300.
2017-03-05 08:45:21 +08:00
Yao Wei Tjong 姚伟忠
9f19d51c08 Remove older constructs that have been earmarked previously. 2017-03-05 08:34:41 +08:00
Yao Wei Tjong 姚伟忠
3475afba54 Bump the CMake minimum version in the CMakeLists.txt files. 2017-03-05 08:34:41 +08:00
urho3d-travis-ci
e63db60b9a Travis CI: API documentation update at 2017-03-04 18:23:30 UTC.
[ci package]

Commit: c9331a6cc9

Message: Merge pull request #1832 from eugeneko/master

Extract some code to increase reusability.
2017-03-04 18:23:30 +00:00
Eugene Kozlov
d60e96c866 Add script binding for Node::IsChildOf. 2017-03-04 19:13:20 +03:00
Eugene Kozlov
0c400e3d9d Split Engine::Initialize 2017-03-04 19:13:20 +03:00
Eugene Kozlov
94bf1f3a85 Prepare to extract code from Engine::Initialize. 2017-03-04 19:13:20 +03:00
Eugene Kozlov
76ddec737e Add Node::IsChildOf member function. 2017-03-04 19:13:20 +03:00
Eugene Kozlov
042efb8943 Add [POD]Vector::IndexOf function. 2017-03-04 19:13:20 +03:00
urho3d-travis-ci
f219fb5d23 Travis CI: API documentation update at 2017-03-04 14:22:17 UTC.
[ci package]

Commit: 07da64de58

Message: Fix registration of NamedPipe to AngelScript API to use the proper class.
2017-03-04 14:22:17 +00:00
Lasse Öörni
07da64de58 Fix registration of NamedPipe to AngelScript API to use the proper class. 2017-03-04 15:59:03 +02:00
Lasse Öörni
fbe80c964e Merge remote-tracking branch 'rokups/AbstractFile' 2017-03-04 15:23:05 +02:00
1vanK
658baf4f3a Add info about shapes to PhysicsEvents2D 2017-03-04 14:00:07 +02:00
Yao Wei Tjong 姚伟忠
e45275e689 Add conditional compiler define for MSVC compiler.
Fix #1845 [skip travis]
2017-03-04 13:13:08 +08:00
urho3d-travis-ci
8230d0bb99 Travis CI: API documentation update at 2017-03-02 20:19:12 UTC.
[ci package]

Commit: 08fd3b7690

Message: Minor documentation expansion on use of std::bind() for events.

commit 873adf5565f8537f9d06f69a649c57635ab1c2de
Merge: 0a19418 f75a784
Author: carnalis <carnalis.j@gmail.com>
Date:   Thu Mar 2 14:25:42 2017 -0500

    Merge branch 'master' of github.com:carnalis/Urho3D

commit 0a1941814ec656d31bb5399c919ba516a2cda7cb
Author: carnalis <carnalis.j@gmail.com>
Date:   Fri Jan 13 21:24:53 2017 -0500

    Minor documentation expansion on use of std::bind() for events.

commit f75a784102708998841302c70736be39eeb2300d
Merge: 84a1f82 06d2100
Author: carnalis <carnalis.j@gmail.com>
Date:   Thu Mar 2 04:42:56 2017 -0500

    Merge branch 'master' of github.com:carnalis/Urho3D

commit 84a1f827752335260b7a5bd6a180613bd018af7e
Author: carnalis <carnalis.j@gmail.com>
Date:   Fri Jan 13 21:24:53 2017 -0500

    Minor documentation expansion on use of std::bind() for events.

commit 06d210045af24646a6161daeaff28fd9828dccfd
Merge: 20877d0 71e9501
Author: carnalis <carnalis.j@gmail.com>
Date:   Fri Jan 20 09:59:31 2017 -0500

    Merge branch 'master' of github.com:carnalis/Urho3D

commit 20877d01c805f58234798f6a0b1baeeee1e1628e
Author: carnalis <carnalis.j@gmail.com>
Date:   Fri Jan 13 21:24:53 2017 -0500

    Minor documentation expansion on use of std::bind() for events.

commit 71e9501934cc9a67eeae1d0c524dbc11a1bd96db
Author: carnalis <carnalis.j@gmail.com>
Date:   Fri Jan 13 21:24:53 2017 -0500

    Minor documentation expansion on use of std::bind() for events.
2017-03-02 20:19:12 +00:00
Lasse Öörni
874f853c1f Change Quaternion Slerp & Nlerp parameters to use a const reference by using a sign variable instead. Closes #1835. 2017-03-02 21:52:05 +02:00
urho3d-travis-ci
70186e700e Travis CI: API documentation update at 2017-03-01 19:27:37 UTC.
[ci package]

Commit: 00816efec2

Message: Add XMLElement::GetInt64 & GetUInt64 for completeness.
2017-03-01 19:27:37 +00:00
Lasse Öörni
00816efec2 Add XMLElement::GetInt64 & GetUInt64 for completeness. 2017-03-01 21:13:42 +02:00
Lasse Öörni
39c41dc6a6 Shorten long long int to long long. 2017-03-01 20:29:18 +02:00
Rokas Kupstys
ea655297dc Added AbstractFile class. It is used as parent class for classes that implement both Serializer and Deserialized. 2017-03-01 12:44:30 +02:00
Rokas Kupstys
6a7a57eace More 64bit variant work, lua and angelscript bindings. 2017-03-01 12:42:27 +02:00
Rokas Kupstys
f90dde08fe 64bit integer variant 2017-02-28 17:21:19 +02:00
1vanK
779d2835be Rename CheckDrawableVisibility() to CheckDrawableVisibilityWork() to match common style 2017-02-26 02:14:14 +03:00
urho3d-travis-ci
1760b0fa7c Travis CI: API documentation update at 2017-02-25 12:46:18 UTC.
[ci package]

Commit: e1202b725a

Message: Add other body nodeID attribute to Constraint2D for proper body connection serialization. Closes #1825.
2017-02-25 12:46:18 +00:00
Lasse Öörni
e1202b725a Add other body nodeID attribute to Constraint2D for proper body connection serialization. Closes #1825. 2017-02-25 14:37:07 +02:00
urho3d-travis-ci
af1aba2011 Travis CI: API documentation update at 2017-02-20 19:27:37 UTC.
[ci package]

Commit: 7451d6fece

Message: Add EndAllViewsRender event, emitted when Renderer::Render() is finished. Closes #1830.
2017-02-20 19:27:37 +00:00
Lasse Öörni
7451d6fece Add EndAllViewsRender event, emitted when Renderer::Render() is finished. Closes #1830. 2017-02-20 21:18:01 +02:00
Yao Wei Tjong 姚伟忠
cdbb694c2a Bake 'SDL_USE_IME' compiler define into SDL config header. 2017-02-19 12:34:55 +08:00
Lasse Öörni
540404bee2 Minor refactor for .ies extension detection. 2017-02-18 22:42:07 +02:00