Commit Graph

9869 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
47d25c27fd For CI - attempt to speed up all the CI jobs on OSX build environment.
Close #2095. [ci package]
2017-08-26 15:41:33 +08:00
Yao Wei Tjong 姚伟忠
65fc4fc09f Remove support for VS 2008 as it does not support C++11 standard. 2017-08-26 15:39:23 +08:00
Yao Wei Tjong 姚伟忠
906a1f1921 Merge branch 'cosmy1-update-sqlite' into master. 2017-08-26 15:38:27 +08:00
cosmy
56e441cb38 Update docs. 2017-08-24 21:16:21 +02: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
dd020d3284 Merge pull request #2088 from eugeneko/docs-update
Update coding conventions for C++11.
2017-08-23 12:08:28 +03:00
Eugene Kozlov
60a4afa9e5 Minor docs update. 2017-08-23 12:07:03 +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
Lasse Öörni
27141fe66b Add contributor. 2017-08-22 20:53:31 +03: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
Eugene Kozlov
35ae79e807 Remove item about constructor style. Add link to google code style guide. 2017-08-22 14:03:15 +03:00
Eugene Kozlov
ce2cb1cf48 Update coding conventions examples. Remove item from 3rdParty contribution checklist. 2017-08-22 13:27:27 +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
Eugene Kozlov
8a93493ca6 Update coding conventions for C++11. 2017-08-21 18:55:18 +03:00
Rokas Kupstys
e2d2f8e388 Fix crash on android
In some cases old activity may be destroyed after new activity is created. `onCreate()` of new activity gets called and initializes new activity as well as static variables, then `onDestroy()` is called on old activity and cleans up static variables that were just initialized by new activity. This change prevents calling `SDLActivity.initialize()` in `onDestroy()` if new activity has already reinitialized static variables.
2017-08-21 15:25:40 +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
Yao Wei Tjong
2118761c5a For CI - correct typo.
[skip appveyor] [ci only: master]
2017-08-21 00:10:27 +08:00
Rokas Kupstys
ad464086e4 Fix for build error on AppVeyor 2017-08-20 18:20:55 +03:00
Yao Wei Tjong 姚伟忠
7e1c82685f For CI - ensure debug build stage does not produce any build artifact. 2017-08-20 22:05:08 +08: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
Yao Wei Tjong 姚伟忠
be87f315f2 For CI - misc. post-mortem fixes. 2017-08-20 16:43:33 +08: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
Lasse Öörni
4612ee2a67 Cutoff current state of porting notes to 1.7 version. 2017-08-19 18:55:51 +03:00
Lasse Öörni
2ac4f89a86 Reorder changelog sections for consistency with last changelog. 2017-08-19 14:36:37 +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
Yao Wei Tjong 姚伟忠
9dfff67e97 Support Web build tree path with spaces.
Fix #2078.
2017-08-19 15:12:33 +08:00
Yao Wei Tjong 姚伟忠
3e58ccf41c Revert "Remove temporary workaround which appears to be redundant now."
This reverts commit 4068d2474e.
2017-08-19 15:11:21 +08:00
Lasse Öörni
4265f99a8c Fix normals / lighting on the cylinder by using auto normal smoothing. Closes #2075. 2017-08-18 22:40:13 +03:00
Lasse Öörni
e877b98544 Typo fix and highlight WebAssembly. 2017-08-18 10:00:59 +03:00
Lasse Öörni
f644b7b87f Initial V1.7 changelog. 2017-08-17 23:00:31 +03:00
Yao Wei Tjong 姚伟忠
0d7d0e573d Generate a dummy/initial PCH when using out-of-source build tree only.
Fix #2068.
2017-08-17 07:07:38 +08:00
Lasse Öörni
9575cd6539 Remove joke to keep in line with rest of documentation. 2017-08-16 18:55:46 +03:00