Hermet Park
e010e22df2
example: corrected reveresed arguments
2025-05-24 13:51:26 +09:00
Hermet Park
ba8a764ec3
example: ++gl, wgpu safety
...
Free the canvas in the reverse order of their creation.
2024-11-27 19:17:20 +09:00
Hermet Park
0df35447b3
wg_engine: fixed resource leaks
...
issue: https://github.com/thorvg/thorvg/issues/2808
2024-10-04 00:34:16 +09:00
Sergii Liebodkin
785a75a1ca
wg_engine: external device handles (web integration)
...
move instance, adapter and device creation from renderer to application
its necessary for web integration, because browser have its own mechanics to create hardware handles
this changes makes webgpu canvas more universal to use in case of system and web applications
issue: https://github.com/thorvg/thorvg/issues/2410
2024-09-30 16:44:22 +09:00
Hermet Park
8de23876d5
examples: added Interaction sample
...
The Interaction sample demonstrates
how to handle user input with ThorVG Animation.
2024-09-30 15:48:50 +09:00
Hermet Park
7e9febf2c6
examples: ++exception handling
...
Added handling for engine initialization failure.
2024-09-30 15:34:48 +09:00
Hermet Park
ec00238aed
examples: added LottieExpressions
2024-09-30 15:31:55 +09:00
Hermet Park
d8a8f1a01f
example: improved to print proper fail msgs.
2024-09-30 13:00:12 +09:00
Sergii Liebodkin
9b638ea470
examples: fix surface refresh approuchfor webgpu
...
Move surface refresh approach from engine side to user size.
2024-09-30 12:51:09 +09:00
Hermet Park
6f0ae1cd3f
example: do not scan a given resource folder recursively
2024-06-27 14:42:27 +09:00
Hermet Park
3019bb81e8
example: do not redraw for the static content
2024-06-27 14:42:27 +09:00
Hermet Park
8c11fa085f
example: ++exception handling
2024-06-27 14:42:27 +09:00
Sergii Liebodkin
a671254400
examples: fix sdl2 headers includes path
...
Fix SDL2 headers include path to release IDE warnings.
Tested on linux and macos
2024-06-27 14:42:27 +09:00
Hermet Park
fd6385a17b
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-27 14:42:27 +09:00
Hermet Park
376acfacdb
examples: --unnecessary initial buffer clear
2024-06-27 14:42:27 +09:00
Hermet Park
518be23db2
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-27 14:42:27 +09:00
RuiwenTang
5836661155
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-27 14:42:27 +09:00
JunsuChoi
400511c123
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-27 14:42:27 +09:00
Hermet Park
38765b7ac0
examples: replace the efl toolkit with sdl
...
see also: https://www.libsdl.org/
issue: https://github.com/thorvg/thorvg/issues/1244
2024-06-27 14:42:27 +09:00