| Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
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)
|
|
* implemented GetGamepadName for emscripten
* updated gamepad to use existing name as arary
* removed unnecessary platform_web check
|
|
|
|
- ADDED: `GetTouchPointCount()` to core module, removed from gestures module.
- Support multiple touch points: `MAX_TOUCH_POINTS`.
|
|
|
|
Following english rules, it should be singular name before Count.
|
|
|
|
|
|
|
|
|
|
that share same data types and can be used in standalone mode
|
|
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.
|
|
|
|
|
|
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
|
|
function in emscripten (#1900)
|
|
Legacy keyboard support was blocking the render loop, also it was keeping the last key status until the next key.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When a shader is loaded, by default, several locations are tried to be set automatically.
|
|
Reviewed locations descriptions
|
|
- 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]>
|
|
Simplified some code
|
|
Avoid global variables dependency, now the function is self-contained.
|
|
|
|
Moved outside BeginDrawing()/EndDrawing() to illustrate drawing is happening to an external texture (not screen)
|
|
Actually it's not required for SUPPORT_CUSTOM_FRAME_CONTROL
|
|
|
|
|
|
|
|
* 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
|
|
Avoid possible symbol collisions
|