summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2023-03-22Fix packing logic error in ```GenImageFontAtlas``` (#2979)Hanaxar
Basic packing algorithm currently follows this order: Copy pixel data -> Move offsetX for current glyph -> Check remaining space for current glyph... Since X offset already moved according current glyph, remaining space should be checked for next glyph. Because of this, occasionally, current logic causes glyphs wrapping around texture. Proposed fix accomplishes that by moving offsetX check to the beginning of the loop.
2023-03-22Calculate exact image size in GenImageFontAtlas (#2963)Hanaxar
* Calculate exact image size in GenImageFontAtlas Calculate exact image size with a method based on total glyph width and glyph row count Current method seemed a little bit overkill with square root, log and power functions and only approximates image size which can be wonky with some weird fonts like cursive fonts. Proposed method calculates image size directly with a simpler method and results exact image size needed. * Update rtext.c * Update rtext.c Changed do-while to while loop, and also added an extra step to calculate maximum glyph width and excluding it from image width for extra safety.
2023-03-20Updated version to avoid confusion with 4.5 releaseRay
2023-03-20Fix typo in rmodels.c (#2976)Ikko Eltociear Ashimine
Upate -> Update
2023-03-19Add const qualifier to char * path argument in qoaplay_open() (#2972)Webfra
* Add const qualifier to char * path argument in qoa_open() * Remove unnecessary cast
2023-03-19raudio: Fix warning on discarded const qualifier (#2967)Rob Loach
The `qoaplay_open()` function expects a `char *`, but we are passing in a `const char *`. While this works just fine, it does issue a compiler warning when strict: ``` src/raudio.c: In function ‘LoadMusicStream’: src/raudio.c:1290:45: warning: passing argument 1 of ‘qoaplay_open’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1290 | qoaplay_desc *ctxQoa = qoaplay_open(fileName); | ^~~~~~~~ In file included from src/raudio.c:233: src/external/qoaplay.c:86:34: note: expected ‘char *’ but argument is of type ‘const char *’ 86 | qoaplay_desc *qoaplay_open(char *path) | ~~~~~~^~~~ ``` This change casts the argument to a `char *` to fix the warning.
2023-03-19Fix missing symbol when rglfw.c on BSD platforms (#2968)Niels Martignène
2023-03-18Update Makefile comment to indicate arm64 as a supported Linux desktop ↵ashn
platform (#2965)
2023-03-15Update config.hRay
2023-03-15REVIEWED: `TraceLog()`, avoid possible buffer overflowRay
2023-03-14Spelling (#2957)veins1
2023-03-14Update rlgl.hRay
2023-03-13Updated Makefiles to include all missing new examplesRay
2023-03-13Remove trailing spacesRay
2023-03-13Delete rcamera.old.hRay
2023-03-13Update miniaudio.hRay
2023-03-12Some tweaksRay
2023-03-12Update version to `raylib 4.5`Ray
2023-03-12REVIEWED: `UpdateCameraPro()` to use `Vector3`Ray
2023-03-12ADDED: `UpdateCameraPro()` -Experimental-Ray
REVIEWED: rcamera module formating REVIEWED: `core_3d_camera_example`
2023-03-12ADDED: Security check for `emscripten_run_script()` #2954Ray
2023-03-12Update rcore.cRay
2023-03-07`WARNING`: REMOVED: `UnloadModelKeepMeshes()`Ray
2023-03-07REVIEWED: Data types validationRay
2023-03-07WARNING: REMOVED: Multichannel audio support APIRay
2023-03-07WARNING: REMOVED: Multichannel audio support APIRay
It was quite restrictive and hacky implementation, just load multiple types same sound to play multiple instances.
2023-03-06fix(build): Fix DLL build on Windows (#2951)Sid K
Changes the DLL export condition to apply to platform WIN32 instead of compiler MSVC
2023-03-06Replace TABS by 4 spacesRay
2023-03-06Remove trailing spacesRay
2023-03-06Tweak `WindowDropCallback()` #2943Ray
2023-03-06Update raudio.cRay
2023-03-06ADDED: QOA music streaming (with auxiliar lib)Ray
Some format tweaks
2023-03-05REVIEWED: `GetWindowHandle()` #2950Ray
2023-03-05Support QOA audio file format by defaultRay
2023-03-05REVIEWED: QOA audio file exportRay
2023-03-05Close issue #2949Ray
2023-03-05Update qoa.hRay
2023-03-05Change default threading model for COM objectsRay
It shouldn't matter much but it could avoid some conflicts with other libraries in the future (like `tinyfiledialogs`).
2023-03-04REVIEWED: `GetWindowHandle()` #2938Ray
2023-02-26Add GL_MIN GL_MAX blending equations (#2945)Antonis Geralis
2023-02-25Update rtextures.cRay
2023-02-25Minimal tweakRay
2023-02-24Update rcore.cRay
2023-02-24REVIEWED: `rlUnloadFramebuffer()` #2937Ray
2023-02-24Update rtext.cRay
2023-02-23REVIEWED: Data validationRay
2023-02-22ADDED: Security checksRay
2023-02-21REVIEWED: `GenMeshTangents()`, avoid crash on missing texcoords data #2927Ray
2023-02-21REVIEWED: `GetMonitorWidth()` and `GetMonitorHeight()` #2934Ray
2023-02-21REVIEWED: `IsWindowFocused()` to consider Android App state #2935Ray