Commit graph

176 commits

Author SHA1 Message Date
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
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
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
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
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
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
6829593ac6 examples: capi updated with text examples 2024-06-18 10:50:53 +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
Hermet Park
3f38f661be examples: ++ function name alignment 2024-06-13 14:44:55 +09:00
Mira Grudzinska
50d1d2fd36 example: load font from memory in Text.cpp 2024-06-11 20:59:39 +09:00
Hermet Park
2abfa98bae examples: fix memory leak 2024-06-07 23:56:12 +09:00
Mira Grudzinska
566b327f09 capi: bindings for strokeTrim
Example Capi.cpp modyfied.
2024-06-05 11:55:36 +09:00
Mira Grudzinska
e868e6e343 examples: add StrokeTrim example 2024-06-05 11:55:36 +09:00
Mira Grudzinska
185836d278 examples: fix heap-use-after-free in Capi.cpp 2024-05-31 10:02:58 +09:00
RuiwenTang
a50335686d Fix AnimateMasking with GL backend not triger redraw 2024-05-27 23:14:08 +09:00
Hermet Park
5c8b68c220 examples: added more svg resources. 2024-05-24 10:45:24 +09:00
Hermet Park
39fb3ed478 examples: added a viewport sample 2024-05-18 18:10:50 +09:00
Hermet Park
b001b46c49 examples/lottie: updated resources 2024-05-09 14:58:52 +09:00
JunsuChoi
6bf069fa7a example: Sync setting size and window default size
When WIDTH and HEIGHT values change,
the default size of the window also changes.
2024-05-09 11:56:48 +09:00
Hermet Park
4dba662aaf examples/lottie: added expressions sample 2024-04-30 15:26:37 +09:00
RuiwenTang
bb7f23da78 gl_engine: fix rendering error caused by viewport and stencil state
Fix some error:
* glViewport not controlled by framebuffer, and need to set manually when
target framebuffer is changed.
* change even-odd stencil operation, so no need to do third draw call to
  clear stencil buffer
* fix the missing `GlCanvas::update` calls in Lottoe and LottieExtension
2024-04-29 17:14:31 +09:00
Mira Grudzinska
568846491d build: enforcing saver/loader usage for given tool
Selecting a tool without choosing the required tools
resulted in a usage error. Now, the activation
of the appropriate saver/loader for a given tool
is enforced.
2024-04-19 10:01:30 +09:00
Lucas Niu
b7ced09fef examples/lottie: Add example for the Marker
Co-authored-by: Jinny You <jinny@lottiefiles.com>
2024-04-14 23:54:26 +09:00
Hermet Park
3b304dbba7 example: fixed broken tvg saver resource pathes 2024-04-06 15:06:20 +09:00
Hermet Park
e6b87b270c tvg: updated binary resources to v0.13
issue: https://github.com/thorvg/thorvg/issues/2067
2024-04-06 15:06:20 +09:00
Hermet Park
e8e9ba5ea0 infra: move the examples folder outside of the source directory.
examples are not considered a feature of ThorVG;
hence, they are excluded from the src directory.

This change allows developers to concentrate more effectively
on the core ThorVG sources for practical usages.
2024-04-01 10:52:22 +09:00