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
Mira Grudzinska
fac78c50d9
tests: resolve different type comparison warning
2024-06-21 10:12:40 +09:00
Mira Grudzinska
e8b5062657
docs: descriptions++
2024-06-20 23:12:34 +09:00
Sergii Liebodkin
53de5f2ff7
wg_engine: fix incorrect geomatry
...
Fix computation of segments count for cubic curves.
Using screen coordinates of base points, instead of world coordinates
2024-06-20 19:03:42 +09:00
Hermet Park
7a76c58057
infra: replaced efl install with sdl2
2024-06-20 17:49:18 +09:00
Hermet Park
1dcd2c4b5f
examples: replace the efl toolkit with sdl
...
see also: https://www.libsdl.org/
issue: https://github.com/thorvg/thorvg/issues/1244
2024-06-20 17:49:18 +09:00
Hermet Park
d2b7a921d0
doc: updated example dependency
2024-06-20 17:49:18 +09:00
Hermet Park
0c8fe81072
gl_engine: improve the dependency check
...
- dependency() works with a pkgconfig, more preferred.
- add fallback to GL library search with candididates.
2024-06-20 17:47:29 +09:00
Hermet Park
b79e8d5f24
lottie: fix a compile error on MSC with clang.
...
issue: https://github.com/thorvg/thorvg/issues/2347
2024-06-20 17:47:15 +09:00
Hermet Park
11c6da340b
sw_engine: ++exception handling
...
prevent the out of range anti-aliasing frames.
issue: https://github.com/thorvg/thorvg/issues/2401
2024-06-20 17:46:52 +09:00
Hermet Park
a9592ec3ef
sw_engine: hotfix avx/neon 8 bit rasterizer.
...
recte/rle 8 bit rasterizer has been broken,
make it work safely with c raster version.
issue: https://github.com/thorvg/thorvg/issues/2146
2024-06-20 17:46:40 +09:00
Mira Grudzinska
25370f438e
tests: add missing capi saver tests & ifdefs
2024-06-20 00:03:07 +09:00
Mira Grudzinska
a337a8c57a
common: add missing ifdef
...
In the absence of support for the TTF loader
crashes occurred. Fixed.
2024-06-19 20:08:14 +09:00
Mira Grudzinska
d7ab592fb9
lottie: fix repeater order
...
Assigning numbers 1 or 2 to a bool always
resulted in true. Now fixed and repeated
shapes are drawn in the proper order.
If the repeater had no elements, iterating
shapes from the end would result in a segf.
This issue is now fixed.
2024-06-19 11:02:41 +09:00
Hermet Park
6f33a2bcbb
infra: --EGL dependency
...
there is no more EGL dependency in gl engine.
2024-06-19 01:47:41 +09:00
Sergii Liebodkin
03c6f43441
wg_engine: fix scene rendering with blend
...
Fix allplience of the blend method, that setuped for scene, but not for a shape
Overlay blend func changed to be close to spec
2024-06-19 01:46:59 +09:00
Mira Grudzinska
0d3d242f0c
examples: add FillSpread example
...
@Issue: https://github.com/thorvg/thorvg/issues/2124
2024-06-18 10:51:06 +09:00
Mira Grudzinska
b14b8375f6
test: capi tests updated by text apis
2024-06-18 10:50:53 +09:00
Mira Grudzinska
6829593ac6
examples: capi updated with text examples
2024-06-18 10:50:53 +09:00
Mira Grudzinska
2be8bfd9da
capi: text c-api binding
...
@Issue: https://github.com/thorvg/thorvg/issues/2374
2024-06-18 10:50:53 +09:00
Sergii Liebodkin
f97c16f94c
wg_engine: skip shapes with zero opacity values
...
Skip shapes rendering, if opacity is 0 and if fill color for shape and strokes also equal to 0
This behavior is used in sw renderer and fix visual artifacts in referenced animations.
Also this rule fix composition results in case of AlphaMask and InvAlphaMask methods
2024-06-18 01:10:52 +09:00
Hermet Park
846ae09151
wg_engine: --redundant code
2024-06-17 15:59:53 +09:00
Mira Grudzinska
cb47dc0d28
tests: add tests for text loading from memory
2024-06-17 11:45:25 +09:00
Mira Grudzinska
c6bd09648c
examples: ensure the file is closed
...
In case of an error during memory allocation
for file data, the file was not closed.
2024-06-17 11:45:25 +09:00
Mira Grudzinska
6518f2e442
common: force the use of ttf loader for font data
...
Providing an incorrect mimetype or not specifying one
was not handled and resulted in data not being loaded
when loading the font from memory.
Now, the use of the TTF loader is enforced regardless
of the provided mimetype.
2024-06-17 11:45:25 +09:00
Mira Grudzinska
6544747e70
common: fix returned value
...
In the case of requesting to unload a font that
has not been previously loaded, InsufficientCondition
should be returned, not InvalidArgument.
2024-06-17 11:45:25 +09:00
Sergii Liebodkin
184343f6f2
wg_engine: fix composition math
...
Fix AlphaMask, InvAlphaMask, LumaMask and InvLumaMask math
Fix double apllience of opacity value
2024-06-17 11:44:13 +09:00
Sergii Liebodkin
f333241f0a
wg_engine: fix fill rule usage
...
Fix wronk application of fill rule in a cases of terminated path (.close()/.moveTo())
2024-06-17 11:43:40 +09:00
Sergii Liebodkin
419fa93989
wg_engine: fix strokes failers and visual atrifacts
...
Ignoring rezo-width strokes, single point strokes.
Fix visual artifacts in case of mitter joints.
2024-06-17 11:42:51 +09:00
Hermet Park
43464ceba4
infra: build wg canvas properly.
2024-06-16 18:29:36 +09:00
Hermet Park
dbde6393a9
renderer/canvas: clean up code
...
pimpl is not used at all.
2024-06-16 18:23:15 +09:00
Mira Grudzinska
c4781545c9
capi: remove the incorrectly named API
...
There was a typo in the name (tvg_canvas_est_viewport),
which made it seem like it was missing. The correctly
named API has already been added, so this one can be
removed.
2024-06-15 23:12:04 +09:00
Hermet Park
51c2e66f51
sw_engine: fix a crash issue.
...
set the anti-aliasing frame info properly, in an exceptional case.
issue: https://github.com/thorvg/thorvg/issues/2391
2024-06-14 10:40:56 +09:00
Hermet Park
1099c65fe7
sw_engine: fix a missing anti-aliasing
...
enable fill anti-aliasing when the stroke is trimming.
2024-06-14 09:57:12 +09:00
Hermet Park
de693c3e3e
infra: relocate the tools folder.
...
Collect only library source code in src
2024-06-13 17:52:14 +09:00
Hermet Park
3f38f661be
examples: ++ function name alignment
2024-06-13 14:44:55 +09:00
Hermet Park
5e6df3334b
infra: ++wg_native package dependency
...
Windows might need a own library linking method.
2024-06-13 14:44:55 +09:00
Sergii Liebodkin
a7f4d718f4
wg_engine: fix model view matrix
...
In a case of compostions model view matrix did not apply samples count
2024-06-13 10:46:36 +09:00
Sergii Liebodkin
9f08e4755c
wg_engine: clear bbox mesh lists
...
when cleaning the geometry of an object, it is also necessary to clean the bounding boxes and store them in the pool
2024-06-13 10:46:36 +09:00
Hermet Park
45bf996a19
doc: updated the WgCanvas api doc
2024-06-12 12:45:47 +09:00
Sergii Liebodkin
7e493f91f2
wg_engine: cross-platform support
...
it provide changes public API for webgpu canvas interface to provide nessessary handles to native window for different platforms:
API Change:
- Result target(void *instance, void *surface, uint32_t w, uint32_t h) noexcept;
2024-06-12 12:39:37 +09:00
Mira Grudzinska
50d1d2fd36
example: load font from memory in Text.cpp
2024-06-11 20:59:39 +09:00
Mira Grudzinska
d8a720fb7e
ttf_loader: support loading from memory
...
New text API for loading fonts from memory
is introduced. This is necessary to enable
embedded fonts support.
2024-06-11 20:59:39 +09:00
RuiwenTang
f8626d13d1
gl_engine: fix clip path and bounds not correct
...
* Optimize clip logical, change to use GL_GRATER and keep incrace depth
value, so no need to do depth clear after every clip draw.
* Correct geometry bounding box calculation, and make sure the bounds is
larger than all vertices
* Limit drawing area for off-screen RenderPass with correct scissor box
2024-06-11 20:57:07 +09:00
Hermet Park
d9294471a6
wg_engine: resolve gcc compiler warnings.
...
virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
2024-06-11 20:54:56 +09:00
Hermet Park
97ee9edaa2
wg_engine: add the wgpu_native library dependency.
...
about the wgpu-native please visit:
https://github.com/gfx-rs/wgpu-native/releases
2024-06-11 20:54:56 +09:00