Commit Graph

9612 Commits

Author SHA1 Message Date
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
Yao Wei Tjong 姚伟忠
ace4a00fea Reinstate source group for VS and Xcode IDE.
The "resources being added into multiple groups" issue is not reproducible in Xcode IDE anymore, probably the more recent define_resources_dirs() macro has "properly" fixed it.
2017-07-07 23:31:42 +08: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
Lasse Öörni
28e1f20487 Merge remote-tracking branch 'iainmerrick/highdpi_fix' 2017-07-06 19:06:13 +03:00
Lasse Öörni
83c17c7dc6 Robustness improvements for terrain editor brush loading. Closes #2011. 2017-07-06 18:13:13 +03:00
Iain Merrick
237b2b0fe6 Fix Graphics::GetHighDPI() on OS X (closes #2009) 2017-07-06 09:44:50 -05:00
Lasse Öörni
5a3f1049c3 Merge pull request #2008 from iainmerrick/master
Scale kerning values correctly (closes #2007)
2017-07-06 16:06:30 +03:00
Iain Merrick
7ced601b6c Scale kerning values correctly (closes #2007) 2017-07-05 11:47:39 -05:00
Yao Wei Tjong 姚伟忠
20ec572c9d Switch to use "urho3d" own account in AppVeyor.
Close #1959.
2017-07-05 22:57:50 +08: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
68b43b19f4 Add docs for subpixel font rendering options (#1953) 2017-07-03 12:25:02 -05: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
Lasse Öörni
5475c48298 Merge pull request #2004 from iainmerrick/kerning_fix
Fix kerning pairs (#2003)
2017-07-03 12:24:44 +03: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
SuperWangKai
bd222aa2d2 Merge pull request #5 from urho3d/master
Sync
2017-06-30 12:26:55 +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
1826fdb73a Merge pull request #1997 from eugeneko/master
Add Vector3::Orthogonalize helper function.
2017-06-26 13:12:01 +03: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
071b42819d Amend porting note. 2017-06-24 01:41:04 +03: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
Lasse Öörni
216cf57e96 Add font size porting note. 2017-06-19 22:58:00 +03: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
Lasse Öörni
3d1ded0e79 Merge remote-tracking branch 'origin/update-freetype' 2017-06-16 15:16:22 +03:00
Guschin Konstantin
448b3a66b1 added emitting flag for ParticleEmitter2D 2017-06-16 18:50:08 +07:00
Lasse Öörni
bc98863c8f Update FreeType version in documentation. 2017-06-16 00:49:22 +03:00