Hermet Park
fb20df9ad9
lottie/rapidjson: --assert
...
Save binary size about 0.8kb
2024-07-01 22:07:06 +09:00
Josh Soref
e061fa6628
common: fix 178+ spelling errors
2024-07-01 21:58:46 +09:00
Mira Grudzinska
98c6d92793
sw_engine: improve grad quality
...
For gradients with fill spread set as repeat,
the lack of anti-aliasing between the last and
the first color caused noticeable jagged edges.
Interpolation was introduced between them,
visually improving the gradient quality.
2024-07-01 18:24:30 +09:00
Vincent Torri
4a23c39520
json loader: fix warnings in jerryscript on Windows
2024-07-01 15:02:46 +09:00
Thaddeus Crews
6e4b8a5bdf
common: ensure const equality operators
...
A minor syntactic adjustment to two instances of operator== and one instance of operator!=, both to the end of ensuring these locally-scoped functions are properly identified as const. In the majority of cases, this shouldn't have any impact; however, this change makes these operators play nice in c++20 contexts.
2024-06-29 11:39:25 +09:00
Hermet Park
d6e64c0619
doc: polishing++
2024-06-28 16:14:57 +09:00
Hermet Park
38852538f5
infra: bumped up version v0.14, set it dev mode
2024-06-27 15:12:58 +09:00
Hermet Park
8f9d82c314
test/capi: --compiler warning on MSVC
...
warning C4305: 'argument': truncation from 'double' to 'float'
2024-06-27 14:43:53 +09:00
Hermet Park
1f41c9c80d
sw_engine: ++thread safety
...
Synchronize the engine process precisely
before updating internal data.
2024-06-27 14:25:18 +09:00
Hermet Park
7556253c53
example: do not scan a given resource folder recursively
2024-06-27 14:12:28 +09:00
Mira Grudzinska
c36bc1a7a3
wg_engine: fix shapes closing
...
Shapes were incorrectly closed in certain cases -
the decision to close a shape or not should be based on
path commands rather than the number of points and
their distances from each other.
2024-06-27 13:54:32 +09:00
Hermet Park
d1067ad080
renderer: ++stabilization
...
This introduces a managed condition to precisely control the
canvas updates. This prevents a crash when the target is
changed and drawn without any update calls.
issue: https://github.com/thorvg/thorvg/issues/2484
2024-06-27 12:54:53 +09:00
Hermet Park
23688dfb78
example: do not redraw for the static content
2024-06-27 12:54:53 +09:00
Hermet Park
f80814847d
example: ++exception handling
2024-06-27 11:33:56 +09:00
Mira Grudzinska
adbf1d3cab
common: fix rendering failure
...
In case of a problem with loading font data, there
is no paint inside a text that can be rendered,
but this should not interrupt the rendering process
of other paints. Now fixed.
@Issue: https://github.com/thorvg/thorvg/issues/2468
2024-06-27 10:34:15 +09:00
Mira Grudzinska
9cfc65fbc7
examples: fix sdl2 headers in Capi example
2024-06-27 10:33:53 +09:00
Hermet Park
4dfd591a7b
docs: updated to v0.14
2024-06-27 01:16:29 +09:00
Hermet Park
87cd9e4795
lottie: fix a data-race problem
...
make it sync call before accessing the composition data
from marker and segments.
issue: https://github.com/thorvg/thorvg/issues/2462
2024-06-27 01:09:10 +09:00
Hermet Park
b2def251ca
Revert "renderer/canvas: Check refresh before draw"
...
This reverts commit 60212747b5
.
this triggered duplicated updates,
it came up with many thread sanitizer problems.
issue: https://github.com/thorvg/thorvg/issues/2462
2024-06-27 00:51:11 +09:00
Sergii Liebodkin
f837ecf164
examples: fix sdl2 headers includes path
...
Fix SDL2 headers include path to release IDE warnings.
Tested on linux and macos
2024-06-26 15:38:49 +02:00
Mira Grudzinska
f26bdeba8d
tests: ++coverage
2024-06-26 22:06:19 +09:00
Hermet Park
1ad00f987c
apis: promotes to official apis.
...
C++
- GlCanvas::gen()
CAPI
- TVG_COMPOSITE_METHOD_INVERSE_LUMA_MASK
2024-06-26 15:16:26 +09:00
Sergii Liebodkin
83e834e16f
wg_engine: force texture data writing on GPU side
...
Texture must be fully uploaded into GPU memory before we can use or destroy it.
This change force texture data updates
2024-06-26 14:16:48 +09:00
Mira Grudzinska
a56fc81733
tvg_saver: fix 'order' serialization
...
Serialization of the "order" attribute caused
the bytes counter to be overwritten, resulting
in the created TVG file being corrupted.
Correctly created tag.tvg file has been included
as a test resource..
2024-06-26 14:15:50 +09:00
Hermet Park
4c57a64a82
example: synchronize the canvas before the window pops up.
...
This ensures that the window pops up with the appropriate content,
since windows can be popped up asynchronously with mainloop.
2024-06-26 01:46:10 +02:00
Sergii Liebodkin
7145c66b00
wg_engine: fix stroke mitter limit
...
Change the appliense of stroke mitter limit as in SVG spec
Before/After
2024-06-25 21:53:42 +09:00
RuiwenTang
01b85eea8a
gl_engine: correct the return value of render function
...
If RenderData has nothing to draw, need to return `true`.
2024-06-25 16:05:30 +09:00
Hermet Park
a7c7539674
doc: removed useless information for easier maintainence.
...
That basic information is addressed in the Results section.
We can only add information that pertains to a specific scenario.
2024-06-25 11:11:33 +09:00
RuiwenTang
28331e9bf3
gl_engine: Fix memory leak caused by no deleted GlRenderTask
2024-06-25 00:15:01 +09:00
Hermet Park
21f82c08db
examples: --unnecessary initial buffer clear
2024-06-24 21:42:39 +09:00
Mira Grudzinska
f202137acd
docs: add missing args description
2024-06-24 21:41:12 +09:00
Hermet Park
f281b9c342
svg2png: ++help message
2024-06-24 19:19:37 +09:00
Hermet Park
b85c5ba02f
lottie2gif: fix an issue where the background color is omitted
...
the issus is occurred when the input is a source folder.
2024-06-24 19:19:37 +09:00
Hermet Park
d3b7da9f97
release: updated tvg binaries
2024-06-24 17:35:14 +09:00
Hermet Park
5172b04d77
example/LottieExtension: adjusted its window size
2024-06-24 11:19:16 +09:00
RuiwenTang
3c6a456d2c
gl_engine: Fix compose render not correct after canvas resize
...
When canvas size changed, need to clear cached GLRenderTarget and
GLCompose.
2024-06-24 11:16:49 +09:00
Hermet Park
af1f3cb59d
gl_engine: revise the gl portability
...
- guarantee minimum gl version requirement
- removed glesv2 dependency
- corrected gl ver dependency
issue: https://github.com/thorvg/thorvg/issues/2282
2024-06-24 11:08:28 +09:00
Hermet Park
9fb8a49d52
renderer/canvas: ++exceptional handling.
...
do not allow change the target if the condition is not satisfied.
2024-06-24 01:29:57 +09:00
JunsuChoi
60212747b5
renderer/canvas: Check refresh before draw
...
If target() is called again after update() is called and the size of the buffer changes, a crash may occur.
Therefore, check the refresh variable and perform drawing after update().
2024-06-23 19:35:36 +09:00
RuiwenTang
b71d9d563a
gl_engine: Fix compile error if only has OpenGL library on MacOS
...
Since GLES headers and library can not be found on MacOS,
use macros to determin if link with OpenGL library.
2024-06-23 19:34:31 +09:00
Hermet Park
9191c33013
sw_engine: fix missing fill/stroke raster
...
properly update the fill/stroke when the path
has been changed
2024-06-23 18:17:14 +09:00
Hermet Park
94f304275e
renderer: minor optimization
...
reduce the path flag writing
2024-06-23 18:17:14 +09:00
Hermet Park
58418afac8
example: clear buffer properly.
...
The update might affect areas outside of the
default window. Update the sample to handle window
resizing.
2024-06-23 14:51:43 +09:00
Hermet Park
2c7a83406e
lottie: hotfix for preventing a crash.
...
MaskMode=None is not properly addressed,
Prevent the crash from the use-case.
issue: https://github.com/thorvg/thorvg/issues/2426
2024-06-23 11:57:40 +09:00
Mira Grudzinska
8939f7cbd4
sw_engine: fix stroke miterlimit precision
...
Since the value was casted to int the results
were different than expected.
2024-06-21 19:47:23 +09:00
JunsuChoi
f80e7a2b13
examples: Support window resizable
...
Add SDL_WINDOW_RESIZABLE to the sdl window property
and call canvas->update() in the resize event.
Afterwards, if the canvas needs to be expanded by the window size by passing the size as an argument
to the update(canvas,elapsed) interface, it can be processed individually.
2024-06-21 17:48:19 +09:00
Hermet Park
8540246178
test: corrected wrong test-suite.
...
The value should be out of the range to make "NonSupport"
2024-06-21 16:28:20 +09:00
Hermet Park
24a09896d0
infra/workflow: includes the gl engine build test.
2024-06-21 16:28:20 +09:00
Hermet Park
ec792d2e9a
infra: promote the GL engine to an official one.
...
The ThorVG OpenGL/ES engine has been stabilized and improved
significantly. Now, as a graphics engine, its drawing features
are quite functional. It is time to officially release the
engine and maintain it in the release process.
Thanks @Ruiwen for going above and beyond!
issue: https://github.com/thorvg/thorvg/issues/2435
2024-06-21 11:53:37 +09:00
Hermet Park
9ab960d0a2
Update README.md
2024-06-21 11:06:27 +09:00