|
6 | 6 | *
|
7 | 7 | * LICENSE: zlib/libpng
|
8 | 8 | *
|
9 |
| -* Copyright (c) 2018-2023 Ahmad Fatoum & Ramon Santamaria (@raysan5) |
| 9 | +* Copyright (c) 2018-2024 Ahmad Fatoum & Ramon Santamaria (@raysan5) |
10 | 10 | *
|
11 | 11 | * This software is provided "as-is", without any express or implied warranty. In no event
|
12 | 12 | * will the authors be held liable for any damages arising from the use of this software.
|
|
66 | 66 | #define SUPPORT_COMPRESSION_API 1
|
67 | 67 | // Support automatic generated events, loading and recording of those events when required
|
68 | 68 | #define SUPPORT_AUTOMATION_EVENTS 1
|
69 |
| -// Support custom frame control, only for advance users |
| 69 | +// Support custom frame control, only for advanced users |
70 | 70 | // By default EndDrawing() does this job: draws everything + SwapScreenBuffer() + manage frame timing + PollInputEvents()
|
71 | 71 | // Enabling this flag allows manual control of the frame processes, use at your own risk
|
72 | 72 | //#define SUPPORT_CUSTOM_FRAME_CONTROL 1
|
73 | 73 |
|
| 74 | + |
74 | 75 | // rcore: Configuration values
|
75 | 76 | //------------------------------------------------------------------------------------
|
76 | 77 | #define MAX_FILEPATH_CAPACITY 8192 // Maximum file paths capacity
|
|
81 | 82 | #define MAX_GAMEPADS 4 // Maximum number of gamepads supported
|
82 | 83 | #define MAX_GAMEPAD_AXIS 8 // Maximum number of axis supported (per gamepad)
|
83 | 84 | #define MAX_GAMEPAD_BUTTONS 32 // Maximum number of buttons supported (per gamepad)
|
| 85 | +#define MAX_GAMEPAD_VIBRATION_TIME 2.0f // Maximum vibration time in seconds |
84 | 86 | #define MAX_TOUCH_POINTS 8 // Maximum number of touch points supported
|
85 | 87 | #define MAX_KEY_PRESSED_QUEUE 16 // Maximum number of keys in the key input queue
|
86 | 88 | #define MAX_CHAR_PRESSED_QUEUE 16 // Maximum number of characters in the char input queue
|
|
99 | 101 | // Show OpenGL extensions and capabilities detailed logs on init
|
100 | 102 | //#define RLGL_SHOW_GL_DETAILS_INFO 1
|
101 | 103 |
|
| 104 | +#define RL_SUPPORT_MESH_GPU_SKINNING 1 // GPU skinning, comment if your GPU does not support more than 8 VBOs |
| 105 | + |
102 | 106 | //#define RL_DEFAULT_BATCH_BUFFER_ELEMENTS 4096 // Default internal render batch elements limits
|
103 | 107 | #define RL_DEFAULT_BATCH_BUFFERS 1 // Default number of batch buffers (multi-buffering)
|
104 | 108 | #define RL_DEFAULT_BATCH_DRAWCALLS 256 // Default number of batch draw calls (by state changes: mode, texture)
|
|
111 | 115 | #define RL_CULL_DISTANCE_NEAR 0.01 // Default projection matrix near cull distance
|
112 | 116 | #define RL_CULL_DISTANCE_FAR 1000.0 // Default projection matrix far cull distance
|
113 | 117 |
|
| 118 | +// Default shader vertex attribute locations |
| 119 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION 0 |
| 120 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD 1 |
| 121 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL 2 |
| 122 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR 3 |
| 123 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT 4 |
| 124 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 5 |
| 125 | +#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES 6 |
| 126 | +#if defined(RL_SUPPORT_MESH_GPU_SKINNING) |
| 127 | + #define RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS 7 |
| 128 | + #define RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS 8 |
| 129 | +#endif |
| 130 | + |
114 | 131 | // Default shader vertex attribute names to set location points
|
115 | 132 | // NOTE: When a new shader is loaded, the following locations are tried to be set for convenience
|
116 |
| -#define RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION "vertexPosition" // Bound by default to shader location: 0 |
117 |
| -#define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD "vertexTexCoord" // Bound by default to shader location: 1 |
118 |
| -#define RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL "vertexNormal" // Bound by default to shader location: 2 |
119 |
| -#define RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR "vertexColor" // Bound by default to shader location: 3 |
120 |
| -#define RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT "vertexTangent" // Bound by default to shader location: 4 |
121 |
| -#define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 "vertexTexCoord2" // Bound by default to shader location: 5 |
| 133 | +#define RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION "vertexPosition" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION |
| 134 | +#define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD "vertexTexCoord" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD |
| 135 | +#define RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL "vertexNormal" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL |
| 136 | +#define RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR "vertexColor" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR |
| 137 | +#define RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT "vertexTangent" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT |
| 138 | +#define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 "vertexTexCoord2" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 |
122 | 139 |
|
123 | 140 | #define RL_DEFAULT_SHADER_UNIFORM_NAME_MVP "mvp" // model-view-projection matrix
|
124 | 141 | #define RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW "matView" // view matrix
|
|
161 | 178 | //#define SUPPORT_FILEFORMAT_ASTC 1
|
162 | 179 | //#define SUPPORT_FILEFORMAT_PKM 1
|
163 | 180 | //#define SUPPORT_FILEFORMAT_PVR 1
|
164 |
| -//#define SUPPORT_FILEFORMAT_SVG 1 |
165 | 181 |
|
166 | 182 | // Support image export functionality (.png, .bmp, .tga, .jpg, .qoi)
|
167 | 183 | #define SUPPORT_IMAGE_EXPORT 1
|
|
179 | 195 | // NOTE: If enabled, uses external module functions to load default raylib font
|
180 | 196 | #define SUPPORT_DEFAULT_FONT 1
|
181 | 197 | // Selected desired font fileformats to be supported for loading
|
182 |
| -#define SUPPORT_FILEFORMAT_FNT 1 |
183 | 198 | #define SUPPORT_FILEFORMAT_TTF 1
|
| 199 | +#define SUPPORT_FILEFORMAT_FNT 1 |
| 200 | +//#define SUPPORT_FILEFORMAT_BDF 1 |
184 | 201 |
|
185 | 202 | // Support text management functions
|
186 | 203 | // If not defined, still some functions are supported: TextLength(), TextFormat()
|
|
215 | 232 | // rmodels: Configuration values
|
216 | 233 | //------------------------------------------------------------------------------------
|
217 | 234 | #define MAX_MATERIAL_MAPS 12 // Maximum number of shader maps supported
|
| 235 | + |
| 236 | +#ifdef RL_SUPPORT_MESH_GPU_SKINNING |
| 237 | +#define MAX_MESH_VERTEX_BUFFERS 9 // Maximum vertex buffers (VBO) per mesh |
| 238 | +#else |
218 | 239 | #define MAX_MESH_VERTEX_BUFFERS 7 // Maximum vertex buffers (VBO) per mesh
|
| 240 | +#endif |
219 | 241 |
|
220 | 242 | //------------------------------------------------------------------------------------
|
221 | 243 | // Module: raudio - Configuration Flags
|
|
251 | 273 | //------------------------------------------------------------------------------------
|
252 | 274 | #define MAX_TRACELOG_MSG_LENGTH 256 // Max length of one trace-log message
|
253 | 275 |
|
| 276 | + |
| 277 | +// Enable partial support for clipboard image, only working on SDL3 or |
| 278 | +// being on both Windows OS + GLFW or Windows OS + RGFW |
| 279 | +#define SUPPORT_CLIPBOARD_IMAGE 1 |
| 280 | + |
| 281 | +#if defined(SUPPORT_CLIPBOARD_IMAGE) |
| 282 | + #ifndef STBI_REQUIRED |
| 283 | + #define STBI_REQUIRED |
| 284 | + #endif |
| 285 | + |
| 286 | + #ifndef SUPPORT_FILEFORMAT_BMP // For clipboard image on Windows |
| 287 | + #define SUPPORT_FILEFORMAT_BMP 1 |
| 288 | + #endif |
| 289 | + |
| 290 | + #ifndef SUPPORT_FILEFORMAT_PNG // Wayland uses png for prints, at least it was on 22 LTS ubuntu |
| 291 | + #define SUPPORT_FILEFORMAT_PNG 1 |
| 292 | + #endif |
| 293 | + |
| 294 | + #ifndef SUPPORT_FILEFORMAT_JPG |
| 295 | + #define SUPPORT_FILEFORMAT_JPG 1 |
| 296 | + #endif |
| 297 | + |
| 298 | + #ifndef SUPPORT_MODULE_RTEXTURES |
| 299 | + #define SUPPORT_MODULE_RTEXTURES 1 |
| 300 | + #endif |
| 301 | +#endif |
| 302 | + |
254 | 303 | #endif // CONFIG_H
|
0 commit comments