summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
AgeCommit message (Collapse)Author
2021-09-22WARNING: MODULES RENAMING!!!Ray
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required. The renamed modules are: - `core` -> `rcore` - `shapes` -> `rshapes` - `textures` -> `rtextures` - `text` -> `rtext` - `models` -> `rmodels` - `camera` -> `rcamera` - `gestures` -> `rgestures` - `core` -> `rcore` All the build systems has been adapted to this change.
2021-09-21ADDED: `GetTouchPointId(index)` #1972raysan5
2021-09-21Reviewed some compilation issues #1997raysan5
2021-09-17Add SetRandomSeed(unsigned int seed) function (#1994)Tommi Sinivuo
Specifying a fixed seed for the random number generator is often used in games for various reasons. By adding an api function for seeding the random number generator we solve two different problems regarding the seeding: 1) The underlying RNG implementation does not leak to client code (as would be the case if we called srand directly from the client code) 2) Seeding the RNG would be simple from other programming languages (especially in cases where calling libc functions is non-trivial)
2021-09-12Implemented GetGamepadName() for emscripten (#1986)Neil Barkhina
* implemented GetGamepadName for emscripten * updated gamepad to use existing name as arary * removed unnecessary platform_web check
2021-09-10Update core.cRay
2021-09-10REVIEWED: Touch input system #1975 #1960Ray
- ADDED: `GetTouchPointCount()` to core module, removed from gestures module. - Support multiple touch points: `MAX_TOUCH_POINTS`.
2021-09-01REVIEWED: Naming: length vs sizeRay
2021-09-01REVIEWED: <name>Count for consistencyRay
Following english rules, it should be singular name before Count.
2021-08-24REVIEWED: Support mouse wheel on x-axis #1948raysan5
2021-08-22Added note on GLFW custom allocators for the futureRay
2021-08-22Minor tweak to avoid false error logsRay
2021-07-31REVIEWED: rlgl defines for consistencyraysan5
2021-07-30REVIEWED: Added new mechanism to avoid data types collision between modules ↵raysan5
that share same data types and can be used in standalone mode
2021-07-30REVERTED: Removed the need for `rlMatrix`raysan5
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like `#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-30Review include path that was breaking the buildraysan5
2021-07-30Review some issuesraysan5
2021-07-29WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-raysan5
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed. - REMOVED: `Texture2D`, `Shader` structs dependency - REMOVED: `Vector3`, `Matrix` structs dependency - REMOVED: raymath functions dependency, all required math is implemented in rlgl - ADDED: `rlMatrix` custom rlgl type - ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types - ADDED: `rl` prefix to all `rlgl` structs - Other small tweaks here and there
2021-07-28fixed DisableCursor() on web by registering an empty mouse click event ↵Kyle Appelgate
function in emscripten (#1900)
2021-07-17Raspberry RPI/DRM keyboard fix (#1879)Luiz Pestana
Legacy keyboard support was blocking the render loop, also it was keeping the last key status until the next key.
2021-07-16Minor format tweaksraysan5
2021-07-13Fix Android multi-touch (#1869)Humberto Yeverino Jr
2021-07-09WARNING on emscripten_set_fullscreenchange_callback()raysan5
2021-07-09Minor tweaks and commentsraysan5
2021-07-06REVIEWED: RPI: Keyboard stdin input #1769raysan5
2021-07-06Minor tweaks on DRM systemraysan5
2021-07-05Review formattingraysan5
2021-07-05WARNING: BREAKING: REMOVED PLATFORM_UWP supportraysan5
After lot of investigation, I'm afraid I'm removing official UWP support from raylib, I'll keep the current implementation in a separate branch (UWP), just in case. It seems Microsoft is trying to replace UWP in the long term, they announced lack of support for the new WinUI 3 and they seem to be moving to Windows App SDK. Also, on current implementation, the code is divided between raylib and the example, requiring multiple callback hooks, making it difficult to follow and maintain. And realistically speaking, raylib is probably not the best option for anyone willing to target UWP, neither Xbox consoles.
2021-07-03Review some commentsraysan5
2021-07-03Update core.craysan5
2021-07-03Review variables initializationraysan5
2021-07-01Minor tweaksraysan5
2021-06-30Remove trailing spacesraysan5
2021-06-29Fix DecompressData() pointer issue (#1856)masterex1000
2021-06-29Review issue with pointer #1854raysan5
2021-06-28Reviewed commentsraysan5
2021-06-26Minor tweaks to follow code conventionsRay
2021-06-25WARNING: REVIEWED: Default shader uniform namesRay
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-25REVIEWED: LoadShader() and default locationsRay
Reviewed locations descriptions
2021-06-24fix to LoadShaderFromMemory (#1851)Ruminant
- the shader.locs now match the LoadShader function Without this change, the lighting sample looks incorrect when using LoadShaderFromMemory Co-authored-by: Ruminant <[email protected]>
2021-06-24REVIEWED: `CORE.Storage.basePath`Ray
Simplified some code
2021-06-24REVIEWED: WaitTime() #1841Ray
Avoid global variables dependency, now the function is self-contained.
2021-06-23Allow SetWindowSize() on web (#1847)Nikhilesh S
2021-06-23Review BeginTextureMode() usageRay
Moved outside BeginDrawing()/EndDrawing() to illustrate drawing is happening to an external texture (not screen)
2021-06-22Review and un-expose InitTimer()Ray
Actually it's not required for SUPPORT_CUSTOM_FRAME_CONTROL
2021-06-22Formatting reviewRay
2021-06-22Add support for resizing Emscripten canvas (#1840)Sky
2021-06-21Review GetFPS()Ray
2021-06-21core: added `GetMouseDelta()` (#1832)Adrian Guerrero Vera
* core: added `GetMouseDelta()` Thanks to previousPosition added by raysan it is now possible to create the GetMouseDelta() function. Returns a Vector2 with the difference between the current and previous position of the mouse in a frame. Useful for creating camera scrolling, among others. * Added changes noted by raysan
2021-06-17RENAMED: `SwapBuffers()` -> `SwapScreenBuffer()`Ray
Avoid possible symbol collisions