Commit Graph

298 Commits

Author SHA1 Message Date
bXi c03ab03627 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 <raysan5@gmail.com>
2023-09-02 13:00:18 +02:00
Ray 6094869e3e Fix material loading #3126 2023-08-04 18:14:47 +02:00
Ray bc9c063254 Update external sdefl and sinfl 2023-07-12 15:49:38 +02:00
Ray 7f21cf1dcf Revert "UPDATED: sdefl and sinfl compression libraries"
This reverts commit e190b7eee9.
2023-07-12 10:37:10 +02:00
Ray e190b7eee9 UPDATED: sdefl and sinfl compression libraries 2023-06-30 09:47:16 +02:00
Le Juez Victor 753c0b3853 Addition of support for vox files in version 200. (#3097) 2023-06-05 01:13:08 +02:00
Ray 924bb7226b UPDATED: sdefl and sinfl DEFLATE compression libraries 2023-05-30 21:12:03 +02:00
Ray 3a3e672804 UPDATE: miniaudio v0.11.12 --> v0.11.16 2023-05-17 11:54:32 +02:00
Ray 152262dbfc Update cgltf.h 2023-05-10 12:48:17 +02:00
Ray fe595d60f7 Remove trailing spaces 2023-05-08 18:57:36 +02:00
Ray 0925851f89 Update rl_gputex.h 2023-03-22 20:11:03 +01:00
Webfra 08670ecea1 Add const qualifier to char * path argument in qoaplay_open() (#2972)
* Add const qualifier to char * path argument
in qoa_open()

* Remove unnecessary cast
2023-03-19 20:34:22 +01:00
Ray 9a115106b4 Update miniaudio.h 2023-03-13 11:48:34 +01:00
Ray 8f7e2cd179 Replace TABS by 4 spaces 2023-03-06 15:05:57 +01:00
Ray 614e0518a7 Remove trailing spaces 2023-03-06 14:58:58 +01:00
Ray 68ee0bb8dd ADDED: QOA music streaming (with auxiliar lib)
Some format tweaks
2023-03-06 12:33:49 +01:00
Ray 0eeb499288 Update qoa.h 2023-03-05 11:17:47 +01:00
Ray 22287a78c5 Update qoa.h 2023-02-12 13:29:39 +01:00
Ray 4647441ad8 Update rl_gputex.h 2023-02-12 01:10:54 +01:00
Ray 901c4553d2 ADDED: QOA audio format support -WIP- 2023-02-04 20:20:21 +01:00
Ray 7914332c40 Update qoi.h 2023-02-03 14:54:28 +01:00
Ray d827a65e59 Update external libraries
Switch to official `stb_vorbis.c` instead of using an outdated fork
2023-02-01 11:45:42 +01:00
Go Watanabe f549f67be9 OpenGLES 2.0 support on PLATFORM_DESKTOP (#2840)
* OpenGLES 2.0 support on PLATFORM_DESKTOP

* exmples raylib_opengl_interop desktop GLES2 support

* rename gles2.h -> glad_gles2.h
2023-01-10 12:34:06 +01:00
Ray d5cd5ebd80 Update to latest miniaudio (dev) 2022-10-24 13:37:20 +02:00
CrezyDud aa67f7c39a Fix & Simplify .vox signature check (#2752)
and make version check be only 150 not over 150
2022-10-12 17:14:18 +02:00
Ray 178a356cb4 minor tweaks 2022-09-30 23:07:29 +02:00
Random f14955512f fix issue #2728 (#2731)
* fix issue #2728

* updated gamecontrollerdb: fixes GLFW warning due to invalid entry
2022-09-30 10:09:49 +02:00
Ray 4fe6f885f7 Update gamepad mappings with latest gamecontrollerdb, fix #2725 2022-09-29 11:23:25 +02:00
Nikolas 42ecd72547 [rlgl] Check for extensions before enabling them (#2706)
* [rlgl] Check for extensions before enabling them

* Shift to glad on macOS

* #undef CORE_OPENGL_33

* Remove version hack and fix ASTC compression assumption

* Remove loader from glad

* Use GLAD_MALLOC/FREE instead of malloc/free

* More explicit extension checking
2022-09-18 21:08:51 +02:00
Ray c328f09efc Move compressed textures loading to a separate self-contained library 2022-09-17 19:26:23 +02:00
Ray cb9b8f73c0 ADDED: GenImagePerlinNoise() 2022-09-17 13:39:49 +02:00
Ray 7f5567eec0 Reviewed GLFW compilation requirements on Linux: _GNU_SOURCE
Reasons to NOT define `_GNU_SOURCE`:

 - access to lots of nonstandard GNU/Linux extension functions
 - access to traditional functions which were omitted from the POSIX standard (often for good reason, such as being replaced with better alternatives, or being tied to particular legacy implementations)
 - access to low-level functions that cannot be portable, but that you sometimes need for implementing system utilities like mount, ifconfig, etc.
 - broken behavior for lots of POSIX-specified functions, where the GNU folks disagreed with the standards committee on how the functions should behave and decided to do their own thing.
2022-08-28 15:48:12 +02:00
Ray 568fe42cb1 Reviewed GLFW issue with ppoll() function 2022-08-28 15:37:09 +02:00
Ray 10ae54379a Update posix_poll.c 2022-08-28 15:25:34 +02:00
Ray 9e0e08cba4 WARNING: UPDATED GLFW to latest master branch!
WARNING: This could be a BREAKING CHANGE for some platforms! I'm afraid something could be wrong on `rglfw.c` module.

To be able to compile on Windows I had to modify `glfw/src/platform.c` line 74. I couldn't manage to compile without that change, help is welcome!
2022-08-28 14:16:51 +02:00
Ray f66b1a3136 REVIEWED: Support M3D file loading #2648 2022-08-26 10:04:38 +02:00
Daijiro Fukuda 7bb8ffc29e Win32: resolve some symbols re-definition of windows.h in glfw3native.h (#2643)
* Win32: resolve some symbols re-definition of windows.h in glfw3native.h

This reflects GLFW's fix: https://github.com/glfw/glfw/issues/1348

This enables to build with a external GLFW containing the
following fix:

* https://github.com/glfw/glfw/commit/05f6c13d119ea2662c97527d2421fb4cffd3dbfc

Currently, glfw3native.h of the internal GLFW is customized at
https://github.com/raysan5/raylib/commit/2feea87b616292b5bce4454a42c2d048f1cce7d8

This fix is compatible with the current customized glfw3native.h.

This fix enables us to update it to the latest and remove the
customization.

* Win32: remove unneeded typedef
2022-08-21 11:44:16 +02:00
Ray 4ee5fdf619 ADDED: Support M3D model file format (meshes and materials) #2648 2022-08-20 14:01:54 +02:00
Ray 72b2d1335a Update cgltf.h 2022-08-02 19:05:42 +02:00
Ray d791c1cf64 Update miniaudio.h 2022-08-02 18:50:12 +02:00
Julianiolo 6ed1ce0082 fixed build for cygwin (#2588) 2022-07-23 12:33:23 +02:00
Ray 6259dc4121 Revert "UPDATE: DEFLATE algorithm"
This reverts commit d786af83fc.
2022-05-18 16:23:52 +02:00
Ray d786af83fc UPDATE: DEFLATE algorithm 2022-05-18 13:39:07 +02:00
Ray 22c17da4d7 Update to miniaudio 11.8 2022-03-24 18:22:09 +01:00
Audi Nugraha a0895f1a3c Fix Undefined Symbol _ftelli64 (#2319) 2022-02-03 12:00:33 +01:00
raysan5 524bf57b74 Update qoi.h 2022-01-26 16:33:38 +01:00
raysan5 a7bc5196cc Update dr_wav.h 2021-12-21 20:21:00 +01:00
Uneven Prankster 588de4d095 Re-enable QOI support (#2236)
* Updated QOI to latest version.

* Enable back QOI support!

* Stray extra space! Should be good now.
2021-12-21 14:42:27 +01:00
ptarabbia 2db44bc34a Turn on interpolation for XM playback (#2216) 2021-12-16 16:28:30 +01:00
ptarabbia 86611e6459 Fix issue #2092 (#2215) 2021-12-16 16:27:31 +01:00