summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2021-04-03Make SaveFile* callbacks return a boolean (#1697)Rob Loach
2021-04-02ADDED: GenMeshDefault() #1556raysan5
2021-04-02REDESIGN: Move GenTexture*() functions to PBR example #721raysan5
Removed functions from rlgl module.
2021-04-02REVIEWED: GenTexture*() functions #721raysan5
Avoid RLGL data dependency to allow moving the functions somewhere else
2021-04-02REVIEWED: ToggleFullscreen() on web #1241raysan5
After some investigation, I came to the conclusion it's impossible to get a solution that works for all situations. Fullscreen mode on web depends on the browser, the canvas and also the desired scaling strategy of the user. Just choose a solution that fits me needs for now and let the user manage the canvas on their webs (hopefully not requiring ToggleFullscreen() call). Also removed several useless related callbacks.
2021-04-02Review compress/decompress logsraysan5
2021-04-02Remove old flagraysan5
2021-04-02Update Makefileraysan5
2021-04-01Review libc dependencyraysan5
2021-04-01Remove trailing spacesraysan5
2021-04-01Review commentsraysan5
2021-03-31ADDED: Support model normal matrix location #1691raysan5
2021-03-31Review formattingraysan5
2021-03-31REVIEWED: DrawMeshInstanced() matrix computationsraysan5
Simplified some parts and reviewed for a correct computation of matrices, considering stereo render view/projection per eye transformations
2021-03-31REVIEWED: Define instancing API entry points for RPIraysan5
2021-03-31REVIEWED: CheckCollisionPointLine()raysan5
Use fabsf() instead of abs()
2021-03-31RENAMED: example: shaders_mesh_instancingraysan5
shaders_rlgl_mesh_instanced -> shaders_mesh_instancing
2021-03-31Review code formattingraysan5
2021-03-31[shapes] CheckCollisionPointTriangle (fix), CheckCollisionPointLine (new ↵mkupiec1
routine) (#1695) * CheckCollisionPointTriangle * New feature proposal to existing collision detection routines. It checks if point [point] belongs to line created between two points [p1] and [p2] with defined margin in pixels[threshold]. 1693
2021-03-31REVIEWED: RPI instancing checks #1679raysan5
2021-03-28Review matrix multiplicationraysan5
2021-03-28REVIEWED: rlgl: Stereo render is working againraysan5
As a bonus, stereo render is compatible with mesh instancing now!
2021-03-28REVIEWED: tinyobjloader #1568raysan5
2021-03-28ADDED: LoadShaderFromMemory() #1690raysan5
2021-03-28REVIEWED: DrawTexturePoly()raysan5
2021-03-27GetCollisionRayMesh makes use of triangle count (#1688)Carlos Hernandez Barbera
Co-authored-by: Carlos Hernandez Barbera <[email protected]>
2021-03-27Fixing pointer arithmetic to avoid error [-Werror=pointer-arith] (#1685)Maksymilian Mika
2021-03-26Preserve floating point values in DrawRectangleLinesEx (#1683)Dan Bechard
2021-03-26REVIEWED: DrawMeshInstanced()Ray
2021-03-25REVIEWED: OpenGL 1.1 working againRay
2021-03-25WARNING: BREAKING: rlgl redesign -WIP-Ray
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements: - [models] OpenGL 1.1 mesh rendering: DrawMesh() - [models] Mesh Instancing: DrawMeshInstanced() - [models] Stereo rendering: DrawMesh() - [models] GL_FLOAT, GL_UNSIGNED_INT exposed - [models] GenMeshCustom() - [rlgl] GenTexture*() functions removal?
2021-03-25Add DrawTexturedPoly and example (#1677)chriscamacho
* adds DrawTexturedPoly with example * the actual example ... ahem * moved DrawTexturePoly to textures function and example NB function name changed to fit with other DrawTextureXXX functions (no "d" ) Co-authored-by: codifies <[email protected]>
2021-03-24Change the color of the FPS display if the FPS is low (orange for <30, red ↵Jeffery Myers
for < 15). (#1676) Co-authored-by: Jeffery Myers <[email protected]>
2021-03-24Reviewed DrawFPS() commentRay
2021-03-24REMOVED: DrawGizmo()Ray
This is a very simple and specific implementation that should be better addressed by the users
2021-03-24Update textures.cRay
2021-03-24REVIEWED: DrawRectangleRounded() performance #1523Ray
Function analyzed using RenderDoc. It's a complex function and could require many triangles for the corners but it seems overall it's quite optimized!
2021-03-23Fix activeTextureId to have MAX_BATCH_ACTIVE_TEXTURES elements instead of ↵Victor
the hardcoded 4 (#1674)
2021-03-23Fix 90 degree bug with DrawTexturePro and DrawRectanglePro (#1673)Chris
- The vertices did not map to where I expected causing rotation to be off by 90 degrees. I reorganized the vertices making it easier to reason about which fixes this. - The order for drawing is now topLeft, bottomLeft, bottomRight, topRight.
2021-03-23Update rlgl.hRay
2021-03-23REVIEWED: rlgl_standalone usageRay
2021-03-23Don't call sqrtf when axis already normalized (#1672)Dan Bechard
2021-03-23Fix PATH for other PLATFORM_OS's (#1671)Davidson Francis
The Raylib root Makefile for PLATFORM=PLATFORM_WEB is assumed to run in Windows environments, which makes it incorrectly set the PATH variable, so Linux (and possibly other) environments are not able to find binaries from EMSDK_PATH. Fix this by checking which PLATFORM_OS and configure PATH accordingly.
2021-03-22typecast warning fixes. (#1667)Jeffery Myers
Co-authored-by: Jeffery Myers <[email protected]>
2021-03-22WARNING: BREAKING: REDESIGNED: rlgl moduleRay
- Many functions renamed to follow rl*() convention - Some internal functions exposed in the API - Some functionality moved to other modules - Reorganized all functions by categories - Make sure it keeps working with OpenGL 1.1 and 2.1
2021-03-22Review latest PR and some formattingRay
2021-03-22[AUDIO] Music Looping enhancements (#1665)Jeffery Myers
* Add loop functions for music files. Tell xm tracker to loop tracker when loop state changes. Don't let looped xm tracker streams restart, they are infinite Use modulo to make time tracker for xm looped streams work correctly. * Remove loop functions, set XM loop in update based on flag. Formatting cleanups. Co-authored-by: Jeffery Myers <[email protected]>
2021-03-21[AUDIO] Use device native sample rates (#1660)Jeffery Myers
* Init MinAudio to a sample rate of 0 to let the device pick the rate. Read the rate from the device after it starts up. Convert AUDIO_DEVICE_SAMPLE_RATE from a #def into an int, that is set from the device's rate Set all sample systems to use the AUDIO_DEVICE_SAMPLE_RATE as the target rate to minimize resampling. * use device sample rate instead of separate var let config define a device sample rate if it wants to, but let the default be 0 for native rate. * Don't use fixed sample rates for tracker files. Remove config default audio buffer size and replace with a function that computes one for a reasonable frame rate at the output sample rate.
2021-03-21REVIEWED: rlgl module #1523Ray
2021-03-21Reverting align change #1658Ray