diff options
| author | bXi <[email protected]> | 2023-09-02 07:00:18 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-02 13:00:18 +0200 |
| commit | c03ab03627232047c63b11c27567ef3d0a74ca3c (patch) | |
| tree | fe6510daa26e00a6702812a1cd5890cb68130227 /examples/Makefile | |
| parent | 75e5cd86d7d1c4c6e0f266f3ae68f3af34fa78ac (diff) | |
| download | raylib-c03ab03627232047c63b11c27567ef3d0a74ca3c.tar.gz raylib-c03ab03627232047c63b11c27567ef3d0a74ca3c.zip | |
Added rudimentary SVG support. (#2738)
* Added rudimentary SVG support. Added 2 functions ImageLoadSvg and ImageLoadSvgWithSize.
* Added an example on how to use ImageLoadSvgWithSize and adjusted Makefiles accordingly.
* Added actual correct example file.
* Reviewed the code to keep the raylib coding conventions in mind.
Moved the LoadImageSvg() code into LoadImage() guarded by SUPPORT_FILEFORMAT_SVG.
Renamed LoadImageSvgWithSize() to LoadImageSvg().
Added a LoadImageSvgFromString() function to parse the loaded SVG into an actual image. This does the bulk of the work.
* Fixed typo.
---------
Co-authored-by: Ray <[email protected]>
Diffstat (limited to 'examples/Makefile')
| -rw-r--r-- | examples/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index 7028a954..4ba4f172 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -475,7 +475,8 @@ TEXTURES = \ textures/textures_draw_tiled \ textures/textures_polygon \ textures/textures_gif_player \ - textures/textures_fog_of_war + textures/textures_fog_of_war \ + textures/textures_svg_loading TEXT = \ text/text_raylib_fonts \ |
