Commit Graph

9869 Commits

Author SHA1 Message Date
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 姚伟忠
68232663cc Add contributors. 2017-11-12 17:18:21 +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
Yao Wei Tjong 姚伟忠
c9eefb2e44 Merge branch 'rokups-fix/Urho3DAll.h' into master.
Close #2169.
2017-11-12 16:19:51 +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
SuperWangKai
611fc1fbff
Merge pull request #7 from urho3d/master
Sync with urho3d
2017-11-05 16:37:30 +08:00
Yao Wei Tjong 姚伟忠
37cba9522d Disable URHO3D_SSE by default (as original intended) for old MinGW. 2017-10-31 21:43:07 +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 姚伟忠
21ed39fad6 Remove support for old Visual Studio versions.
Only newer versions that can handle C++11 features are supported now.
2017-10-26 22:52:15 +08:00
Eugene Kozlov
272eea57c5 Merge pull request #2158 from Modanung/patch-1
Removed a "been" from networking documentation
2017-10-26 00:38:29 +03:00