Commit Graph

5124 Commits

Author SHA1 Message Date
Crypto City
87fcaae84a UI: add italic text effect 2020-10-19 19:16:58 +00:00
Crypto City
4f850eabec DropDownList/ListView: allow selection by typed prefix 2020-10-19 19:16:53 +00:00
Crypto City
ef380e39c4 Fix modal dialogs leaking mouse events to the widgets below it 2020-10-19 19:16:47 +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
1vanK
97b09f848b Fix https://github.com/urho3d/Urho3D/issues/1877 2020-03-13 09:45:20 +08:00
1vanK
722e2dfceb Typos 2020-03-13 09:45:20 +08:00
1vanK
37ef9d492a Obstacle: make identical definition and declaration 2020-03-13 09:45:20 +08:00
1vanK
d976c4b43b Move enum LoopMode2D into namespace Urho3D 2020-03-13 09:45:20 +08:00
Modanung
cbd2e7b5d8 Replaced tabs with spaces in sample 53 2020-03-01 20:05:23 +08:00
Modanung
b1f6cc04c7 Found some more 2020-03-01 20:05:23 +08:00
Modanung
17b0dece1a Replaced tab with spaces 2020-03-01 20:05:23 +08:00
Patrick
ff6049f506 Allow to make custom class inherited from Drawable2D 2020-03-01 10:51:01 +08:00
urho3d-travis-ci
3f04e8fcd2 Travis CI: API documentation update at 2020-02-28 21:23:51 UTC.
[ci package]

Commit: b5b6f0d5fb

