summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2022-09-27update build.zig (#2720)Michael Scherbakow
zig `master` now enforces to use addIncludePath instead of addIncludeDir
2022-09-26Clarified working of ImageDrawCircle and ImageDrawCircleV (#2719)bXi
2022-09-25REVIEWED: `GeneshHeightmap()`, fix #2716Ray
2022-09-25Fix isssue #2718Ray
2022-09-25ADDED: Support CAPS/NUM lock keys registering if lockedRay
2022-09-22WARNING: Several changes on UTF-8/Codepoints APIRay
- ADDED: `GetCodepointPrevious()` - RENAMED: `GetCodepoint()` -> `GetCodepointNext()`, actually, reimplemented - `GetCodepoint()` has been kept for the moment, for compatibility and also because implementation is different - RENAMED: `TextCodepointsToUTF8()` to `LoadUTF8()`, simpler name and more aligned with raylib conventions (functions loading memory start with Load*()), parameters should be descriptive of functionailty. - ADDED: `UnloadUTF8()`, aligned with `LoadUTF8()` to avoid allocators issues.
2022-09-22Update rcore.cRay
2022-09-19REVIEWED: New functions coding conventionsRay
2022-09-19Added: `ImageDrawCircleLines`, `ImageDrawCircleLinesV` (#2713)Rob Loach
This adds `ImageDrawCircleLines()` and `ImageDrawCircleLinesV()` to draw outlines of circles, and updates `ImageDrawCircle()` draw a filled circle to match the effect of `DrawCircle()` and `DrawCircleLines()`.
2022-09-19REVIEWED: `ScanDirectoryFilesRecursively()`, fix #2704Ray
2022-09-19Update rlgl.hRay
2022-09-19REMOVED: Mipmaps software generation for OpenGL 1.1Ray
As generation is done in software, it's up to the user to do it. `ImageMipmaps()` is already provided for reference.
2022-09-18Remove touch points on touch up events on Android (#2711)Denis Pobedrya
Fixes #2683 Remove elements from touch point related arrays when touch up and similar events are processed. This makes GetTouchPointCount() always report the actual count of touch points, and all positions returned by GetTouchPosition() correspond to positions of currently happening touches.
2022-09-18[rlgl] Check for extensions before enabling them (#2706)Nikolas
* [rlgl] Check for extensions before enabling them * Shift to glad on macOS * #undef CORE_OPENGL_33 * Remove version hack and fix ASTC compression assumption * Remove loader from glad * Use GLAD_MALLOC/FREE instead of malloc/free * More explicit extension checking
2022-09-18Basic gamepad support for Android (#2709)Denis Pobedrya
Currently assumes a single gamepad, has no code specific to gamepad detection (gamepad is "detected" when an event related to gamepad arrives). Also assumes that all gamepads look roughly like an xbox/ps controller. Both assumptions are not strictly true, but an implementation like that probably covers 85% of usecases. Also it doesn't update previousButtonState so functions IsGamepadButtonPressed() and IsGamepadButtonReleased() don't work, but they didn't work previously on Android anyway, and they are flaky on desktop as they are now, so the mechanism for these two functions probably should be reworked anyway. It's certainly an improvement compared to the previous android gamepad handling code, which put gamepad events into touch related structs.
2022-09-18Fix viewport scaling bug on android after context rebind (#2703)Denis Pobedrya
On android after rebinding context (which happens when you minimize and navigate back to an app, or when you turn a screen off and back on) there's a bug that viewport has a wrong scale and part of it is off screen. The change fixes it on devices I tried, but the solution feels hacky to me. However when I attempted instead to call SetupViewport() again which feels like a more proper solution, it didn't fix it.
2022-09-17Fix touchscreen input related functions on Android (#2702)Denis Pobedrya
Fix display -> screen coordinate conversion for android platform and move it to the platform event handling code, simplifying GetTouchPosition() function implementation. Co-authored-by: Denis Pobedrya <[email protected]>
2022-09-17Move compressed textures loading to a separate self-contained libraryRay
2022-09-17ADDED: `GenImagePerlinNoise()`Ray
2022-09-12Enable DXT compression on __APPLE__ targets (#2694)Nikolas
2022-09-10REVIEWED: `CheckCollisionPointPoly()`Ray
2022-09-09WARNING: BREAKING: Reviewed SSBO usage to avoid `long long`Ray
raylib library tries to avoid `long long` usage. Several SSBO functions have been reviewed (including some renames for consistency) to minimize `long long` type usage.
2022-09-07REVIEWED: Data type to unsignedRay
2022-09-05REPLACED: `rlVertex2i()` by `rlVertex2f()`Ray
2022-09-05REMOVED: `rlPushMatrix()`/`rlPopMatrix()` from `rshapes`Ray
This simplification will allow the usage of `rshapes` as STANDALONE mode in a future. Only a small set of `rlgl` functions are required and they can be "more" easely replaced if no `rlPushMatrix()`/`rlPopMatrix()` are involved. More simplification planned for the future, maybe the textures dependencies.
2022-09-05WARNING: BREAKING: Removed `rlCheckRenderBatchLimit()` requirementRay
Updated version to `rlgl 4.2`
2022-09-05REVIEWED: rlgl enums and commentsRay
2022-09-04REVIEWED: M3D model loading #2688Ray
2022-09-04REVIEWED: `CheckCollisionPointPoly()`Ray
2022-09-04Check collision point polygon (#2685)Jacek
* Update raylib.h * CheckCollisionPointPolygon() * typo
2022-09-02WARNING: RENAMED exported symbol to `raylib_version` #2671Ray
2022-09-02WARNING: RENAMED symbol `raylibVersion` to `raylib_version`Ray
I want to note this is a special symbol exported
2022-09-02Export `raylibVersion` symbol. Fixes #2671Ray
2022-09-01ADDED: Complete support for M3D animations! #2648Ray
2022-09-01ADDED: `RL_TEXTURE_MIPMAP_BIAS_RATIO` support to `rlTextureParameters()` for ↵Ray
OpenGL 3.3 #2674
2022-09-01Implemented latest .M3D improvements #2648Ray
2022-09-01Fixed issue with `LoadIQM()` #2676Ray
2022-08-28Reviewed GLFW compilation requirements on Linux: `_GNU_SOURCE`Ray
Reasons to NOT define `_GNU_SOURCE`: - access to lots of nonstandard GNU/Linux extension functions - access to traditional functions which were omitted from the POSIX standard (often for good reason, such as being replaced with better alternatives, or being tied to particular legacy implementations) - access to low-level functions that cannot be portable, but that you sometimes need for implementing system utilities like mount, ifconfig, etc. - broken behavior for lots of POSIX-specified functions, where the GNU folks disagreed with the standards committee on how the functions should behave and decided to do their own thing.
2022-08-28Update MakefileRay
2022-08-28Reviewed GLFW issue with `ppoll()` functionRay
2022-08-28Avoid error on `implicit-function-declaration`Ray
2022-08-28Update posix_poll.cRay
2022-08-28Update rglfw.cRay
2022-08-28WARNING: UPDATED GLFW to latest master branch!Ray
WARNING: This could be a BREAKING CHANGE for some platforms! I'm afraid something could be wrong on `rglfw.c` module. To be able to compile on Windows I had to modify `glfw/src/platform.c` line 74. I couldn't manage to compile without that change, help is welcome!
2022-08-26REVIEWED: Support M3D file loading #2648Ray
2022-08-22ADDED: `-latomic` library on Linux (only required for ARM32)Ray
This linkage is only required for arm 32bit but I don't know how to detect that specific architecture in the Makefile...
2022-08-22REVIEWED: M3D implementation #2648Ray
2022-08-21Fix PATH for Web target (#2647)Rodrigo Escar
2022-08-21Win32: resolve some symbols re-definition of windows.h in glfw3native.h (#2643)Daijiro Fukuda
* Win32: resolve some symbols re-definition of windows.h in glfw3native.h This reflects GLFW's fix: https://github.com/glfw/glfw/issues/1348 This enables to build with a external GLFW containing the following fix: * https://github.com/glfw/glfw/commit/05f6c13d119ea2662c97527d2421fb4cffd3dbfc Currently, glfw3native.h of the internal GLFW is customized at https://github.com/raysan5/raylib/commit/2feea87b616292b5bce4454a42c2d048f1cce7d8 This fix is compatible with the current customized glfw3native.h. This fix enables us to update it to the latest and remove the customization. * Win32: remove unneeded typedef
2022-08-20ADDED: Support M3D model file format (meshes and materials) #2648Ray