summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
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
2021-03-21WARNING: BREAKING: rlgl module redesign -WIP-Ray
- Some rlgl functions have been moved to core - Some functions have been made internal to rlgl - rlgl functions prefixed with rl*()
2021-03-20Fixed possible issue with memory alignment #1658Ray
2021-03-20Corrected issue with HighDPI on macOSRay
2021-03-20Review HighDPI macOS support #1510Ray
2021-03-20Considering the window's scale when setting the viewport. (#1659)Sean Heber
This appears to fix the issue with macOS windows opening with the wrong scale.
2021-03-20BIG CHANGE: REDESIGNED: Vr device simulator #1582Ray
Vr simulator has been moved to core module and completely redesigned. Now user is in charge of stereo-render fbo and also in full control of distortion shader. Code is a bit more complex but better aligned with other raylib examples.
2021-03-20Added KEY_NULL #520Ray
2021-03-20Merge branch 'master' of https://github.com/raysan5/raylibRay
2021-03-20REVIEWED: HighDPI support on macOS retina #1510Ray
2021-03-20Fixed funny typo mistake... (#1657)Rabia Alhaffar
2021-03-19Updated example assetsRay
2021-03-19REVIEWED: BeginMode3D()Ray
2021-03-19Removed trailing spacesRay
2021-03-19Reviewed latest PR: formatting and some commentsRay
2021-03-19Optimize DrawTexturePro and DrawRectanglePro transformations (#1632)Chris
* Optimize DrawTexturePro and DrawRectanglePro transformations - Add check so rotation is only applied if rotation != 0.0f. - Replace matrix usage by calculating the vertex data directly. * Fix error with windows build and trim whitespace
2021-03-19Changed DrawRing and DrawCircleSector angle params from int to float to ↵frithrah
allow greater accuracy. (#1656) Co-authored-by: Simon <[email protected]>
2021-03-19REVIEWED: QuaternionFromEuler() #1651Ray
2021-03-19REMOVED: GetMouseCursor()Ray
This function could be confusing depending on the context, it's better to let the user track the current active cursor
2021-03-19WARNING: REMOVED: GamepadNumber enumRay
2021-03-19WARNING: BREAKING: RENAMED: camera.type to camera.projectionRay
2021-03-19REVIEWED: BeginMode3D()Ray
Simplified some code
2021-03-19WARNING: BREAKING: REVIEWED some enums namingRay
Now enum names are more consistent between them.
2021-03-18REVIEWED: Material params #1649Ray
Just assigned a fixed memory size for custom Material parameters in case of being required, so we shouldn't worry about allocating/freeing them.
2021-03-18REVIEWED: MatrixRotateZYX() #1642Ray
2021-03-18REVIEWED: DrawLine3D() #1643Ray