Commit Graph

5074 Commits

Author SHA1 Message Date
moneromooo
413b76fd60 Octree: faster drawable removal as we don't need to preserve order 2020-10-20 16:31:04 +00:00
moneromooo
8fef7281ba Octree: use const ref rather than copying shared pointers 2020-10-20 16:31:04 +00:00
moneromooo
2d0afe4535 Octree: do not preserve drawable ordering
We don't need it and it's faster to remove
2020-10-20 13:53:45 +00:00
Nwokoma Uchechukwu
44220053a9
Fix incorrect relative includes (#2681) 2020-10-08 09:07:12 +03:00
Yao Wei Tjong 姚伟忠
ebd7633f89
Expose GLEW 3rd-party lib for using OpenGL Graphics API. 2020-09-20 22:38:38 +08:00
urho3d-travis-ci
16de1f96d2 Travis CI: API documentation update at 2020-09-10 16:31:32 UTC.
[ci package]

Commit: e78462de15

Message: An intersection test for IntRect (#2675)

* Intersection test for IntRect

* Properly handling of intersections with neighbors

* Сonsider right-bottom borders not owned by a rect
2020-09-11 00:31:32 +08:00
TEDERIs
e78462de15
An intersection test for IntRect (#2675)
* Intersection test for IntRect

* Properly handling of intersections with neighbors

* Сonsider right-bottom borders not owned by a rect
2020-09-10 19:13:57 +03:00
Yao Wei Tjong 姚伟忠
197cb5eb80
Apple - Suppress warnings due to implicit cast to unsigned. 2020-08-31 01:39:08 +08:00
Yao Wei Tjong 姚伟忠
92cf44551f
Fix PCH generation and visibility warning on STATIC build.
Close #2652
2020-08-31 01:39:07 +08:00
Yao Wei Tjong 姚伟忠
9e02cb3dd6
Prevent building of SDL GL video drivers on non-desktop platforms. 2020-08-31 01:39:06 +08:00
Yao Wei Tjong 姚伟忠
c6ea0d61ca
RPI - quick fix by relaxing the 'template' keyword check.
The check could be tighten again based on user report.
2020-08-31 01:39:06 +08:00
Yao Wei Tjong 姚伟忠
45089a1322
Fix build script in finding the DRM, GBM and others.
RPI 4 may require KMS/DRM to replace DISPMAN.
2020-08-31 01:39:05 +08:00
Yao Wei Tjong 姚伟忠
3af2b68237
Prevent building of SDL GLES video drivers on desktop platforms. 2020-08-31 01:39:05 +08:00
1vanK
e01329ec6c Merge branch 'master' of https://github.com/Urho3D/Urho3D 2020-08-28 11:26:36 +03:00
1vanK
ec060153db WriteDrawablesToOBJ: pass vector as reference 2020-08-28 11:26:27 +03:00
ssinai1
0134b64eb3 Fix 3D texture mipmap generator. 2020-08-27 11:18:54 +08:00
1vanK
23a6d24ac0 UIElement: return children as PODVector
Used by AutoBinder
2020-08-14 23:35:38 +03:00
1vanK
68a4c6e193 Database: rename parameter context_ to context 2020-08-10 10:19:47 +03:00
Arnis Lielturks
30dce947c4
Outgoing messages are now packed together (#2636)
* outgoing messages are now packed together

* ability to set connection packet buffer limit

* custom messages and broadcasting fixed

* code style updates
2020-08-04 22:25:52 +03:00
1vanK
de4aefd2be Add ; after URHO3D_OBJECT() to workaround doxygen bug 2020-07-31 12:21:18 +03:00
ssinai1
3da017d380
Fix IsPowerOfTwo(zero). (#2671) 2020-07-27 16:31:27 +03:00
Katekov Anton
1f5f393a77
Bugfix/fix crash creating inmemory nodes (#2663)
* Check if scene exists

* Send tag event only if scene exists

* Fix style
2020-07-15 21:08:38 +03:00
SirNate0
3a12936c47
Added PODVector::Resize overload that fills new element with a default value. (#2653) 2020-07-07 14:39:42 +03:00
urho3d-travis-ci
bc55636f94 Travis CI: API documentation update at 2020-06-25 06:06:02 UTC.
[ci package]

Commit: 0349aafbb5

Message: Localization::LoadJSONFile() : Pass String as reference
2020-06-25 06:06:02 +00:00
1vanK
0349aafbb5 Localization::LoadJSONFile() : Pass String as reference 2020-06-25 08:55:33 +03:00
ChrisDenham
6fb55fa498
Allow Camera::SetFlipVertical to be used externally for OpenGL (#2643)
* Allow Camera::FlipVertical to be used externally for OpenGL by toggling it either side of render to texture, i.e. instead of "set and clear" either side of render to texture.

(cherry picked from commit 434739d62c99e9328b66c338b7dc57c963b586c6)

* #1 Add explanation comment to previous commit.

(cherry picked from commit 4f1ca6cf8595b230e7ab2473fc37d1c0325a481a)

Co-authored-by: Chris Denham <chris.denham@logicom.com>
2020-06-14 22:53:00 +03:00
sa
e0eb04b9b3 Change UIElement::dragButtonCombo_ to be a MouseButtonFlags type
Also use the actual MOUSEB_ and QUAL_ constants instead of 0.
2020-06-06 16:19:20 +03:00
sa
0a3379f53e Use MouseButtonFlags and QualifierFlags instead of int's
Fixes #2631
2020-06-06 16:19:20 +03:00
Eugene Kozlov
3c4a0a5489 Make FlagSet to bool conversion operator explicit. Fixes #2631. 2020-05-24 14:43:03 +03:00
Yao Wei Tjong 姚伟忠
7a2b5cd819
Fix the STATIC build caused by missing argument. 2020-05-11 07:08:23 +08:00
Yao Wei Tjong 姚伟忠
3ba62f036e
Fix the STATIC and SHARED build for VS and Xcode.
Cleanup comments.
2020-05-10 23:30:59 +08:00
Yao Wei Tjong 姚伟忠
0e4d095cfa
Shed off old construct since our CMake minimum required is 3.10.2 now. 2020-05-10 15:53:52 +08:00
Yao Wei Tjong 姚伟忠
5f3d7be206
Fix compilation on GCC 10.0.1 2020-05-09 15:20:14 +08:00
Eugene Kozlov
056c3d1022 Fix typo in OGLRenderSurface.cpp 2020-05-09 02:17:20 +03:00
Eugene Kozlov
e5b53e2f2c Delete GPU objects when OpenGL context is about to be lost. 2020-05-09 02:17:20 +03:00
Yao Wei Tjong
bcf29b8ee4
Fix for getting iOS CPU core count.
Credit to Yuki001. Closed #2630.
2020-05-07 23:47:01 +08:00
stievie
67389ec2bd
Initialize SSL when making a HTTP Request and URHO3D_SSL is defined (#2629)
* Initialize SSL when making a HTTP Request and URHO3D_SSL is defined

* Simplify SSL initialization.
2020-05-06 21:41:15 +03:00
Arnis Lielturks
889367738b
HTTPS support - civetweb update (#2415)
* initial update

* CMake updated for civetweb, https working

* unused file cleanup

* CMake updates to civetweb

* minor update, mingw not yet working

* CMakeLists updated

* fixed for unix builds

* cmake updates, console output updated

* docs updates

* HTTP sample now uses http and https links

* civetweb version 1.11

* additional changes

* mingw fix

* openssl fix

* additional ssl configuration

* osx workaround

* openssl is no longer optional

* openssl is optional

* civetweb cmakelists updates, URHO3D_SSL=1 set for travis

* debug messages removed from SSL/TLS initialization

* link libraries with civetweb

* code style fixes

* cmake updates

* DBE_TAG=latest removed
2020-05-03 12:22:31 +03:00
Eugene Kozlov
14520d95af Add check for AnimationTrack::GetKeyFrameIndex.
Closes #2625.
2020-04-25 12:02:35 +03:00
Yao Wei Tjong 姚伟忠
fde206b486
Minor cleaup. [ci skip] 2020-04-10 19:58:01 +08:00
Arnis Lielturks
72e2342343
Emscripten shell (#2608)
* emscripten shell added, wip

* include dirs

* namespace

* more namespace fixes

* cmake tweak

* tweak

* emscripten shell added in different cmake file

* shell setup fixed

* application.html renamed to shell.html, engine tweaks

* shell.html location updated

* reworked canvas size detection and applying, highdpi disabled for web builds

* typo

* background tab loading fix

* web handlers moved to graphics subsystem

* removed a bit too much

* fix

* ready event resize

* svg fullscreen icon

* id used for fullscreen icon

* emscripten request pointer used instead

* pointer lock tweaks

* yet another tweak

* ui cursor fixed to take into account ui scale, emscripten mouse state reset when changing resolution

* code style updates

* ui scale calculated differently

* fix

* pointer position calculation properly fixed

* cursor position retrieval updated

* Fix code style. Simplify UI scale handling.

* cmake updates

Co-authored-by: Eugene Kozlov <nekoeuge@gmail.com>
2020-04-07 19:38:21 +03:00
1vanK
ab22ec76c9 Update pugixml 2020-04-05 11:19:34 +08:00
sssooonnnggg
ce70a66f5a
Fix Technique clone bug. (#2615) 2020-04-02 17:25:18 +03:00
Eugene Kozlov
2345377c76 Change required TMX version from 1.0 to 1.* 2020-03-28 14:50:04 +03:00
Eugene Kozlov
3af4d23623 Fix build of Sample 54 for ARM and RPI. 2020-03-20 09:48:27 +03:00
Eugene Kozlov
4ceb2fbdc9 Fix build of Sample 54. 2020-03-20 00:40:56 +03:00
Eugene Kozlov
1fe5548ecc Add sample for window settings change. Cleanup. 2020-03-20 00:37:24 +03:00
Eugene Kozlov
d1ad98d067 Fix inconsistent window mode transitions.
- Fix unwanted window reposition to (0, 0) during
windowed-to-fullscreen-to-windowed mode transition.

- Fix unwanted display resolution change during
fullscreen-to-windowed mode transition on DX9 and DX11.
2020-03-20 00:34:39 +03:00
Eugene Kozlov
e61850459d Enable Graphics::ToggleFullscreen customization.
It's possible now to rotate between arbitrary window modes
via ToggleFullscreen. Graphics::SetMode implements default
behavior. Differences comparing to legacy behavior:

- Secondary mode uses automatic window size.
Window will be toggled to desktop-resolution fullscreen.
Fullscreen will be toggled to default-size window.

- Desktop-size borderless window is preferred
to hardware fullscreen by default.
2020-03-20 00:34:39 +03:00
Eugene Kozlov
27216959ee Extract copy-paste from Graphics into common place.
This commit shall not have any functional changes except the following:

- Semantics of multi sample level on DX9 backend has changed.
It represents actual hardware more instead of caller's desire.
Behavior of DX9, DX11 and OpenGL backend is synchronized now.
2020-03-20 00:34:38 +03:00