summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2023-04-22Fix off-by-one error in CheckCollisionPointRec (#3022)Dan Bechard
Checking `<= x + w` causes off-by-one error where `CheckCollisionPointRec` will return true at the same time for two rectangles rendered right next to each, but which don't overlap (e.g. when making a 2D tile editor). This is clearly not what was intended.
2023-04-17Avoid shader attribute not found logRay
2023-04-17Remove trailing spacesRay
2023-04-15[raudio] Rewritten `ExportWaveAsCode()` file saving to be more like ↵RadsammyT
rtextures `ExportImageAsCode()` (#3013) * Update raudio.c Review `raudio.c`: rewritten `ExportWaveAsCode()` to be more like rtextures.c `ExportImageAsCode()' * no tab november accidentally inserted a tab somewhere. corrected it.
2023-04-13Make assets loading extension case insensitive #3008Ray
2023-04-10Avoid tracelog about not found uniforms #3003Ray
2023-04-09Minor fix in DrawLineBezier* (#3006)eternalStudent
When `i` starts with `0`, `t` is also `0`, which results in `previous == startPos == current`, this segment is not only redundant, but it also causes division-by-zero since `sqrtf(dx*dx + dy*dy)` is zero.
2023-04-09Fix warnings in raylib for MSVC (#3004)Jeffery Myers
2023-04-06REVIEWED: `GetGlyphIndex()` #3000Ray
2023-04-06[rtext] Fix GetCodepointNext() to return default value on invalid input with ↵chocolate42
size=0 (#2997) * Fix GetCodepointNext to return default value with size=0 on invalid input. Modify LoadCodepoints to work when GetCodepointNext returns a size of 0. All internal use of GetCodepointNext and GetCodepointPrev checked. This fix may break external code dealing with invalid input as the old code erroneously never returned a size of 0, external code that doesn't properly check for size=0 may endlessly loop or overflow a buffer on invalid input. * Change default behaviour of GetCodepointNext to return a size of 1 instead of 0. This matches existing prod behaviour and guarantees size 1..4 is returned. Simplify internal code that uses GetCodepointNext that previously had to account for size=0. * Simplified progressing through a UTF-8 string in ImageTextEx and MeasureTextEx. This change matches existing precedent in DrawTextEx * GetCodepointNext: Add 10xxxxxx checks to multibyte encodings. --------- Co-authored-by: anon <anon>
2023-03-22Lazy loading of default font for image loading (no InitWindow)Ray
2023-03-22Update rl_gputex.hRay
2023-03-22Minor tweaks to raylib events automation systemRay
2023-03-22Update CMakeLists.txtRay
2023-03-22Update resource arch for 64bit #2978Ray
2023-03-22Review formatRay
2023-03-22slightly optimize Vector3Normalize (#2982)Rico P
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