summaryrefslogtreecommitdiffhomepage
path: root/src/config.h
diff options
context:
space:
mode:
authorbXi <[email protected]>2023-09-02 07:00:18 -0400
committerGitHub <[email protected]>2023-09-02 13:00:18 +0200
commitc03ab03627232047c63b11c27567ef3d0a74ca3c (patch)
treefe6510daa26e00a6702812a1cd5890cb68130227 /src/config.h
parent75e5cd86d7d1c4c6e0f266f3ae68f3af34fa78ac (diff)
downloadraylib-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 'src/config.h')
-rw-r--r--src/config.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/config.h b/src/config.h
index 67c6060b..2c7d5e2d 100644
--- a/src/config.h
+++ b/src/config.h
@@ -141,22 +141,22 @@
//------------------------------------------------------------------------------------
// Module: rtextures - Configuration Flags
//------------------------------------------------------------------------------------
-// Select the desired fileformats to be supported for image data loading
-#define SUPPORT_FILEFORMAT_PNG 1
-//#define SUPPORT_FILEFORMAT_BMP 1
-//#define SUPPORT_FILEFORMAT_TGA 1
-//#define SUPPORT_FILEFORMAT_JPG 1
-#define SUPPORT_FILEFORMAT_GIF 1
-#define SUPPORT_FILEFORMAT_QOI 1
-//#define SUPPORT_FILEFORMAT_PSD 1
-#define SUPPORT_FILEFORMAT_DDS 1
-#define SUPPORT_FILEFORMAT_HDR 1
+// Selecte desired fileformats to be supported for image data loading
+#define SUPPORT_FILEFORMAT_PNG 1
+//#define SUPPORT_FILEFORMAT_BMP 1
+//#define SUPPORT_FILEFORMAT_TGA 1
+//#define SUPPORT_FILEFORMAT_JPG 1
+#define SUPPORT_FILEFORMAT_GIF 1
+#define SUPPORT_FILEFORMAT_QOI 1
+//#define SUPPORT_FILEFORMAT_PSD 1
+#define SUPPORT_FILEFORMAT_DDS 1
+//#define SUPPORT_FILEFORMAT_HDR 1
//#define SUPPORT_FILEFORMAT_PIC 1
-//#define SUPPORT_FILEFORMAT_PNM 1
-//#define SUPPORT_FILEFORMAT_KTX 1
-//#define SUPPORT_FILEFORMAT_ASTC 1
-//#define SUPPORT_FILEFORMAT_PKM 1
-//#define SUPPORT_FILEFORMAT_PVR 1
+//#define SUPPORT_FILEFORMAT_KTX 1
+//#define SUPPORT_FILEFORMAT_ASTC 1
+//#define SUPPORT_FILEFORMAT_PKM 1
+//#define SUPPORT_FILEFORMAT_PVR 1
+#define SUPPORT_FILEFORMAT_SVG 1
// Support image export functionality (.png, .bmp, .tga, .jpg, .qoi)
#define SUPPORT_IMAGE_EXPORT 1