summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2021-10-06Updated external librariesraysan5
2021-10-06REVIEWED: `RLGL.State.vertexCounter` (See detailed comment)raysan5
`RLGL.State.vertexCounter` is a generic counter and it's reused for all `rlRenderBatch`, actually, once render batch is filled, required vertex count is provided through the draw calls, so, the total accumulated count of vertices is not directly registered inside the rlRenderBatch. `RLGL.State.vertexCounter` keeps that count but one possible improvement(?) could be moving the `vertexCounter` inside `rlRenderBatch` to always keep a register of the total accumulated vertices in that batch (despite that info is provided by the accumulated `draws[i].vertexCount`. Simplifying, `RLGL.State.vertexCounter = SUM(draws[i].vertexCount)` The decision to move the counter out of `rlVertexBuffer` is to keep only the data that I think should belong to `rlVertexBuffer` and make it more generic, aligned with raylib `Mesh` structure. The decision to not add it to `rlRenderBatch` is because it could contain multiple `rlVertexBuffer` and it would be confusing (because it would only register the count of the last filled one).
2021-10-06Remove trailing spacesRay
2021-10-06REDESIGNED: Simplify vertex data recordingRay
Instead of registering vertex texcoords and colors on every call, we keep the last defined value and we record everything on `glVertex*()`. Actually that behavior is aligned with OpenGL 1.1 standard.
2021-10-05Review functions specifiersraysan5
2021-10-05REVIEWED: API functions specifiersraysan5
2021-10-04Revert "reset resizedLastFrame on web platform (#2020)" (#2032)mausimus
2021-10-04[rcore] fix rpi4 Failed to get DRM resources (#2031)tomarigr
* [rcore] fix rpi4 Failed to get DRM resources card1 is not always the the correct card to use on rpi4 rpi os finds the correct card and links it to /dev/dri/by-path/platform-gpu-card during boot. this fix makes sure that we always point to the correct card on rpi4 * Update rcore.c
2021-10-03REVIEWED: Avoid raymath dependencyRay
Still, it depends on Matrix type... rcamera module should be completely reviewed...
2021-10-03Format tweakRay
2021-10-03ADDED: GetImageColor() #2024Ray
2021-10-03Update raylib.hRay
2021-10-03Minor format tweakRay
2021-10-03Added DrawLineBezierCubic() (#2021)SAOMDVN
Co-authored-by: SAOMDVN <[email protected]>
2021-10-03Supress most warnings on rmodels.c (#2029)Laurentino Luna
* Supress most warnings on rmodels.c NOTE: unused symbols have been deleted and the following report will show in what location they were previously. Unused symbols: - ArrayInt - vox_loader.h: line 84 - initArrayInt - vox_loader.h: line 168 - insertArrayInt - vox_loader.h: line 175 - freeArrayInt - vox_loader.h: line 186 - offsetX, offsetY, offsetZ - vox_loader.h: line 610 - chunkTotalChildSize - vox_loader.h: line 623 Other warnings: - initialization discards 'const' qualifier - vox_loader.h: line 572 - incompatible types for VoxVector3 and Vector3 - rmodels.c: line 5748 - incompatible types for VoxColor and Color - rmodels: line 5749 * Remove ToVector3 and ToColor functions and assign values directly
2021-10-03Minor format tweaksRay
2021-10-03WARNING: REVIEWED: Follow a set of conventionsRay
CONVENTIONS: - Functions are always self-contained, no function use another raymath function inside, required code is directly re-implemented inside - Functions input parameters are always received by value - Functions use always a "result" variable for return - Functions are always defined inline - Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)
2021-10-02Rename BRDG typo to BDRF (#2028)Chris
2021-09-29reset resizedLastFrame on web platform (#2020)mausimus
2021-09-29RLGL: restore draw batch state after limit check (#2018)mausimus
2021-09-27Update raylib.hRay
2021-09-27Update raylib.hRay
2021-09-27ADDED: Vector3Angle()raysan5
2021-09-27Remove tabsraysan5
2021-09-25Add Zig build file (#2014)Tommi Sinivuo
The build file builds Raylib as a static library for either Windows or Linux.
2021-09-23[models] Animation System Fix Part 1 (#2009)Tristan Schulz
* Fixed gltf missing transforms on load mend * extracted Matrix calculation in to static method and added skinning check * fixed formatting * Fixed write to access to nullptr when animation has no normals * Refactored UpdateModelAnimation to only update changed vertices when needed (allows for multi animation playing) * add check for models that were missed during BindGLTFPrimitiveToBones to not segfault the program * fixed id mismatch between animation and model * draft on fixing the mesh to skin mapping * dont look at this * removing debug info
2021-09-23UPDATED: raylib resource filesraysan5
2021-09-23REVIEWED: SeekMusicStream() formatingraysan5
2021-09-23Fix + Return if attempting to seek on a module format (#2008)Uneven Prankster
2021-09-23REVIEWED: LoadImageAnim() #2005Ray
2021-09-23Reviewed some TODO commentsRay
2021-09-22Modify TODO to NOTE on Makefile (#2007)Laurentino Luna
'# TODO: see 'install' target.' should be a note rather than something to do.
2021-09-22Add function DrawCubeTextureRec (#2001)Timon de Groot
* Add function DrawCubeTextureRec * Add EOF newline * Remove unneeded example
2021-09-22`SeekMusicStream` initial implementation (#2006)Uneven Prankster
2021-09-22Use unsigned int for animation count. (#2002)Ryan Roden-Corrent
LoadModelAnimations takes an `int` for the animation count parameter. The animation count should never be negative, so it makes sense to specify it as unsigned in the API. This matches the API for UnloadModelAnimations, which expects an unsigned int. Both GLTF and IQMM also store the animation count internally as unsigned, and we were casting to a signed int for no reason. GLTF actually uses `size_t` internally, so we're technically risking overflow, but having 2^32 animations seems unlikely.
2021-09-22Update rmodels.cRay
2021-09-22Update raylib.hRay
2021-09-22Update rmodels.cRay
2021-09-22Update rmodels.cRay
2021-09-22Update MakefileRay
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-21Minor reviewsRay
2021-09-21Merge branch 'master' of https://github.com/raysan5/raylibraysan5
2021-09-21Tweaksraysan5
2021-09-21Add `up` argument to `DrawBillboardPro` (#1941)Uneven Prankster
* Add `up` argument to `DrawBillboardPro` * Replace tab with proper spaces
2021-09-21ADDED: `GetTouchPointId(index)` #1972raysan5
2021-09-21Reviewed some compilation issues #1997raysan5
2021-09-19Fix mappings.h issue from glfw update (#1995)Chris
- Ran GenerateMappings.cmake to restore mapping changes
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-17Prevent INVALID_SOCKET to be defined twice on linux (#1993)MrSwedish
i got an error because of this lol