Skip to content

Commit 29e4b77

Browse files
committed
RENAMED: rl_gputex to rltexgpu
1 parent 2c39703 commit 29e4b77

4 files changed

Lines changed: 18 additions & 17 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,13 @@ Detailed changes:
747747
[rexm] REVIEWED: `Makefile.Web` before trying to rebuild new example for web by @raysan5
748748
[rexm] REVIEWED: Using `Makefile.Web` for specific web versions generation by @raysan5
749749

750+
[external] RENAMED: `rl_gputex.h` to `rltexgpu.h`, compressed textures loading
751+
[external] REVIEWED: `rltexgpu.h`, make it usable standalone by @raysan5
752+
[external] REVIEWED: `rltexgpu.h, fix the swizzling in `rl_load_dds_from_memory()` (#5422) by @msmith-codes
753+
[external]`REVIEWED: `rltexgpu.h, decouple logging and memory allocation from raylib by @sleeptightAnsiC
750754
[external] REVIEWED: `jar_mod.h`, buffer overflow on memcpy by @LoneAuios
751755
[external] REVIEWED: `sdefl` and `sinfl` issues (#5367) by @raysan5
752756
[external] REVIEWED: `sinfl_bsr()`, improvements by @RicoP
753-
[external] REVIEWED: `rl_gputex.h`, make it usable standalone by @raysan5
754-
[external] REVIEWED: `rl_gputex.h,, fix the swizzling in `rl_load_dds_from_memory()` (#5422) by @msmith-codes
755-
[external]`REVIEWED: `rl_gputex.h,, decouple logging and memory allocation from raylib by @sleeptightAnsiC
756757
[external] REVIEWED: `stb_truetype`, fix composite glyph scaling logic (#4811) by @ashishbhattarai
757758
[external] UPDATED: dr_libs (#5020) by @Emil2010
758759
[external] UPDATED: miniaudio to v0.11.22 (#4983) by @M374LX

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Highlights for `raylib 4.5`:
419419

420420
- **`NEW` Support QOA audio format (import/export)**: Just a couple of months ago the new [QOA file format](https://qoaformat.org/) was published, a very simple, portable and open source quite-ok-audio file format. raylib already supports it, added to `raudio` module and including audio loading from file, loading from memory, streaming from file, streaming from memory and **exporting to QOA** audio format. **Because simplicity really matters to raylib!**
421421

422-
- **`NEW` Module for compressed textures loading**: [`rl_gputex`](https://github.com/raysan5/raylib/blob/master/src/external/rl_gputex.h), a portable single-file header-only small library to load compressed texture file-formats (DDS, PKM, KTX, PVR, ASTC). Provided functionality is not new to raylib but it was part of the raylib `rtextures` module, now it has been moved into a separate self-contained library, **improving portability**. Note that this module is only intended to **load compressed data from files, ready to be uploaded to GPU**, no compression/decompression functionality is provided. This change is a first step towards a better modularization of raylib library.
422+
- **`NEW` Module for compressed textures loading**: [`rl_gputex`](https://github.com/raysan5/raylib/blob/master/src/external/rltexgpu.h), a portable single-file header-only small library to load compressed texture file-formats (DDS, PKM, KTX, PVR, ASTC). Provided functionality is not new to raylib but it was part of the raylib `rtextures` module, now it has been moved into a separate self-contained library, **improving portability**. Note that this module is only intended to **load compressed data from files, ready to be uploaded to GPU**, no compression/decompression functionality is provided. This change is a first step towards a better modularization of raylib library.
423423

424424
- **Reviewed `rlgl` module for automatic limits checking**: Again, [`rlgl`](https://github.com/raysan5/raylib/blob/master/src/rlgl.h) has been reviewed to simplify usage. Now users do not need to worry about reaching the internal render-batch limits when they send their triangles to draw 2d/3d, `rlgl` manages it automatically! This change allows a **great simplification for other modules** like `rshapes`, `rtextures` and `rmodels` that do not need to worry about bufffer overflows and can just define as many vertex as desired!
425425

src/raylib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* [rtextures] stb_image_write (Sean Barret) for image writing (BMP, TGA, PNG, JPG)
4141
* [rtextures] stb_image_resize2 (Sean Barret) for image resizing algorithms
4242
* [rtextures] stb_perlin (Sean Barret) for Perlin Noise image generation
43-
* [rtextures] rl_gputex (Ramon Santamaria) for GPU-compressed texture formats
43+
* [rtextures] rltexgpu (Ramon Santamaria) for GPU-compressed texture formats
4444
* [rtext] stb_truetype (Sean Barret) for ttf fonts loading
4545
* [rtext] stb_rect_pack (Sean Barret) for rectangles packing
4646
* [rmodels] par_shapes (Philip Rideout) for parametric 3d shapes generation

src/rtextures.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,19 @@
100100
#endif
101101

102102
#if SUPPORT_FILEFORMAT_DDS
103-
#define RL_GPUTEX_SUPPORT_DDS
103+
#define RLTEXGPU_SUPPORT_DDS
104104
#endif
105105
#if SUPPORT_FILEFORMAT_PKM
106-
#define RL_GPUTEX_SUPPORT_PKM
106+
#define RLTEXGPU_SUPPORT_PKM
107107
#endif
108108
#if SUPPORT_FILEFORMAT_KTX
109-
#define RL_GPUTEX_SUPPORT_KTX
109+
#define RLTEXGPU_SUPPORT_KTX
110110
#endif
111111
#if SUPPORT_FILEFORMAT_PVR
112-
#define RL_GPUTEX_SUPPORT_PVR
112+
#define RLTEXGPU_SUPPORT_PVR
113113
#endif
114114
#if SUPPORT_FILEFORMAT_ASTC
115-
#define RL_GPUTEX_SUPPORT_ASTC
115+
#define RLTEXGPU_SUPPORT_ASTC
116116
#endif
117117

118118
// Image fileformats not supported by default
@@ -161,13 +161,13 @@
161161
#pragma GCC diagnostic ignored "-Wunused-function"
162162
#endif
163163

164-
#define RL_GPUTEX_MALLOC RL_MALLOC
165-
#define RL_GPUTEX_FREE RL_FREE
166-
#define RL_GPUTEX_LOG(...) TRACELOG(LOG_WARNING, "IMAGE: " __VA_ARGS__)
167-
#define RL_GPUTEX_SHOW_LOG_INFO
168-
#define RL_GPUTEX_IMPLEMENTATION
169-
#include "external/rl_gputex.h" // Required for: rl_load_xxx_from_memory()
170-
// NOTE: Used to read compressed textures data (multiple formats support)
164+
#define RLTEXGPU_MALLOC RL_MALLOC
165+
#define RLTEXGPU_FREE RL_FREE
166+
#define RLTEXGPU_LOG(...) TRACELOG(LOG_WARNING, "IMAGE: " __VA_ARGS__)
167+
#define RLTEXGPU_SHOW_LOG_INFO
168+
#define RLTEXGPU_IMPLEMENTATION
169+
#include "external/rltexgpu.h" // Required for: rl_load_xxx_from_memory()
170+
// NOTE: Used to read compressed textures data (multiple formats support)
171171
#if defined(__GNUC__) // GCC and Clang
172172
#pragma GCC diagnostic pop
173173
#endif

0 commit comments

Comments
 (0)