Message: nat master server disconnecting fixes, NAT sample updates (#2591)
2020-02-28 21:23:51 +00:00
Arnis Lielturks
b5b6f0d5fb
nat master server disconnecting fixes, NAT sample updates (#2591) 2020-02-28 23:13:16 +02:00
urho3d-travis-ci
35a1509dfe Travis CI: API documentation update at 2020-02-28 18:28:54 UTC.
[ci package]

Commit: 18c7230eb7

Message: Minor API update, bug fixes, cleanup.

* Remove undefined behavior caused by volatile variables in WorkQueue (volatile variables are not required to be thread-safe).
* Fix nasty DX11 bug caused by poor hash functions and likely hash collision in ShaderVariation.
* Relaxed FlagSet usage requirements.
* Various API extensions and code simplification.
* Const-correctness fixes.
2020-02-28 18:28:54 +00:00
Eugene Kozlov
18c7230eb7 Minor API update, bug fixes, cleanup.
* Remove undefined behavior caused by volatile variables in WorkQueue (volatile variables are not required to be thread-safe).
* Fix nasty DX11 bug caused by poor hash functions and likely hash collision in ShaderVariation.
* Relaxed FlagSet usage requirements.
* Various API extensions and code simplification.
* Const-correctness fixes.
2020-02-28 21:11:14 +03:00
urho3d-travis-ci
a98d17adf5 Travis CI: API documentation update at 2020-02-26 16:24:36 UTC.
[ci package]

Commit: 88ea05ee5c

Message: contributors list updated
2020-02-26 16:24:36 +00:00
pflat
aedf3cc176
Add MaxSuspensionForce to RaycastVehicle (#2590)
* Add MaxSuspensionForce to RaycastVehicle

* Add AS and Lua bindings to the new methods

* Add MaxSuspensionForce to component attributes.

* Resolve padding issue.
2020-02-26 17:57:35 +02:00
Rainer Deyke
469b30b605
Fix a memory leak in the Urho3D changes to SDL. 2020-02-18 00:54:31 +08:00
Yao Wei Tjong 姚伟忠
e843e6bc4c
Fox VS/Xcode, fix logical group for Lua generated files. 2020-02-18 00:47:18 +08:00
Yao Wei Tjong 姚伟忠
6ce2dc1b38
For VS/Xcode, group generated files. 2020-02-16 16:33:20 +08:00
Yao Wei Tjong 姚伟忠
c2b8d25962
For VS/Xcode, group Urho3D files based on physical directory structure. 2020-02-16 13:57:22 +08:00
Steven Burns
f122187e1e Explanatory comment regarding enum 2020-02-15 14:40:00 +08:00
Steven Burns
22e2f355f1 Upgrade to support spine runtime 3.7 and above 2020-02-15 14:40:00 +08:00
sssooonnnggg
68f4d9094e Fix coding style. 2020-02-09 00:52:37 +08:00
Yao Wei Tjong 姚伟忠
3a9e8f54a1
Bump dependencies for Android build.
Adjust build script for WebP library to include search path for cpu-features.
2020-02-09 00:30:16 +08:00
urho3d-travis-ci
b8f9311fad Travis CI: API documentation update at 2020-02-04 06:57:46 UTC.
[ci package]

Commit: 6947c1b01c

Message: Send Mouse Clicks on Event (#2566)
2020-02-04 06:57:46 +00:00
Igor Segalla
6947c1b01c
Send Mouse Clicks on Event (#2566) 2020-02-04 08:45:38 +02:00
r-a-sattarov@github.com
2229894107 E2K: added initial support for MCST Elbrus 2000
- added initial support in CMake configuration
- added initial support to AngelScript (ver. 2.33.0)
2020-02-02 07:45:54 +08:00
r-a-sattarov@github.com
552078cb66 E2K: strip UTF-8 BOM for MCST lcc compiler < 1.24
strip UTF-8 BOM for compability with MCST lcc compiler < 1.24
2020-02-02 07:45:54 +08:00
zlum
692714156e Fixed warning: enumeral and non-enumeral type in conditional expression [-Wextra]
int GetHatPosition(unsigned index) const { return index < hats_.Size() ? hats_[index] : HAT_CENTER; }
                                                       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-01-27 07:53:52 +08:00
Modanung
2650e38855 Reduced minimum required cmake version to 3.10.2 2020-01-22 22:27:07 +08:00
Yao Wei Tjong 姚伟忠
6a79dbbb40
Suppress linker warning for Web build. 2020-01-12 12:39:54 +08:00
Yao Wei Tjong 姚伟忠
46c6894d78
Bump CMake minimum required version to 3.14.5. 2020-01-12 12:37:22 +08:00
urho3d-travis-ci
1151b8a2d6 Travis CI: bump copyright to 2020. 2020-01-05 06:21:40 +00:00
SirNate0
ea25be8990 Update Vector.h PODVector::Push
Went with cleaner implementation storing the other vector's size before resize rather than checking whether the other vector is this.
2020-01-05 14:10:01 +08:00
SirNate0
3c26ff6196 Add a check for Push()ing *this to the size of the other vector after resize. 2020-01-05 14:10:01 +08:00
1vanK
bfaef57a29 Fix #2491
https://github.com/urho3d/Urho3D/issues/2491
https://github.com/bulletphysics/bullet3/issues/2382
2019-12-18 21:41:29 +08:00
Igor Segalla
dec79fa32f Fix code formatting 2019-12-11 10:57:12 +08:00
Igor Segalla
06b76e38d8 Sample2D Header for #2508 commit 2019-12-11 10:57:12 +08:00
Igor Segalla
f440e0128e Fix warnings and Sample2D #2508
Fixed some simple warnings and now Sample2D is passing structs by reference instead of value.
2019-12-11 10:57:12 +08:00
Igor Segalla
8ae2a6c9c9 Fix CharacterMap::Load always returning false #2349
CharacterMap::Load was always returning false, causing a problem on Entity::Load mainly.
2019-12-11 10:57:12 +08:00
Igor Segalla
28f475180d Fix opacity animation on AnimatedSprite2D #2145
Animation with alpha (scml) was not being applied by AnimatedSprite2D::UpdateSourceBatchesSpriter
2019-12-11 10:57:12 +08:00
urho3d-travis-ci
90dba0e49e Travis CI: API documentation update at 2019-12-10 04:48:49 UTC.
[ci package]

Commit: 3ceb14ad9d

Message: Fix StartServer scripting
2019-12-10 04:48:49 +00:00
Igor Segalla
3ceb14ad9d Fix StartServer scripting 2019-12-10 12:37:57 +08:00
Igor Segalla
9871e71d90 Set max connections of Start Server
It is now possible to set as many maximum connections as you want on your urho server.
2019-12-10 12:37:57 +08:00
Igor Segalla
006416686e Increase range of message ID's available
Now it's possible to send Urho messages with ID as unsigned int, this means you can use 0~4294967295 for message ID.
2019-12-10 12:37:57 +08:00
Igor Segalla
9a8f54f026 Fix Progress Bar direction #2050
Progress bar in vertical mode was scaling from top to bottom, the correct way on this mode is from bottom to top.
2019-12-09 19:53:55 +08:00
SirNate0
f2af8c7bb9 Added highDPI to logging during window creation. 2019-12-07 17:29:46 +08:00
ssinai1
1ab1f07144 Fix ETC1/ETC2 decompression error. (#2553)
Fix ETC1/ETC2 decompression error by using 4x4 local buffer.
Initializing ETCPACK in DecompressImageETC.
2019-12-07 14:41:19 +08:00
Y-way
b8f0604ea9 Fixed DebugHud exports for AngelScript 2019-11-20 17:53:56 +08:00
urho3d-travis-ci
171c1f413f Travis CI: API documentation update at 2019-11-17 05:02:04 UTC.
[ci package]

Commit: 97103bfae6

Message: Export BorderImag material for Lua
2019-11-17 05:02:04 +00:00
Y-way
97103bfae6 Export BorderImag material for Lua 2019-11-17 12:51:33 +08:00
urho3d-travis-ci
1ade7dafef Travis CI: API documentation update at 2019-11-04 13:02:48 UTC.
[ci package]

Commit: 42a9cb4e6f

Message: Fix Lua API binding issue for UIComponent.
Close #2539
2019-11-04 13:02:48 +00:00