|
6 | 6 | * |
7 | 7 | * LICENSE: zlib/libpng |
8 | 8 | * |
9 | | -* Copyright (c) 2018-2024 Ahmad Fatoum & Ramon Santamaria (@raysan5) |
| 9 | +* Copyright (c) 2018-2023 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 advanced users |
| 69 | +// Support custom frame control, only for advance 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 |
|
81 | 81 | #define MAX_GAMEPADS 4 // Maximum number of gamepads supported |
82 | 82 | #define MAX_GAMEPAD_AXIS 8 // Maximum number of axis supported (per gamepad) |
83 | 83 | #define MAX_GAMEPAD_BUTTONS 32 // Maximum number of buttons supported (per gamepad) |
84 | | -#define MAX_GAMEPAD_VIBRATION_TIME 2.0f // Maximum vibration time in seconds |
85 | 84 | #define MAX_TOUCH_POINTS 8 // Maximum number of touch points supported |
86 | 85 | #define MAX_KEY_PRESSED_QUEUE 16 // Maximum number of keys in the key input queue |
87 | 86 | #define MAX_CHAR_PRESSED_QUEUE 16 // Maximum number of characters in the char input queue |
|
112 | 111 | #define RL_CULL_DISTANCE_NEAR 0.01 // Default projection matrix near cull distance |
113 | 112 | #define RL_CULL_DISTANCE_FAR 1000.0 // Default projection matrix far cull distance |
114 | 113 |
|
115 | | -// Default shader vertex attribute locations |
116 | | -#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION 0 |
117 | | -#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD 1 |
118 | | -#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL 2 |
119 | | -#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR 3 |
120 | | -#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT 4 |
121 | | -#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 5 |
122 | | - |
123 | 114 | // Default shader vertex attribute names to set location points |
124 | 115 | // NOTE: When a new shader is loaded, the following locations are tried to be set for convenience |
125 | | -#define RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION "vertexPosition" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION |
126 | | -#define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD "vertexTexCoord" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD |
127 | | -#define RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL "vertexNormal" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL |
128 | | -#define RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR "vertexColor" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR |
129 | | -#define RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT "vertexTangent" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT |
130 | | -#define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 "vertexTexCoord2" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 |
| 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 |
131 | 122 |
|
132 | 123 | #define RL_DEFAULT_SHADER_UNIFORM_NAME_MVP "mvp" // model-view-projection matrix |
133 | 124 | #define RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW "matView" // view matrix |
|
188 | 179 | // NOTE: If enabled, uses external module functions to load default raylib font |
189 | 180 | #define SUPPORT_DEFAULT_FONT 1 |
190 | 181 | // Selected desired font fileformats to be supported for loading |
191 | | -#define SUPPORT_FILEFORMAT_TTF 1 |
192 | 182 | #define SUPPORT_FILEFORMAT_FNT 1 |
193 | | -//#define SUPPORT_FILEFORMAT_BDF 1 |
| 183 | +#define SUPPORT_FILEFORMAT_TTF 1 |
194 | 184 |
|
195 | 185 | // Support text management functions |
196 | 186 | // If not defined, still some functions are supported: TextLength(), TextFormat() |
|
0 commit comments