Skip to content

Commit 0decdcd

Browse files
authored
update defines for new format etc (#5760)
1 parent 4628915 commit 0decdcd

7 files changed

Lines changed: 59 additions & 56 deletions

File tree

src/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@
252252
#ifndef SUPPORT_FILEFORMAT_PIC
253253
#define SUPPORT_FILEFORMAT_PIC 0 // Disabled by default
254254
#endif
255+
#ifdef SUPPORT_FILEFORMAT_PNM
256+
#define SUPPORT_FILEFORMAT_PNM 0 // Disabled by default
257+
#endif
255258
#ifndef SUPPORT_FILEFORMAT_KTX
256259
#define SUPPORT_FILEFORMAT_KTX 0 // Disabled by default
257260
#endif

src/raudio.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
* - Play/Stop/Pause/Resume loaded audio
1212
*
1313
* CONFIGURATION:
14-
* #define SUPPORT_MODULE_RAUDIO
14+
* #define SUPPORT_MODULE_RAUDIO 1
1515
* raudio module is included in the build
1616
*
1717
* #define RAUDIO_STANDALONE
1818
* Define to use the module as standalone library (independently of raylib)
1919
* Required types and functions are defined in the same module
2020
*
21-
* #define SUPPORT_FILEFORMAT_WAV
22-
* #define SUPPORT_FILEFORMAT_OGG
23-
* #define SUPPORT_FILEFORMAT_MP3
24-
* #define SUPPORT_FILEFORMAT_QOA
25-
* #define SUPPORT_FILEFORMAT_FLAC
26-
* #define SUPPORT_FILEFORMAT_XM
27-
* #define SUPPORT_FILEFORMAT_MOD
21+
* #define SUPPORT_FILEFORMAT_WAV 1
22+
* #define SUPPORT_FILEFORMAT_OGG 1
23+
* #define SUPPORT_FILEFORMAT_MP3 1
24+
* #define SUPPORT_FILEFORMAT_QOA 1
25+
* #define SUPPORT_FILEFORMAT_FLAC 0
26+
* #define SUPPORT_FILEFORMAT_XM 1
27+
* #define SUPPORT_FILEFORMAT_MOD 1
2828
* Selected desired fileformats to be supported for loading. Some of those formats are
29-
* supported by default, to remove support, comment unrequired #define in this module
29+
* supported by default, to remove support, #define as 0 in this module or your build system
3030
*
3131
* DEPENDENCIES:
3232
* miniaudio.h - Audio device management lib (https://github.com/mackron/miniaudio)

src/rcore.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,31 @@
3535
* - Memory framebuffer output, using software renderer, no OS required
3636
*
3737
* CONFIGURATION:
38-
* #define SUPPORT_CAMERA_SYSTEM
38+
* #define SUPPORT_CAMERA_SYSTEM 1
3939
* Camera module is included (rcamera.h) and multiple predefined cameras are available:
4040
* free, 1st/3rd person, orbital, custom
4141
*
42-
* #define SUPPORT_GESTURES_SYSTEM
42+
* #define SUPPORT_GESTURES_SYSTEM 1
4343
* Gestures module is included (rgestures.h) to support gestures detection: tap, hold, swipe, drag
4444
*
45-
* #define SUPPORT_MOUSE_GESTURES
45+
* #define SUPPORT_MOUSE_GESTURES 1
4646
* Mouse gestures are directly mapped like touches and processed by gestures system
4747
*
48-
* #define SUPPORT_BUSY_WAIT_LOOP
48+
* #define SUPPORT_BUSY_WAIT_LOOP 1
4949
* Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used
5050
*
51-
* #define SUPPORT_PARTIALBUSY_WAIT_LOOP
51+
* #define SUPPORT_PARTIALBUSY_WAIT_LOOP 0
5252
* Use a partial-busy wait loop, in this case frame sleeps for most of the time and runs a busy-wait-loop at the end
5353
*
54-
* #define SUPPORT_SCREEN_CAPTURE
54+
* #define SUPPORT_SCREEN_CAPTURE 1
5555
* Allow automatic screen capture of current screen pressing F12, defined in KeyCallback()
5656
*
57-
* #define SUPPORT_COMPRESSION_API
57+
* #define SUPPORT_COMPRESSION_API 1
5858
* Support CompressData() and DecompressData() functions, those functions use zlib implementation
5959
* provided by stb_image and stb_image_write libraries, so, those libraries must be enabled on textures module
6060
* for linkage
6161
*
62-
* #define SUPPORT_AUTOMATION_EVENTS
62+
* #define SUPPORT_AUTOMATION_EVENTS 1
6363
* Support automatic events recording and playing, useful for automated testing systems or AI based game playing
6464
*
6565
* DEPENDENCIES:

src/rmodels.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
* rmodels - Basic functions to draw 3d shapes and load and draw 3d models
44
*
55
* CONFIGURATION:
6-
* #define SUPPORT_MODULE_RMODELS
6+
* #define SUPPORT_MODULE_RMODELS 1
77
* rmodels module is included in the build
88
*
9-
* #define SUPPORT_FILEFORMAT_OBJ
10-
* #define SUPPORT_FILEFORMAT_MTL
11-
* #define SUPPORT_FILEFORMAT_IQM
12-
* #define SUPPORT_FILEFORMAT_GLTF
13-
* #define SUPPORT_FILEFORMAT_GLTF_WRITE
14-
* #define SUPPORT_FILEFORMAT_VOX
15-
* #define SUPPORT_FILEFORMAT_M3D
9+
* #define SUPPORT_FILEFORMAT_OBJ 1
10+
* #define SUPPORT_FILEFORMAT_MTL 1
11+
* #define SUPPORT_FILEFORMAT_IQM 1
12+
* #define SUPPORT_FILEFORMAT_GLTF 1
13+
* #define SUPPORT_FILEFORMAT_GLTF_WRITE 0
14+
* #define SUPPORT_FILEFORMAT_VOX 1
15+
* #define SUPPORT_FILEFORMAT_M3D 1
1616
* Selected desired fileformats to be supported for model data loading
1717
*
18-
* #define SUPPORT_MESH_GENERATION
18+
* #define SUPPORT_MESH_GENERATION 1
1919
* Support procedural mesh generation functions, uses external par_shapes.h library
2020
* NOTE: Some generated meshes DO NOT include generated texture coordinates
2121
*

src/rshapes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
* a single draw call and it also allows users to configure it the same way with their own fonts
1717
*
1818
* CONFIGURATION:
19-
* #define SUPPORT_MODULE_RSHAPES
19+
* #define SUPPORT_MODULE_RSHAPES 1
2020
* rshapes module is included in the build
2121
*
22-
* #define SUPPORT_QUADS_DRAW_MODE
22+
* #define SUPPORT_QUADS_DRAW_MODE 1
2323
* Use QUADS instead of TRIANGLES for drawing when possible. Lines-based shapes still use LINES
2424
*
2525
*

src/rtext.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
* rtext - Basic functions to load fonts and draw text
44
*
55
* CONFIGURATION:
6-
* #define SUPPORT_MODULE_RTEXT
6+
* #define SUPPORT_MODULE_RTEXT 1
77
* rtext module is included in the build
88
*
9-
* #define SUPPORT_FILEFORMAT_FNT
10-
* #define SUPPORT_FILEFORMAT_TTF
11-
* #define SUPPORT_FILEFORMAT_BDF
9+
* #define SUPPORT_FILEFORMAT_FNT 1
10+
* #define SUPPORT_FILEFORMAT_TTF 1
11+
* #define SUPPORT_FILEFORMAT_BDF 0
1212
* Selected desired fileformats to be supported for loading. Some of those formats are
13-
* supported by default, to remove support, comment unrequired #define in this module
13+
* supported by default, to remove support, #define as 0 in this module or your build system
1414
*
15-
* #define TEXTSPLIT_MAX_TEXT_BUFFER_LENGTH
15+
* #define MAX_TEXT_BUFFER_LENGTH 1024
1616
* TextSplit() function static buffer max size
1717
*
18-
* #define MAX_TEXTSPLIT_COUNT
18+
* #define MAX_TEXTSPLIT_COUNT 128
1919
* TextSplit() function static substrings pointers array (pointing to static buffer)
2020
*
21-
* #define FONT_ATLAS_CORNER_REC_SIZE
21+
* #define FONT_ATLAS_CORNER_REC_SIZE 3
2222
* On font atlas image generation [GenImageFontAtlas()], add a NxN pixels white rectangle
2323
* at the bottom-right corner of the atlas. It can be useful to for shapes drawing, to allow
2424
* drawing text and shapes with a single draw call [SetShapesTexture()]

src/rtextures.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
* rtextures - Basic functions to load and draw textures
44
*
55
* CONFIGURATION:
6-
* #define SUPPORT_MODULE_RTEXTURES
6+
* #define SUPPORT_MODULE_RTEXTURES 1
77
* rtextures module is included in the build
88
*
9-
* #define SUPPORT_FILEFORMAT_BMP
10-
* #define SUPPORT_FILEFORMAT_PNG
11-
* #define SUPPORT_FILEFORMAT_TGA
12-
* #define SUPPORT_FILEFORMAT_JPG
13-
* #define SUPPORT_FILEFORMAT_GIF
14-
* #define SUPPORT_FILEFORMAT_QOI
15-
* #define SUPPORT_FILEFORMAT_PSD
16-
* #define SUPPORT_FILEFORMAT_HDR
17-
* #define SUPPORT_FILEFORMAT_PIC
18-
* #define SUPPORT_FILEFORMAT_PNM
19-
* #define SUPPORT_FILEFORMAT_DDS
20-
* #define SUPPORT_FILEFORMAT_PKM
21-
* #define SUPPORT_FILEFORMAT_KTX
22-
* #define SUPPORT_FILEFORMAT_PVR
23-
* #define SUPPORT_FILEFORMAT_ASTC
24-
* Select desired fileformats to be supported for image data loading. Some of those formats are
25-
* supported by default, to remove support, comment unrequired #define in this module
9+
* #define SUPPORT_FILEFORMAT_BMP 1
10+
* #define SUPPORT_FILEFORMAT_PNG 1
11+
* #define SUPPORT_FILEFORMAT_TGA 0
12+
* #define SUPPORT_FILEFORMAT_JPG 0
13+
* #define SUPPORT_FILEFORMAT_GIF 1
14+
* #define SUPPORT_FILEFORMAT_QOI 1
15+
* #define SUPPORT_FILEFORMAT_PSD 0
16+
* #define SUPPORT_FILEFORMAT_HDR 0
17+
* #define SUPPORT_FILEFORMAT_PIC 0
18+
* #define SUPPORT_FILEFORMAT_PNM 0
19+
* #define SUPPORT_FILEFORMAT_DDS 1
20+
* #define SUPPORT_FILEFORMAT_PKM 0
21+
* #define SUPPORT_FILEFORMAT_KTX 0
22+
* #define SUPPORT_FILEFORMAT_PVR 0
23+
* #define SUPPORT_FILEFORMAT_ASTC 0
24+
* Selected desired fileformats to be supported for image data loading. Some of those formats are
25+
* supported by default, to remove support, #define as 0 in this module or your build system
2626
*
27-
* #define SUPPORT_IMAGE_EXPORT
27+
* #define SUPPORT_IMAGE_EXPORT 1
2828
* Support image export in multiple file formats
2929
*
30-
* #define SUPPORT_IMAGE_GENERATION
30+
* #define SUPPORT_IMAGE_GENERATION 1
3131
* Support procedural image generation functionality (gradient, spot, perlin-noise, cellular)
3232
*
3333
* DEPENDENCIES:

0 commit comments

Comments
 (0)