4767841b71
Code format review
2025-09-28 19:45:52 +02:00
f36c8ddc56
[rlgl] Allow tint colors in GL_LINE (wires) and GL_POINT (points) draw modes on OpenGL 1.1 clean ( #5207 )
...
* gate with OPENGL_11 prototype and definition for rlSetPointSize and rlGetPointSize
* gate with OPENGL_11 prototype and definition for rlSetPointSize and rlGetPointSize
* more coverage for fixing expected texcoords, normals, and colors
* fix guard styling
* fix guard issue, and remove fallback unneccessary else clause (default shader ill work)
* opengl3.3 and es2 need the color array allocated in order to allow for updates later (unlike opengl11)
2025-09-28 19:34:38 +02:00
4cd131cf29
Update miniaudio to v0.11.23 ( #5208 )
2025-09-28 18:53:40 +02:00
070c7894c6
REVIEWED: Some flags for window/context creation attributes
2025-09-26 23:35:28 +02:00
e79603d501
REDESIGNED: rcore_desktop_win32 platform backend
...
Now it works! but there is still work to do to support all required features...
I really enjoyed reviewing and redesigning this platform backend!
2025-09-26 23:17:37 +02:00
06cfda6ff9
Update raymath.h
2025-09-26 23:03:10 +02:00
87f758f9b4
Review latest PRs formatting
2025-09-26 22:26:19 +02:00
15d234b79d
GLTF anim correctly inherits world transform ( #5206 )
2025-09-26 20:56:37 +02:00
3f6d67c61c
[rcore_android] implement GetCurrentMonitor() ( #5204 )
2025-09-24 20:45:55 +02:00
2554dcba9b
fix rlSetTexture not overriding default mode ( #5200 )
2025-09-24 10:22:03 +02:00
085391e788
[build][cmake] fix issue introduced by #5181 ( #5198 )
...
* fix web build issue with CMake introduced by #5181
* remove ASYNCIFY
2025-09-23 18:04:30 +02:00
fbae395e85
Update raymath.h ( #5201 )
2025-09-23 17:58:42 +02:00
23e0898c65
Ouch!
2025-09-18 15:51:18 +02:00
c264c86ee0
ADDED: Some useful functions for Files and Text management
...
// File management functions
- int FileRename(const char *fileName, const char *fileRename); // Rename file (if exists)
- iint FileRemove(const char *fileName); // Remove file (if exists)
- iint FileCopy(const char *srcPath, const char *dstPath); // Copy file from one path to another, dstPath created if it doesn't exist
- iint FileMove(const char *srcPath, const char *dstPath); // Move file from one directory to another, dstPath created if it doesn't exist
- int FileTextReplace(const char *fileName, const char *search, const char *replacement); // Replace text in an existing file
- iint FileTextFindIndex(const char *fileName, const char *search); // Find text in existing file
// Text management functions
- const char *TextRemoveSpaces(const char *text); // Remove text spaces, concat words
- char *GetTextBetween(const char *text, const char *begin, const char *end); // Get text between two strings
- char *TextReplace(const char *text, const char *search, const char *replacement); // Replace text string (WARNING: memory must be freed!)
- char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replacement); // Replace text between two specific strings (WARNING: memory must be freed!)
2025-09-18 15:34:09 +02:00
bd6065a4fd
Update rlgl.h
2025-09-18 15:29:13 +02:00
dc1632c17a
REVIEWED: Platform code formatting and organization
2025-09-18 15:28:03 +02:00
7729727752
Use the render size not the screen size for screenshots so we use the actual framebuffer size. ( #5192 )
2025-09-18 00:01:24 +02:00
fbdf5e4fd2
fix(rcore): correctly scale content on macOS ( #5186 )
...
Currently, scaling doesn't work correctly on macOS (see #5185 ). This commit
works around this issue by disabling SCALE_FRAMEBUFFER on macOS when
`FLAG_WINDOW_HIGHDPI` is unset.
2025-09-16 19:37:05 +02:00
ed8f1a22d1
Remove trailing spaces
2025-09-14 18:07:58 +02:00
b281101001
[build][cmake] Review web compilation system ( #5181 )
...
* [cmake] export automatically raylib definitions and compile/link options
* [cmake] pass emscripten options to consumer project
* [web] compile for web
* [web] canvas width 100%
2025-09-14 10:05:07 +02:00
b8420d4821
REXM: Update examples
2025-09-13 10:46:14 +02:00
bb0c78476c
[build][cmake] Fix definition to use SDL3 ( #5175 )
...
* fix definition to use SDL3
* [cmake] fix definition to use SDL3
* [build][cmake] prefer USING_VERSION_SDL3 over PLATFORM_DESKTOP_SDL3
* [build][cmake] when libs are added externally, consumer needs to import them too
2025-09-13 10:19:44 +02:00
6cf38b6292
fix SDL3 gamepad detection ( #5176 )
2025-09-13 10:17:17 +02:00
71321d179b
[build][cmake] Added emscripten build options ( #5180 )
...
* [cmake] export automatically raylib definitions and compile/link options
* [cmake] pass emscripten options to consumer project
2025-09-12 21:42:50 +02:00
7db5f56e81
[cmake] export automatically raylib definitions and compile/link options ( #5179 )
2025-09-12 13:07:46 +02:00
8d3a4b8dd5
REVIEWED: Renamed PLATFORM_DESKTOP_SDL3 to USING_VERSION_SDL3 #5175
...
Avoid using a new platform flag to address one platform version
2025-09-12 13:03:28 +02:00
d0c39db6c2
Update rlgl.h
2025-09-12 13:02:13 +02:00
5a54fc12a2
REVIEWED: Prioritize calloc() calls than malloc() on some cases
2025-09-10 21:03:06 +02:00
1b9aa0bcf3
Update rmodels.c
2025-09-09 17:30:18 +02:00
446f015ac5
Review formating
2025-09-05 23:10:13 +02:00
bd810368b0
Fixing base64 decoding error when input string is bad ( #5170 )
...
The following code would crash the previous version when calling MemFree:
// 53 * A
const char maliciousBase64Input[] = "AAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
int decodedSize = 0;
unsigned char *decodedData = DecodeDataBase64(
maliciousBase64Input, &decodedSize);
if (decodedData) {
MemFree(decodedData);
}
The reason is a lack of array bound checks in the decoding loop, which
corrupted here the heap (though this is platform dependent).
Adding the bound checks here prevents the memory corruption.
Tested with encoding random data of sizes 0-1023 and comparing it
with the decoded result.
2025-09-05 23:05:08 +02:00
8e52aee853
Update rtext.c
2025-09-05 00:13:32 +02:00
51aa8776bb
Update rtext.c
2025-09-04 23:53:26 +02:00
0203a47bf9
REDESIGNED: LoadTextLines()/UnloadTextLines()
2025-09-04 23:25:42 +02:00
ba046a5d60
REVIEWED: DecompressData(), fixed buffer copying
2025-09-04 10:44:20 +02:00
64641c6a01
Update raudio.c
2025-09-04 10:33:26 +02:00
48eac60171
REVIEWED: Potential issue with animated normals on OpenGL 1.1
2025-09-03 23:14:58 +02:00
2cb387b50a
REVIEWED: Font atlas image generation, added some comments #5141
2025-09-03 18:30:00 +02:00
f53cd449ce
Update config.h
2025-09-03 18:25:27 +02:00
d1768d387c
Update utils.c
2025-09-03 13:37:08 +02:00
1fa3c15942
Revert "add const qualifier to the first arg of TextJoin ( #5166 )"
...
This reverts commit 4e8d08523f .
2025-09-02 19:00:22 +02:00
4e8d08523f
add const qualifier to the first arg of TextJoin ( #5166 )
...
* add const qualifier to the first arg of TextJoin
* Update raylib_api.* by CI
* Update raylib.h
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ray <raysan5@gmail.com >
2025-09-02 18:58:39 +02:00
29ce5d8aa9
WARNING: BREAKING: LoadFontData() redesigned, added parameter
...
This redesign is a big improvement on font loading time and memory requirements. It only loads glyphs available on font from requested codepoints and only processes those glyphs for packaging. When processing +10K codepoints (CJK), the loading time improves considerably.
2025-09-02 17:45:39 +02:00
aa475b1046
REVIEWED: Code sections description for consistency
2025-09-02 12:34:04 +02:00
8f32c502a7
REVIEWED: Code sections definition
2025-09-02 12:10:40 +02:00
1777da9056
REVIEWED: Avoid realloc() calls, small security improvement
2025-09-01 20:37:23 +02:00
708c1539e4
Update rtextures.c
2025-09-01 11:38:57 +02:00
0a92c863c4
Reverted const codepoints to avoid warnings
2025-09-01 11:27:11 +02:00
12ce72c32d
REVIEWED: ExportImage()
2025-09-01 11:24:53 +02:00
998a18b641
removed macro that does nothing ( #5163 )
2025-09-01 11:17:51 +02:00