Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46b9579f0c |
205 changed files with 29245 additions and 29593 deletions
8
.github/workflows/analyze_codeql.yml
vendored
8
.github/workflows/analyze_codeql.yml
vendored
|
|
@ -71,7 +71,7 @@ jobs:
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v4
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
|
@ -90,7 +90,7 @@ jobs:
|
||||||
cmake --build . --config $BUILD_TYPE
|
cmake --build . --config $BUILD_TYPE
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v4
|
uses: github/codeql-action/analyze@v3
|
||||||
with:
|
with:
|
||||||
category: "/language:${{matrix.language}}"
|
category: "/language:${{matrix.language}}"
|
||||||
upload: false
|
upload: false
|
||||||
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
# Filter out rules with low severity or high false positve rate
|
# Filter out rules with low severity or high false positve rate
|
||||||
# Also filter out warnings in third-party code
|
# Also filter out warnings in third-party code
|
||||||
- name: Filter out unwanted errors and warnings
|
- name: Filter out unwanted errors and warnings
|
||||||
uses: advanced-security/filter-sarif@v1.1
|
uses: advanced-security/filter-sarif@v1
|
||||||
with:
|
with:
|
||||||
patterns: |
|
patterns: |
|
||||||
-**:cpp/path-injection
|
-**:cpp/path-injection
|
||||||
|
|
@ -121,7 +121,7 @@ jobs:
|
||||||
output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
|
output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
|
||||||
|
|
||||||
- name: Upload CodeQL results to code scanning
|
- name: Upload CodeQL results to code scanning
|
||||||
uses: github/codeql-action/upload-sarif@v4
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: ${{ steps.step1.outputs.sarif-output }}
|
sarif_file: ${{ steps.step1.outputs.sarif-output }}
|
||||||
category: "/language:${{matrix.language}}"
|
category: "/language:${{matrix.language}}"
|
||||||
|
|
|
||||||
2
.github/workflows/build_examples_windows.yml
vendored
2
.github/workflows/build_examples_windows.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Add MSBuild to PATH
|
- name: Add MSBuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v3
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
|
||||||
- name: Build Library (MSVC16)
|
- name: Build Library (MSVC16)
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
18
BINDINGS.md
18
BINDINGS.md
|
|
@ -8,7 +8,6 @@ Some people ported raylib to other languages in the form of bindings or wrappers
|
||||||
| :--------------------------------------------------------------------------------------- | :--------------: | :------------------------------------------------------------------: | :------------------: |
|
| :--------------------------------------------------------------------------------------- | :--------------: | :------------------------------------------------------------------: | :------------------: |
|
||||||
| [raylib](https://github.com/raysan5/raylib) | **6.0** | [C/C++](https://en.wikipedia.org/wiki/C_(programming_language)) | Zlib |
|
| [raylib](https://github.com/raysan5/raylib) | **6.0** | [C/C++](https://en.wikipedia.org/wiki/C_(programming_language)) | Zlib |
|
||||||
| [raylib-ada](https://github.com/Fabien-Chouteau/raylib-ada) | **5.5** | [Ada](https://en.wikipedia.org/wiki/Ada_(programming_language)) | MIT |
|
| [raylib-ada](https://github.com/Fabien-Chouteau/raylib-ada) | **5.5** | [Ada](https://en.wikipedia.org/wiki/Ada_(programming_language)) | MIT |
|
||||||
| [raylib-asm](https://github.com/gAndy50/ASMRay) | **6.0** | [Assembly (x86)](https://en.wikipedia.org/wiki/X86_assembly_language) | Zlib |
|
|
||||||
| [raylib-beef](https://github.com/Starpelly/raylib-beef) | **5.5** | [Beef](https://www.beeflang.org) | MIT |
|
| [raylib-beef](https://github.com/Starpelly/raylib-beef) | **5.5** | [Beef](https://www.beeflang.org) | MIT |
|
||||||
| [raybit](https://github.com/Alex-Velez/raybit) | **5.0** | [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) | MIT |
|
| [raybit](https://github.com/Alex-Velez/raybit) | **5.0** | [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) | MIT |
|
||||||
| [raylib-c3](https://github.com/c3lang/vendor/tree/main/libraries/raylib6.c3l) | **6** | [C3](https://c3-lang.org) | MIT |
|
| [raylib-c3](https://github.com/c3lang/vendor/tree/main/libraries/raylib6.c3l) | **6** | [C3](https://c3-lang.org) | MIT |
|
||||||
|
|
@ -33,14 +32,12 @@ Some people ported raylib to other languages in the form of bindings or wrappers
|
||||||
| [raylib-d](https://github.com/schveiguy/raylib-d) | **6.0** | [D](https://dlang.org) | Zlib |
|
| [raylib-d](https://github.com/schveiguy/raylib-d) | **6.0** | [D](https://dlang.org) | Zlib |
|
||||||
| [Deno-Raylib](https://github.com/JJLDonley/Deno-Raylib) | **6.0** | [Deno / TS](https://deno.land) | MIT |
|
| [Deno-Raylib](https://github.com/JJLDonley/Deno-Raylib) | **6.0** | [Deno / TS](https://deno.land) | MIT |
|
||||||
| [rayex](https://github.com/shiryel/rayex) | 3.7 | [elixir](https://elixir-lang.org) | Apache-2.0 |
|
| [rayex](https://github.com/shiryel/rayex) | 3.7 | [elixir](https://elixir-lang.org) | Apache-2.0 |
|
||||||
| [raylib-elfscript](https://github.com/ohmtal/raylib-elfscript) | 6.0 | [ElfScript](https://github.com/ohmtal/ElfScript) | MIT |
|
|
||||||
| [raylib-elle](https://github.com/acquitelol/elle/blob/rewrite/std/raylib.le) | **5.5** | [Elle](https://github.com/acquitelol/elle) | GPL-3.0 |
|
| [raylib-elle](https://github.com/acquitelol/elle/blob/rewrite/std/raylib.le) | **5.5** | [Elle](https://github.com/acquitelol/elle) | GPL-3.0 |
|
||||||
| [raylib-factor](https://github.com/factor/factor/blob/master/extra/raylib/raylib.factor) | 5.5 | [Factor](https://factorcode.org) | BSD |
|
| [raylib-factor](https://github.com/factor/factor/blob/master/extra/raylib/raylib.factor) | 5.5 | [Factor](https://factorcode.org) | BSD |
|
||||||
| [raystar](https://github.com/RobertFlexx/raystar) | **6.0** | [F*](https://www.fstar-lang.org/) | EPL-2.0 |
|
|
||||||
| [raylib4fb](https://github.com/mudhairless/raylib4fb) | **6.0** | [FreeBASIC](https://www.freebasic.net) | Zlib |
|
| [raylib4fb](https://github.com/mudhairless/raylib4fb) | **6.0** | [FreeBASIC](https://www.freebasic.net) | Zlib |
|
||||||
| [raylib-freebasic](https://github.com/WIITD/raylib-freebasic) | **5.0** | [FreeBASIC](https://www.freebasic.net) | MIT |
|
| [raylib-freebasic](https://github.com/WIITD/raylib-freebasic) | **5.0** | [FreeBASIC](https://www.freebasic.net) | MIT |
|
||||||
| [raylib.f](https://github.com/cthulhuology/raylib.f) | **5.5** | [Forth](https://forth.com) | Zlib |
|
| [raylib.f](https://github.com/cthulhuology/raylib.f) | **5.5** | [Forth](https://forth.com) | Zlib |
|
||||||
| [fortran-raylib](https://github.com/interkosmos/fortran-raylib) | **6.0** | [Fortran](https://fortran-lang.org) | ISC |
|
| [fortran-raylib](https://github.com/interkosmos/fortran-raylib) | **5.5** | [Fortran](https://fortran-lang.org) | ISC |
|
||||||
| [raylib-go](https://github.com/gen2brain/raylib-go) | **6.0** | [Go](https://golang.org) | Zlib |
|
| [raylib-go](https://github.com/gen2brain/raylib-go) | **6.0** | [Go](https://golang.org) | Zlib |
|
||||||
| [raylib-guile](https://github.com/petelliott/raylib-guile) | **auto** | [Guile](https://www.gnu.org/software/guile) | Zlib |
|
| [raylib-guile](https://github.com/petelliott/raylib-guile) | **auto** | [Guile](https://www.gnu.org/software/guile) | Zlib |
|
||||||
| [gforth-raylib](https://github.com/ArnautDaniel/gforth-raylib) | 3.5 | [Gforth](https://gforth.org) | **???** |
|
| [gforth-raylib](https://github.com/ArnautDaniel/gforth-raylib) | 3.5 | [Gforth](https://gforth.org) | **???** |
|
||||||
|
|
@ -60,9 +57,6 @@ Some people ported raylib to other languages in the form of bindings or wrappers
|
||||||
| [raylib-luajit](https://github.com/homma/raylib-luajit) | 5.5 | [Lua](http://www.lua.org) | MIT |
|
| [raylib-luajit](https://github.com/homma/raylib-luajit) | 5.5 | [Lua](http://www.lua.org) | MIT |
|
||||||
| [raylib-luajit-generated](https://github.com/james2doyle/raylib-luajit-generated) | 5.5 | [Lua](http://www.lua.org) | MIT |
|
| [raylib-luajit-generated](https://github.com/james2doyle/raylib-luajit-generated) | 5.5 | [Lua](http://www.lua.org) | MIT |
|
||||||
| [raylib-matte](https://github.com/jcorks/raylib-matte) | 4.6-dev | [Matte](https://github.com/jcorks/matte) | **???** |
|
| [raylib-matte](https://github.com/jcorks/raylib-matte) | 4.6-dev | [Matte](https://github.com/jcorks/matte) | **???** |
|
||||||
| [raylib_mojo](https://github.com/willGuimont/raylib_mojo) | **6.0** | [Mojo](https://www.modular.com/mojo) | ZLib |
|
|
||||||
| [raymojo](https://github.com/RobertFlexx/raymojo) | **6.0** | [Mojo](https://www.modular.com/mojo) | GPLv3 |
|
|
||||||
| [raymod](https://github.com/RobertFlexx/raymod) | **6.0** | [Modula-2](https://en.wikipedia.org/wiki/Modula-2) / [Modula-3](https://en.wikipedia.org/wiki/Modula-3) | Apache-2.0 |
|
|
||||||
| [Raylib.nelua](https://github.com/AuzFox/Raylib.nelua) | **5.5** | [nelua](https://nelua.io) | Zlib |
|
| [Raylib.nelua](https://github.com/AuzFox/Raylib.nelua) | **5.5** | [nelua](https://nelua.io) | Zlib |
|
||||||
| [raylib-bindings](https://github.com/vaiorabbit/raylib-bindings) | 5.6-dev | [Ruby](https://www.ruby-lang.org/en) | Zlib |
|
| [raylib-bindings](https://github.com/vaiorabbit/raylib-bindings) | 5.6-dev | [Ruby](https://www.ruby-lang.org/en) | Zlib |
|
||||||
| [naylib](https://github.com/planetis-m/naylib) | **5.6-dev** | [Nim](https://nim-lang.org) | MIT |
|
| [naylib](https://github.com/planetis-m/naylib) | **5.6-dev** | [Nim](https://nim-lang.org) | MIT |
|
||||||
|
|
@ -71,14 +65,12 @@ Some people ported raylib to other languages in the form of bindings or wrappers
|
||||||
| [raylib_odin_bindings](https://github.com/Deathbat2190/raylib_odin_bindings) | 4.0-dev | [Odin](https://odin-lang.org) | MIT |
|
| [raylib_odin_bindings](https://github.com/Deathbat2190/raylib_odin_bindings) | 4.0-dev | [Odin](https://odin-lang.org) | MIT |
|
||||||
| [raylib-ocaml](https://github.com/tjammer/raylib-ocaml) | **6.0** | [OCaml](https://ocaml.org) | MIT |
|
| [raylib-ocaml](https://github.com/tjammer/raylib-ocaml) | **6.0** | [OCaml](https://ocaml.org) | MIT |
|
||||||
| [TurboRaylib](https://github.com/turborium/TurboRaylib) | 4.5 | [Object Pascal](https://en.wikipedia.org/wiki/Object_Pascal) | MIT |
|
| [TurboRaylib](https://github.com/turborium/TurboRaylib) | 4.5 | [Object Pascal](https://en.wikipedia.org/wiki/Object_Pascal) | MIT |
|
||||||
| [Rayberon](https://github.com/RobertFlexx/Rayberon) | **6.0** | [Oberon-2](https://en.wikipedia.org/wiki/Oberon-2) | MIT |
|
| [Ray4Laz](https://github.com/GuvaCode/Ray4Laz) | **6.0** | [Free Pascal](https://en.wikipedia.org/wiki/Free_Pascal)/[Delphi](https://en.wikipedia.org/wiki/Delphi_(software)) | Zlib |
|
||||||
| [EuRaylib](https://github.com/gAndy50/EuRaylib6) | **6.0** | [openEuphoria](https://openeuphoria.org/) | Zlib |
|
|
||||||
| [Ray4Laz](https://github.com/GuvaCode/Ray4Laz) | **6.0** | [Free Pascal](https://en.wikipedia.org/wiki/Free_Pascal) | Zlib |
|
|
||||||
| [Raylib.4.0.Pascal](https://github.com/sysrpl/Raylib.4.0.Pascal) | 4.0 | [Free Pascal](https://en.wikipedia.org/wiki/Free_Pascal) | Zlib |
|
| [Raylib.4.0.Pascal](https://github.com/sysrpl/Raylib.4.0.Pascal) | 4.0 | [Free Pascal](https://en.wikipedia.org/wiki/Free_Pascal) | Zlib |
|
||||||
| [pyraylib](https://github.com/Ho011/pyraylib) | 3.7 | [Python](https://www.python.org) | Zlib |
|
| [pyraylib](https://github.com/Ho011/pyraylib) | 3.7 | [Python](https://www.python.org) | Zlib |
|
||||||
| [raylib-python-cffi](https://github.com/electronstudio/raylib-python-cffi) | **5.5** | [Python](https://www.python.org) | EPL-2.0 |
|
| [raylib-python-cffi](https://github.com/electronstudio/raylib-python-cffi) | **5.5** | [Python](https://www.python.org) | EPL-2.0 |
|
||||||
| [raylibpyctbg](https://github.com/overdev/raylibpyctbg) | 5.5 | [Python](https://www.python.org) | MIT |
|
| [raylibpyctbg](https://github.com/overdev/raylibpyctbg) | 5.5 | [Python](https://www.python.org) | MIT |
|
||||||
| [raylib-py](https://github.com/overdev/raylib-py) | **6.0** | [Python](https://www.python.org) | MIT |
|
| [raylib-py](https://github.com/overdev/raylib-py) | 5.5 | [Python](https://www.python.org) | MIT |
|
||||||
| [raylib-python-ctypes](https://github.com/sDos280/raylib-python-ctypes) | 4.6-dev | [Python](https://www.python.org) | MIT |
|
| [raylib-python-ctypes](https://github.com/sDos280/raylib-python-ctypes) | 4.6-dev | [Python](https://www.python.org) | MIT |
|
||||||
| [raylib-pkpy-bindings](https://github.com/blueloveTH/pkpy-bindings) | 5.1-dev | [pocketpy](https://pocketpy.dev) | MIT |
|
| [raylib-pkpy-bindings](https://github.com/blueloveTH/pkpy-bindings) | 5.1-dev | [pocketpy](https://pocketpy.dev) | MIT |
|
||||||
| [raylib-php](https://github.com/joseph-montanez/raylib-php) | 4.5 | [PHP](https://en.wikipedia.org/wiki/PHP) | Zlib |
|
| [raylib-php](https://github.com/joseph-montanez/raylib-php) | 4.5 | [PHP](https://en.wikipedia.org/wiki/PHP) | Zlib |
|
||||||
|
|
@ -93,7 +85,6 @@ Some people ported raylib to other languages in the form of bindings or wrappers
|
||||||
| [raylib-swift](https://github.com/STREGAsGate/Raylib) | 4.0 | [Swift](https://swift.org) | MIT |
|
| [raylib-swift](https://github.com/STREGAsGate/Raylib) | 4.0 | [Swift](https://swift.org) | MIT |
|
||||||
| [raylib-scopes](https://github.com/salotz/raylib-scopes) | auto | [Scopes](http://scopes.rocks) | MIT |
|
| [raylib-scopes](https://github.com/salotz/raylib-scopes) | auto | [Scopes](http://scopes.rocks) | MIT |
|
||||||
| [raylib-SmallBASIC](https://github.com/smallbasic/smallbasic.plugins/tree/master/raylib) | **5.5** | [SmallBASIC](https://github.com/smallbasic/SmallBASIC) | GPLv3 |
|
| [raylib-SmallBASIC](https://github.com/smallbasic/smallbasic.plugins/tree/master/raylib) | **5.5** | [SmallBASIC](https://github.com/smallbasic/SmallBASIC) | GPLv3 |
|
||||||
| [rayscal](https://github.com/RobertFlexx/rayscal) | **6.0** | [Scala Native](https://scala-native.org) | MIT |
|
|
||||||
| [raylib-umka](https://github.com/robloach/raylib-umka) | 4.5 | [Umka](https://github.com/vtereshkov/umka-lang) | Zlib |
|
| [raylib-umka](https://github.com/robloach/raylib-umka) | 4.5 | [Umka](https://github.com/vtereshkov/umka-lang) | Zlib |
|
||||||
| [raylib-v](https://github.com/vlang/raylib) | 5.5 | [V](https://vlang.io) | MIT/Unlicense |
|
| [raylib-v](https://github.com/vlang/raylib) | 5.5 | [V](https://vlang.io) | MIT/Unlicense |
|
||||||
| [raylib.v](https://github.com/irishgreencitrus/raylib.v) | 4.2 | [V](https://vlang.io) | Zlib |
|
| [raylib.v](https://github.com/irishgreencitrus/raylib.v) | 4.2 | [V](https://vlang.io) | Zlib |
|
||||||
|
|
@ -117,10 +108,9 @@ Some people ported raylib to other languages in the form of bindings or wrappers
|
||||||
| [Rayua](https://github.com/uiua-lang/rayua) | **5.5** | [Uiua](https://www.uiua.org/) | **???** |
|
| [Rayua](https://github.com/uiua-lang/rayua) | **5.5** | [Uiua](https://www.uiua.org/) | **???** |
|
||||||
| [Target](https://github.com/FinnDemonCat/Target/tree/main/libs/raylib) | **5.5** | [Dart](https://dart.dev/) | Apache-2.0 license |
|
| [Target](https://github.com/FinnDemonCat/Target/tree/main/libs/raylib) | **5.5** | [Dart](https://dart.dev/) | Apache-2.0 license |
|
||||||
| [gclang-raylib](https://github.com/gnuchanos/gcLang_Compiler/tree/main/windows_version/raylib_version)| **6.0** | [gclang](https://github.com/gnuchanos/gcLang_Compiler) | AGPL-3.0 |
|
| [gclang-raylib](https://github.com/gnuchanos/gcLang_Compiler/tree/main/windows_version/raylib_version)| **6.0** | [gclang](https://github.com/gnuchanos/gcLang_Compiler) | AGPL-3.0 |
|
||||||
| [mach-raylib](https://github.com/angluca/mach-raylib) | **6.0-dev** | [Mach](https://machlang.org/) | MIT |
|
|
||||||
|
|
||||||
|
|
||||||
### Utility Wrappers
|
### Utility Wrapers
|
||||||
|
|
||||||
These are utility wrappers for specific languages, they are not required to use raylib in the language but may adapt the raylib API to be more inline with the language's paradigm.
|
These are utility wrappers for specific languages, they are not required to use raylib in the language but may adapt the raylib API to be more inline with the language's paradigm.
|
||||||
| Name | raylib Version | Language | License |
|
| Name | raylib Version | Language | License |
|
||||||
|
|
|
||||||
164
CHANGELOG
164
CHANGELOG
|
|
@ -3,170 +3,6 @@ changelog
|
||||||
|
|
||||||
Current Release: raylib 6.0 (23 April 2026)
|
Current Release: raylib 6.0 (23 April 2026)
|
||||||
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
Release: raylib 6.2 (xx Aug? 2026)
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
KEY CHANGES:
|
|
||||||
- REDESIGNED: Image API for more alignment with Texture API
|
|
||||||
- REDESIGNED: File API for more standard return result values
|
|
||||||
- ...
|
|
||||||
|
|
||||||
Detailed changes (until 21-Jul-2026):
|
|
||||||
|
|
||||||
[rcore] ADDED: `IsPathDirectory()`, for convenience and more readability at user code by @raysan5
|
|
||||||
[rcore] ADDED: `IsPathAbsolute()`, check absolute paths by @raysan5
|
|
||||||
[rcore] REVIEWED: `File*()` functions for consistent return result value by @raysan5 -WARNING-
|
|
||||||
[rcore] REVIEWED: Not updating mouse.previousPosition when `SeMousePosition()` #5962 by @raysan5 -WARNING-
|
|
||||||
[rcore] REVIEWED: Use `rlgl` provided interface instead of `rlsw` direct access by @raysan5
|
|
||||||
[rcore] REVIEWED: Set mouse position to (0,0) when mouse leaves window area #5945 by @raysan5
|
|
||||||
[rcore] REVIEWED: Multiple string boundary handling (#5812) by @zhaob1n
|
|
||||||
[rcore] REVIEWED: Gamepad lower-bound guard to six sibling functions (#5938) by @mahirhir
|
|
||||||
[rcore] REVIEWED: Fix logging format for automation event capacity warning (#5986) by @GideonSerf
|
|
||||||
[rcore] REVIEWED: Fix initial macOS window size (#5967) by @loukamb
|
|
||||||
[rcore] REVIEWED: Fix clipboard image memory leak (#5968) by @LuisR385
|
|
||||||
[rcore] REVIEWED: `TakeScreenshot()`, support absolute paths by @raysan5
|
|
||||||
[rcore] REVIEWED: `OpenURL()`, added some safety checks to mitigate malicious url inputs - ROS: `CLN-002 by @raysan5 -WARNING-
|
|
||||||
[rcore] REVIEWED: `LoadAutomationEventList()` - ROS: `CLN-005`, `CLN-006` by @raysan5
|
|
||||||
[rcore] REVIEWED: `GetWindowHandle()`, to be consistent between backends, fix #5885 by @raysan5
|
|
||||||
[rcore] REVIEWED: `GetTime()`, small addition for RPI Pico 2 by @raysan5
|
|
||||||
[rcore] REVIEWED: `GetCurrentMonitor()`, fix for integer overflow in distance calculation (#5842) by @Vasilis-Narain
|
|
||||||
[rcore] REVIEWED: `FileMove()`, additional security checks by @raysan5
|
|
||||||
[rcore] REVIEWED: `FileCopy()`, create directory to copy if it does not exist (#5920) by @InviseDivine
|
|
||||||
[rcore] REVIEWED: `FileMove()`, fix deleting files if `FileCopy()` fails (#5806) by @Lucrecious -WARNING-
|
|
||||||
[rcore] REVIEWED: `ComputeSHA1()`, fix undefined behaviour (#5957) by @TheFissk
|
|
||||||
[rcore] REVIEWED: `GetGamepadAxisCount()`, `GetGamepadName()`, bounds-check gamepad index (#5937) by @szarta
|
|
||||||
[rcore][GLFW] REVIEWED: `GetClipboardImage()`, fix creating new connection under X11 (#5871) by @steampuker
|
|
||||||
[rcore][RGFW] REVIEWED: Add fullscreen behaviour on size 0 window creation (#5859) by @keks137
|
|
||||||
[rcore][SDL] REVIEWED: Use precise mouse wheel values (#5830) by @Menduist
|
|
||||||
[rcore][SDL] REVIEWED: Fix SDL3 wrong joystick functions usage (#5948) by @0xFishbyte
|
|
||||||
[rcore][DRM] REVIEWED: Silence warnings when using GRAPHICS_API_OPENGL_SOFTWARE (#5839) by @NighthowlerStudios
|
|
||||||
[rcore][DRM] REVIEWED: Segfault on some NVIDIA proprietary drivers (#5960) by @girvel
|
|
||||||
[rcore][Web] REVIEWED: Fix for stale mouse position (#5981) by @largenumberhere
|
|
||||||
[rcore][Win32] REVIEWED: Use `CORE.Input.Keyboard.exitKey` when handling window closing (#5911) by @aceinetx
|
|
||||||
[rcore][Win32] REVIEWED: Security fixes (#5899) by @M374LX
|
|
||||||
[rcore][Android] REVIEWED: Restore face-button input on Android gamepads (#5824) by @Tubbles
|
|
||||||
[rlsw] ADDED: Double buffering support and compiler requirements Pico 2 (#5994) by @NighthowlerStudios
|
|
||||||
[rlsw] ADDED: `GL_SHADING_LANGUAGE_VERSION` for `swGetString()` by @raysan5
|
|
||||||
[rlsw] REVIEWED: Variant dispatch refactor and render optimizations (#5996) by @Bigfoot71
|
|
||||||
[rlgl] REVIEWED: `rlGetPixelDataSize()`, fix pixel data size regressions (#5984) by @GideonSerf
|
|
||||||
[rlgl] REVIEWED: `rlPushMatrix()`, fix matrix stack overflow (#5935) by @szarta
|
|
||||||
[rlgl] REVIEWED: `rlLoadTexture()`, add power-of-two check for GL_REPEAT wrap mode (#5820) by @noinodev
|
|
||||||
[rlgl] REVIEWED: Shader attribute/uniform default names can not be overriden #5925 by @raysan5
|
|
||||||
[rlgl] REVIEWED: Fix DRM/EGL segfault on some NVIDIA proprietary drivers (#5960) by @girvel
|
|
||||||
[rlsw] REVIEWED: Replace `SW_TEXTURE_REPEAT_POT_FAST` with `SW_SUPPORT_NPOT_TEXTURE` (#5901) by @Bigfoot71
|
|
||||||
[rlsw] REVIEWED: Fix triangle and quad spans applying pixels out of bounds (#5849) by @NighthowlerStudios
|
|
||||||
[rlsw] REVIEWED: Fix swScissor() Y-axis clipping inversion in software renderer (#5976) by @thiagomucci
|
|
||||||
[rlsw] REVIEWED: Fix persistent alpha blending state (#5964) by @iztanos
|
|
||||||
[rlsw] REVIEWED: ESP32 optimizations (#5827) by @jensroth-git
|
|
||||||
[rshapes] RENAMED: `GetSplinePointBezierQuad()` to `GetSplinePointBezierQuadratic()` by @raysan5 -WARNING-
|
|
||||||
[rshapes] REVIEWED: Reorder drawing functions by number of vertices by @raysan5
|
|
||||||
[rshapes] REVIEWED: Comments to be more descriptive by @raysan5
|
|
||||||
[rshapes] REVIEWED: `DrawRectangleRoundedLinesEx()`, not scaling with transform when thick=1 (#5980) by @SamaelHeaven
|
|
||||||
[rshapes] REVIEWED: `DrawRectangleRoundedLines()` (#5992) by @MatthewRoush
|
|
||||||
[rshapes] REVIEWED: `DrawRectangleRounded()`, automatic segments count (#5875) by @anstropleuton
|
|
||||||
[rshapes] REVIEWED: `DrawRectangleRounded()`, `DrawRectangleRoundedLinesEx()`, fix auto segment rounded-corner math (#5883) by @ghera
|
|
||||||
[rshapes] REVIEWED: `CheckCollisionLines()`, add NULL check (#5802) by @bielern
|
|
||||||
[rtextures] ADDED: `ImageDrawLineStrip()` by @raysan5
|
|
||||||
[rtextures] ADDED: `DrawTriangleGradient()` by @raysan5
|
|
||||||
[rtextures] ADDED: `DrawCircleLinesEx()`, simpler naming than `DrawRing()` by @raysan5
|
|
||||||
[rtextures] ADDED: TODO: `ImageDrawCircleGradient()` by @raysan5
|
|
||||||
[rtextures] ADDED: Support for .pep image fileformat, useful for pixel-art by @raysan5
|
|
||||||
[rtextures] RENAMED: `ImageDrawTriangleEx()` to `ImageDrawTriangleGradient()` by @raysan5 -WARNING-
|
|
||||||
[rtextures] REDESIGNED: `ImageDraw()`, align with `DrawTexture()` by @raysan5 -WARNING-
|
|
||||||
[rtextures] REDESIGNED: `ImageDrawRectangleLines()`, consistency with `DrawRectangleLines()` by @raysan5 -WARNING-
|
|
||||||
[rtextures] REVIEWED: `LoadImageFromTexture()` for wasm by @raysan5
|
|
||||||
[rtextures] REVIEWED: `ImageFromImage()` - ROS: `CLN-007` by @raysan5
|
|
||||||
[rtextures] REVIEWED: `ImageFromImage()`, rectangle validation using strict comparisons (#5979) by @CommandPrompt-Wang
|
|
||||||
[rtextures] REVIEWED: `ImageFromImage()` heap-buffer-overflow on compressed formats (#5991) by @gummyniki
|
|
||||||
[rtextures] REVIEWED: `ImageToImage()`, reorganize conditionals checks optimization by @raysan5
|
|
||||||
[rtextures] REVIEWED: `ImageDrawLine()`, rounding and length fix (#5896) by @Kaggen67
|
|
||||||
[rtextures] REVIEWED: `ImageColorContrast()` parameter type, consistent with other `Image*()` functions by @raysan5 -WARNING-
|
|
||||||
[rtextures] REVIEWED: `GetPixelDataSize()`, avoid allocations >2GB - ROS: `CLN-013` by @raysan5
|
|
||||||
[rtextures] REVIEWED: `GetPixelColor()` const by @raysan5
|
|
||||||
[rtext] REVIEWED: `LoadFontEx()`, `LoadFontFromMemory()`, additional warnings (#5864) by @CrackedPixel
|
|
||||||
[rtext] REVIEWED: `TextToSnake()`, not considering spaces properly by @raysan5
|
|
||||||
[rtext] REVIEWED: `TextSubtext()`, fix returning empty string when position is 0 (#5975) by @thiagomucci
|
|
||||||
[rtext] REVIEWED: `TextReplaceBetween()`, fix buffer overflow (#5936) by @szarta
|
|
||||||
[rtext] REVIEWED: `TextInsertAlloc()`, overflow by correcting loop bounds (#5982) by @GideonSerf
|
|
||||||
[rtext] REVIEWED: `TextJoin()`, `TextSubtext()`, `TextInsert*()` - ROS: `CLN-018` by @raysan5
|
|
||||||
[rmodels] REDESIGNED: `DrawCapsule()`, `DrawCapsuleWires()`, parameter order by @raysan5 -WARNING-
|
|
||||||
[rmodels] REVIEWED: Fix glTF skinning when joints have non-joint parent nodes (#5876) by @cseelhoff
|
|
||||||
[rmodels] REVIEWED: Change `boneCount` field type to `unsigned int` (#5955) by @lauchimoon
|
|
||||||
[rmodels] REVIEWED: `LoadGLTF()`, use inverse bind matrices for bind pose (#5832) by @fyl2xp1
|
|
||||||
[rmodels] REVIEWED: `IsModelValid()` #5780 by @raysan5
|
|
||||||
[rmodels] REVIEWED: `GenMeshTorus()`, improved comments (#5934) by @EugenioBarbieriViale
|
|
||||||
[rmodels] REVIEWED: `DrawSphereWires()`, code optimization (#6000) by @oscujic
|
|
||||||
[rmodels] REVIEWED: `DrawCapsule()`, `DrawCapsuleWires()`, validate minimum rings (#5909) by @LuisR385
|
|
||||||
[rmodels] REVIEWED: `UnloadModel()`, fix memory leak (#5907) by @LuisR385
|
|
||||||
[raudio] REVIEWED: `UpdateSound()`, missleading parameter name by @raysan5
|
|
||||||
[raudio] REVIEWED: `UnloadSoundAlias()`, prevent leak (#5857) by @Peter0x44
|
|
||||||
[raudio] REVIEWED: Remove extra `drflac_free()` call (#5916) by @CrackedPixel
|
|
||||||
[raudio] REVIEWED: Fix memory leak when loading .wav files (#5963) by @LuisR385
|
|
||||||
[raudio] REVIEWED: Define missing `UnloadFileData()` on standalone mode (#5787) by @rigidatoms
|
|
||||||
[raudio] REVIEWED: Update to latest DR libs to fix some warnings in MSVC (#5808) by @JeffM2501
|
|
||||||
[raymath] ADDED: Operator overload for (float * Vector) (#5815) by @alphahex99
|
|
||||||
|
|
||||||
[build] REMOVED: Unmaintained project: 4coder by @raysan5
|
|
||||||
[build] REMOVED: Unmaintained project: VS2019-Android by @raysan5
|
|
||||||
[build][Make] REVIEWED: Add `ANDROID_ARCH` check (#5888) by @Fipaan
|
|
||||||
[build][Make] REVIEWED: Re-enable `GLFW_LINUX_ENABLE_WAYLAND` flag by default #5816 by @raysan5
|
|
||||||
[build][CMake] ADDED: Support for Win32 platform + examples (#5855) by @CrackedPixel
|
|
||||||
[build][CMake] REVIEWED: Fix config.h parsing into cmake options (#5844) by @Peter0x44
|
|
||||||
[build][CMake] REVIEWED: Add configure-time test for libatomic requirement (#5847) by @Peter0x44
|
|
||||||
[build][CMake] REVIEWED: Remove `raudio` and `rmodels` modules if disabled (#5878) by @NighthowlerStudios
|
|
||||||
[build][CMake] REVIEWED: Remove GLFW_BUILD warnings for platform SDL (#5865) by @jestarray
|
|
||||||
[build][CMake] REVIEWED: Reduce minimum CMake version from 3.25 to 3.22 (#5890) by @RobLoach
|
|
||||||
[build][CMake] REVIEWED: Fix static link dependencies (#5990) by @meta-legend
|
|
||||||
[build][Zig] REVIEWED: Avoid building examples all the time (#5869) by @jn-jairo
|
|
||||||
[build][Zig] REVIEWED: `build.zig` to support wasm examples (#5811) by @shadeops
|
|
||||||
[build][CI] REVIEWED: GitHub Actions update to latest actions versions by @raysan5
|
|
||||||
[build][CI] REVIEWED: `build_examples_windows.yml`, use latest actions versions by @raysan5
|
|
||||||
[build][CI] REVIEWED: `analyze_codeql.yml`, use latest actions versions by @raysan5
|
|
||||||
[build][CI] REVIEWED: `setup-emsdk`, use latest actions version by @raysan5
|
|
||||||
|
|
||||||
[bindings] ADDED: sola-raylib (6.0) (#5790, #5795) by @brettchalupa
|
|
||||||
[bindings] ADDED: gclang-raylib (6.0) (#5850) by @gnuchanos
|
|
||||||
[bindings] UPDATED: vala-vapi to raylib 6.0 (#5789) by @edwood-grant
|
|
||||||
[bindings] UPDATED: raylib_dart to raylib 6.0 (#5917) by @dzylikecode
|
|
||||||
[bindings] UPDATED: raylib4fb to raylib 6.0 (#5813) by @mudhairless
|
|
||||||
[bindings] UPDATED: raylib-d to raylib 6.0 (#5799) by @schveiguy
|
|
||||||
[bindings] UPDATED: raylib-cpp to raylib 6.0 (#5785) by @RobLoach
|
|
||||||
[bindings] UPDATED: raylib-go to raylib 6.0 (#5866) by @JupiterRider
|
|
||||||
[bindings] UPDATED: raylib-cpp to raylib 6.0 (#5785) by @RobLoach
|
|
||||||
[bindings] UPDATED: raylib-zig to raylib 6.0 (#5886) by @coal-rock
|
|
||||||
[bindings] UPDATED: Deno-Raylib to raylib 6.0 (#5821) by @JJLDonley
|
|
||||||
[bindings] UPDATED: raylib-cs to raylib 6.0 (#5887) by @rgebee
|
|
||||||
[bindings] UPDATED: ReiLua to raylib 6.0 (#5959) by @nullstare
|
|
||||||
[bindings] UPDATED: Raylib-lua to raylib 5.5 (#5884) by @keyle
|
|
||||||
[bindings] UPDATED: Ray4Laz to raylib 6.0 (#5784) by @GuvaCode
|
|
||||||
[bindings] UPDATED: raylib-ocaml to raylib 6.0 (#5912) by @tjammer
|
|
||||||
[bindings] UPDATED: raylib-jai to raylib 6.0 (#5928) by @ahmedqarmout2
|
|
||||||
[bindings] UPDATED: raylib-c3 to raylib 6.0 (#5819) by @surrealism21
|
|
||||||
|
|
||||||
[examples] REVIEWED: `core_smooth_pixelperfect` (#5803) by @rose-mtz
|
|
||||||
[examples] REVIEWED: `core_directory_files` (#5823) by @MAXDVVV
|
|
||||||
[examples] REVIEWED: `shapes_ball_physics`, move window for ball shake (#5791) by @Sebbl0508
|
|
||||||
[examples] REVIEWED: `textures_image_drawing` by @raysan5
|
|
||||||
[examples] REVIEWED: `models_basic_voxel` by @raysan5
|
|
||||||
[examples] REVIEWED: `models_animation_blending` by @raysan5
|
|
||||||
[examples] REVIEWED: `shaders_*`, `pbr.fs`, using wrong uniform value (#5965) by @raysan5
|
|
||||||
|
|
||||||
[rlparser] ADDED: S-Expression output type (#5943) by @VisenDev
|
|
||||||
[rlparser] REVIEWED: Path fixes (#5794) by @gigamonster256
|
|
||||||
[rexm] REVIEWED: Simplify code, latest w64devkit supports `make` directly, no need for `mingw32-make` by @raysan5
|
|
||||||
[misc] ADDED: SECURITY.md document by @raysan5
|
|
||||||
[misc] REVIEWED: Several functions `const` correctness by @raysan5
|
|
||||||
[misc] REVIEWED: `strncpy()` replaced by `snprintf()` for safety by @raysan5
|
|
||||||
[misc] REVIEWED: Minimize `long long` usage in all raylib by @raysan5
|
|
||||||
[misc] REVIEWED: Comments for consistency and spelling by @raysan5
|
|
||||||
[misc] REVIEWED: Some Rectangle parameters with more descriptive names by @raysan5
|
|
||||||
[misc] REVIEWED: Shift `__cplusplus` check to a higher level for `bool` type define (#5804) by @lamweilun
|
|
||||||
[external] ADDED: `rprand_get_value_raw()` to `rprand` library by @raysan5
|
|
||||||
[external] UPDATED: `raygui` to latest master (raygui 5.0) by @raysan5
|
|
||||||
[external] REVIEWED: `jar_mod_load_file()`, check fread return value (#5840) by @fffaraz
|
|
||||||
[external] REVIEWED: `tiny_obj_loader` Replace `assert()` by runtime checks - ROS: `CLN-012` by @raysan5
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
Release: raylib 6.0 (23 April 2026)
|
Release: raylib 6.0 (23 April 2026)
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
|
||||||
11
README.md
11
README.md
|
|
@ -54,17 +54,6 @@ features
|
||||||
- Bindings to [+70 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
|
- Bindings to [+70 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
|
||||||
- **Free and open source**
|
- **Free and open source**
|
||||||
|
|
||||||
limitations
|
|
||||||
-----------
|
|
||||||
|
|
||||||
raylib presents some limitation by design for code simplicity, some forks, alternatives and samples are available to overcome most of them but it's up to the users to modify the library for their specific needs.
|
|
||||||
|
|
||||||
- Single window with single OpenGL context by default, no multi-window support
|
|
||||||
- Window resize and move stops the rendering loop on platforms supporting a window
|
|
||||||
- `RenderTextures` are flipped vertically, as provided by OpenGL, it's up to user to draw then flipped to screen
|
|
||||||
- Font rasterization has lower quality than alternatives using `Freetype2`, `HarfBuzz` or `Slug`
|
|
||||||
- Text drawing does not support RTL, ligatures or emojis
|
|
||||||
|
|
||||||
basic example
|
basic example
|
||||||
--------------
|
--------------
|
||||||
This is a basic raylib example, it creates a window and draws the text `"Congrats! You created your first window!"` in the middle of the screen. Check this example [running live on web here](https://www.raylib.com/examples/core/loader.html?name=core_basic_window).
|
This is a basic raylib example, it creates a window and draws the text `"Congrats! You created your first window!"` in the middle of the screen. Check this example [running live on web here](https://www.raylib.com/examples/core/loader.html?name=core_basic_window).
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,6 @@ pub fn linkMacOS(b: *std.Build, mod: *std.Build.Module) void {
|
||||||
mod.linkFramework("CoreGraphics", .{});
|
mod.linkFramework("CoreGraphics", .{});
|
||||||
mod.linkFramework("AppKit", .{});
|
mod.linkFramework("AppKit", .{});
|
||||||
mod.linkFramework("IOKit", .{});
|
mod.linkFramework("IOKit", .{});
|
||||||
mod.linkFramework("QuartzCore", .{});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, options: Options) !*std.Build.Step.Compile {
|
fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, options: Options) !*std.Build.Step.Compile {
|
||||||
|
|
@ -720,6 +719,7 @@ fn addExamples(
|
||||||
.shell_file_path = b.path("src/shell.html"),
|
.shell_file_path = b.path("src/shell.html"),
|
||||||
.install_dir = install_dir,
|
.install_dir = install_dir,
|
||||||
});
|
});
|
||||||
|
b.getInstallStep().dependOn(emcc_step);
|
||||||
|
|
||||||
const html_filename = try std.fmt.allocPrint(b.allocator, "{s}.html", .{wasm.name});
|
const html_filename = try std.fmt.allocPrint(b.allocator, "{s}.html", .{wasm.name});
|
||||||
const emrun_step = emsdk.emrunStep(
|
const emrun_step = emsdk.emrunStep(
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@
|
||||||
.lazy = true,
|
.lazy = true,
|
||||||
},
|
},
|
||||||
.raygui = .{
|
.raygui = .{
|
||||||
.url = "git+https://github.com/raysan5/raygui#3f81e2bd02bf08dcd9d350e8e8b3cf58044d6877",
|
.url = "git+https://github.com/raysan5/raygui#3b2855842ab578a034f827c38cf8f62c042fc983",
|
||||||
.hash = "N-V-__8AAPPCmABYkTrLoRGTR6whFQP1bvg7p5vpLsKIcn4G",
|
.hash = "N-V-__8AAHvybwBw1kyBGn0BW_s1RqIpycNjLf_XbE-fpLUF",
|
||||||
.lazy = true,
|
.lazy = true,
|
||||||
},
|
},
|
||||||
.emsdk = .{
|
.emsdk = .{
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,6 @@
|
||||||
# Setup the project and settings
|
# Setup the project and settings
|
||||||
cmake_minimum_required(VERSION 3.22)
|
|
||||||
project(examples)
|
project(examples)
|
||||||
|
|
||||||
# Include raylib's cmake helper functions, so the examples can also be
|
|
||||||
# configured standalone (`cd examples && cmake .`) and not only as part
|
|
||||||
# of the raylib project.
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../cmake")
|
|
||||||
include(AddIfFlagCompiles)
|
|
||||||
|
|
||||||
# Default to the Desktop platform when configured standalone.
|
|
||||||
if (NOT DEFINED PLATFORM)
|
|
||||||
set(PLATFORM "Desktop" CACHE STRING "Platform to build examples for")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# Directories that contain examples
|
# Directories that contain examples
|
||||||
set(example_dirs
|
set(example_dirs
|
||||||
audio
|
audio
|
||||||
|
|
@ -201,7 +189,6 @@ foreach (example_source ${example_sources})
|
||||||
target_link_libraries(${example_name} "-framework IOKit")
|
target_link_libraries(${example_name} "-framework IOKit")
|
||||||
target_link_libraries(${example_name} "-framework Cocoa")
|
target_link_libraries(${example_name} "-framework Cocoa")
|
||||||
target_link_libraries(${example_name} "-framework OpenGL")
|
target_link_libraries(${example_name} "-framework OpenGL")
|
||||||
target_link_libraries(${example_name} "-framework QuartzCore")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
elseif (${PLATFORM} MATCHES "RGFW")
|
elseif (${PLATFORM} MATCHES "RGFW")
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
# > PLATFORM_DESKTOP_RGFW (RGFW backend):
|
# > PLATFORM_DESKTOP_RGFW (RGFW backend):
|
||||||
# - Windows (Win32, Win64)
|
# - Windows (Win32, Win64)
|
||||||
# - Linux (X11 desktop mode)
|
# - Linux (X11 desktop mode)
|
||||||
# - macOS/OSX (x64, arm64)
|
# - macOS/OSX (x64, arm64 (not tested))
|
||||||
# - Others (not tested)
|
# - Others (not tested)
|
||||||
# > PLATFORM_DESKTOP_WIN32 (native Win32):
|
# > PLATFORM_DESKTOP_WIN32 (native Win32):
|
||||||
# - Windows (Win32, Win64)
|
# - Windows (Win32, Win64)
|
||||||
|
|
@ -314,9 +314,6 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
|
||||||
ifeq ($(PLATFORM_OS),BSD)
|
ifeq ($(PLATFORM_OS),BSD)
|
||||||
LDFLAGS += -Lsrc -L$(RAYLIB_LIB_PATH)
|
LDFLAGS += -Lsrc -L$(RAYLIB_LIB_PATH)
|
||||||
endif
|
endif
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
|
||||||
LDFLAGS += -L/opt/homebrew/lib -L$(RAYLIB_LIB_PATH)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL)
|
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL)
|
||||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||||
|
|
@ -421,7 +418,7 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# Libraries for OSX 10.9 desktop compiling
|
# Libraries for OSX 10.9 desktop compiling
|
||||||
# NOTE: Required packages: libopenal-dev libegl1-mesa-dev
|
# NOTE: Required packages: libopenal-dev libegl1-mesa-dev
|
||||||
LDLIBS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreAudio -framework CoreVideo -framework QuartzCore
|
LDLIBS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreAudio -framework CoreVideo
|
||||||
endif
|
endif
|
||||||
ifeq ($(PLATFORM_OS),BSD)
|
ifeq ($(PLATFORM_OS),BSD)
|
||||||
# Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
|
# Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
|
||||||
|
|
@ -499,7 +496,7 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_RGFW)
|
||||||
# NOTE: Required packages: libegl1-mesa-dev
|
# NOTE: Required packages: libegl1-mesa-dev
|
||||||
LDFLAGS += -L../src
|
LDFLAGS += -L../src
|
||||||
LDLIBS = -lraylib -lm
|
LDLIBS = -lraylib -lm
|
||||||
LDLIBS += -framework Foundation -framework AppKit -framework IOKit -framework OpenGL -framework CoreVideo -framework QuartzCore
|
LDLIBS += -framework Foundation -framework AppKit -framework IOKit -framework OpenGL -framework CoreVideo
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
|
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
|
||||||
|
|
|
||||||
|
|
@ -411,7 +411,7 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# Libraries for OSX 10.9 desktop compiling
|
# Libraries for OSX 10.9 desktop compiling
|
||||||
# NOTE: Required packages: libopenal-dev libegl1-mesa-dev
|
# NOTE: Required packages: libopenal-dev libegl1-mesa-dev
|
||||||
LDLIBS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreAudio -framework CoreVideo -framework QuartzCore
|
LDLIBS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreAudio -framework CoreVideo
|
||||||
endif
|
endif
|
||||||
ifeq ($(PLATFORM_OS),BSD)
|
ifeq ($(PLATFORM_OS),BSD)
|
||||||
# Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
|
# Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
|
||||||
|
|
@ -480,7 +480,7 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_RGFW)
|
||||||
# NOTE: Required packages: libegl1-mesa-dev
|
# NOTE: Required packages: libegl1-mesa-dev
|
||||||
LDFLAGS += -L../src
|
LDFLAGS += -L../src
|
||||||
LDLIBS = -lraylib -lm
|
LDLIBS = -lraylib -lm
|
||||||
LDLIBS += -framework Foundation -framework AppKit -framework IOKit -framework OpenGL -framework CoreVideo -framework QuartzCore
|
LDLIBS += -framework Foundation -framework AppKit -framework IOKit -framework OpenGL -framework CoreVideo
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
|
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ int main(void)
|
||||||
for (int i = 0; i < BUFFER_SIZE; i++)
|
for (int i = 0; i < BUFFER_SIZE; i++)
|
||||||
{
|
{
|
||||||
int wavelength = SAMPLE_RATE/sineFrequency;
|
int wavelength = SAMPLE_RATE/sineFrequency;
|
||||||
buffer[i] = sinf(2*PI*sineIndex/wavelength);
|
buffer[i] = sin(2*PI*sineIndex/wavelength);
|
||||||
sineIndex++;
|
sineIndex++;
|
||||||
|
|
||||||
if (sineIndex >= wavelength)
|
if (sineIndex >= wavelength)
|
||||||
|
|
@ -116,8 +116,8 @@ int main(void)
|
||||||
DrawText("Up/down to change frequency", 10, 10, 20, DARKGRAY);
|
DrawText("Up/down to change frequency", 10, 10, 20, DARKGRAY);
|
||||||
DrawText("Left/right to pan", 10, 30, 20, DARKGRAY);
|
DrawText("Left/right to pan", 10, 30, 20, DARKGRAY);
|
||||||
|
|
||||||
int windowStart = (int)((GetTime() - sineStartTime)*SAMPLE_RATE);
|
int windowStart = (GetTime() - sineStartTime)*SAMPLE_RATE;
|
||||||
int windowSize = SAMPLE_RATE/10;
|
int windowSize = 0.1f*SAMPLE_RATE;
|
||||||
int wavelength = SAMPLE_RATE/sineFrequency;
|
int wavelength = SAMPLE_RATE/sineFrequency;
|
||||||
|
|
||||||
// Draw a sine wave with the same frequency as the one being sent to the audio stream
|
// Draw a sine wave with the same frequency as the one being sent to the audio stream
|
||||||
|
|
@ -125,8 +125,8 @@ int main(void)
|
||||||
{
|
{
|
||||||
int t0 = windowStart + i*windowSize/screenWidth;
|
int t0 = windowStart + i*windowSize/screenWidth;
|
||||||
int t1 = windowStart + (i + 1)*windowSize/screenWidth;
|
int t1 = windowStart + (i + 1)*windowSize/screenWidth;
|
||||||
Vector2 startPos = { (float)i, 250 + 50*sinf(2*PI*t0/wavelength) };
|
Vector2 startPos = { i, 250 + 50*sin(2*PI*t0/wavelength) };
|
||||||
Vector2 endPos = { (float)i + 1, 250 + 50*sinf(2*PI*t1/wavelength) };
|
Vector2 endPos = { i + 1, 250 + 50*sin(2*PI*t1/wavelength) };
|
||||||
DrawLineV(startPos, endPos, RED);
|
DrawLineV(startPos, endPos, RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* Example complexity rating: [★★☆☆] 2/4
|
* Example complexity rating: [★★☆☆] 2/4
|
||||||
*
|
*
|
||||||
* Example originally created with raylib 5.5, last time updated with raylib 6.0
|
* Example originally created with raylib 5.5, last time updated with raylib 5.5
|
||||||
*
|
*
|
||||||
* Example contributed by Le Juez Victor (@Bigfoot71) and reviewed by Ramon Santamaria (@raysan5)
|
* Example contributed by Le Juez Victor (@Bigfoot71) and reviewed by Ramon Santamaria (@raysan5)
|
||||||
*
|
*
|
||||||
|
|
@ -116,14 +116,14 @@ static void SetSoundPosition(Camera listener, Sound sound, Vector3 position, flo
|
||||||
// Calculate normalized vectors for spatial positioning
|
// Calculate normalized vectors for spatial positioning
|
||||||
Vector3 normalizedDirection = Vector3Normalize(direction);
|
Vector3 normalizedDirection = Vector3Normalize(direction);
|
||||||
Vector3 forward = Vector3Normalize(Vector3Subtract(listener.target, listener.position));
|
Vector3 forward = Vector3Normalize(Vector3Subtract(listener.target, listener.position));
|
||||||
Vector3 right = Vector3Normalize(Vector3CrossProduct(forward, listener.up));
|
Vector3 right = Vector3Normalize(Vector3CrossProduct(listener.up, forward));
|
||||||
|
|
||||||
// Reduce volume for sounds behind the listener
|
// Reduce volume for sounds behind the listener
|
||||||
float dotProduct = Vector3DotProduct(forward, normalizedDirection);
|
float dotProduct = Vector3DotProduct(forward, normalizedDirection);
|
||||||
if (dotProduct < 0.0f) attenuation *= (1.0f + dotProduct*0.5f);
|
if (dotProduct < 0.0f) attenuation *= (1.0f + dotProduct*0.5f);
|
||||||
|
|
||||||
// Set stereo panning based on sound position relative to listener
|
// Set stereo panning based on sound position relative to listener
|
||||||
float pan = Vector3DotProduct(normalizedDirection, right);
|
float pan = 0.5f + 0.5f*Vector3DotProduct(normalizedDirection, right);
|
||||||
|
|
||||||
// Apply final sound properties
|
// Apply final sound properties
|
||||||
SetSoundVolume(sound, attenuation);
|
SetSoundVolume(sound, attenuation);
|
||||||
|
|
|
||||||
|
|
@ -133,8 +133,8 @@ int main(void)
|
||||||
// Draw the last 10 ms of uploaded audio
|
// Draw the last 10 ms of uploaded audio
|
||||||
for (int i = 0; i < screenWidth; i++)
|
for (int i = 0; i < screenWidth; i++)
|
||||||
{
|
{
|
||||||
Vector2 startPos = {(float)i, 250 - 50*buffer[SAMPLE_RATE - SAMPLE_RATE/100 + i*SAMPLE_RATE/100/screenWidth] };
|
Vector2 startPos = { i, 250 - 50*buffer[SAMPLE_RATE - SAMPLE_RATE/100 + i*SAMPLE_RATE/100/screenWidth] };
|
||||||
Vector2 endPos = { (float)(i + 1), 250 - 50*buffer[SAMPLE_RATE - SAMPLE_RATE/100 + (i + 1)*SAMPLE_RATE/100/screenWidth] };
|
Vector2 endPos = { i + 1, 250 - 50*buffer[SAMPLE_RATE - SAMPLE_RATE/100 + (i + 1)*SAMPLE_RATE/100/screenWidth] };
|
||||||
DrawLineV(startPos, endPos, RED);
|
DrawLineV(startPos, endPos, RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -161,9 +161,9 @@ static void SineCallback(void *framesOut, unsigned int frameCount)
|
||||||
int wavelength = SAMPLE_RATE/waveFrequency;
|
int wavelength = SAMPLE_RATE/waveFrequency;
|
||||||
|
|
||||||
// Synthesize the sine wave
|
// Synthesize the sine wave
|
||||||
for (unsigned int i = 0; i < frameCount; i++)
|
for (int i = 0; i < frameCount; i++)
|
||||||
{
|
{
|
||||||
((float *)framesOut)[i] = sinf(2*PI*waveIndex/wavelength);
|
((float *)framesOut)[i] = sin(2*PI*waveIndex/wavelength);
|
||||||
|
|
||||||
waveIndex++;
|
waveIndex++;
|
||||||
|
|
||||||
|
|
@ -175,8 +175,8 @@ static void SineCallback(void *framesOut, unsigned int frameCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the synthesized samples for later drawing
|
// Save the synthesized samples for later drawing
|
||||||
for (unsigned int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
for (int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
||||||
for (unsigned int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
for (int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SquareCallback(void *framesOut, unsigned int frameCount)
|
static void SquareCallback(void *framesOut, unsigned int frameCount)
|
||||||
|
|
@ -184,9 +184,9 @@ static void SquareCallback(void *framesOut, unsigned int frameCount)
|
||||||
int wavelength = SAMPLE_RATE/waveFrequency;
|
int wavelength = SAMPLE_RATE/waveFrequency;
|
||||||
|
|
||||||
// Synthesize the square wave
|
// Synthesize the square wave
|
||||||
for (unsigned int i = 0; i < frameCount; i++)
|
for (int i = 0; i < frameCount; i++)
|
||||||
{
|
{
|
||||||
((float *)framesOut)[i] = (waveIndex < wavelength/2)? 1.0f : -1.0f;
|
((float *)framesOut)[i] = (waveIndex < wavelength/2)? 1 : -1;
|
||||||
waveIndex++;
|
waveIndex++;
|
||||||
|
|
||||||
if (waveIndex >= wavelength)
|
if (waveIndex >= wavelength)
|
||||||
|
|
@ -197,8 +197,8 @@ static void SquareCallback(void *framesOut, unsigned int frameCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the synthesized samples for later drawing
|
// Save the synthesized samples for later drawing
|
||||||
for (unsigned int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
for (int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
||||||
for (unsigned int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
for (int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TriangleCallback(void *framesOut, unsigned int frameCount)
|
static void TriangleCallback(void *framesOut, unsigned int frameCount)
|
||||||
|
|
@ -206,7 +206,7 @@ static void TriangleCallback(void *framesOut, unsigned int frameCount)
|
||||||
int wavelength = SAMPLE_RATE/waveFrequency;
|
int wavelength = SAMPLE_RATE/waveFrequency;
|
||||||
|
|
||||||
// Synthesize the triangle wave
|
// Synthesize the triangle wave
|
||||||
for (unsigned int i = 0; i < frameCount; i++)
|
for (int i = 0; i < frameCount; i++)
|
||||||
{
|
{
|
||||||
((float *)framesOut)[i] = (waveIndex < wavelength/2)? (-1 + 2.0f*waveIndex/(wavelength/2)) : (1 - 2.0f*(waveIndex - wavelength/2)/(wavelength/2));
|
((float *)framesOut)[i] = (waveIndex < wavelength/2)? (-1 + 2.0f*waveIndex/(wavelength/2)) : (1 - 2.0f*(waveIndex - wavelength/2)/(wavelength/2));
|
||||||
waveIndex++;
|
waveIndex++;
|
||||||
|
|
@ -219,8 +219,8 @@ static void TriangleCallback(void *framesOut, unsigned int frameCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the synthesized samples for later drawing
|
// Save the synthesized samples for later drawing
|
||||||
for (unsigned int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
for (int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
||||||
for (unsigned int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
for (int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SawtoothCallback(void *framesOut, unsigned int frameCount)
|
static void SawtoothCallback(void *framesOut, unsigned int frameCount)
|
||||||
|
|
@ -228,7 +228,7 @@ static void SawtoothCallback(void *framesOut, unsigned int frameCount)
|
||||||
int wavelength = SAMPLE_RATE/waveFrequency;
|
int wavelength = SAMPLE_RATE/waveFrequency;
|
||||||
|
|
||||||
// Synthesize the sawtooth wave
|
// Synthesize the sawtooth wave
|
||||||
for (unsigned int i = 0; i < frameCount; i++)
|
for (int i = 0; i < frameCount; i++)
|
||||||
{
|
{
|
||||||
((float *)framesOut)[i] = -1 + 2.0f*waveIndex/wavelength;
|
((float *)framesOut)[i] = -1 + 2.0f*waveIndex/wavelength;
|
||||||
waveIndex++;
|
waveIndex++;
|
||||||
|
|
@ -241,6 +241,6 @@ static void SawtoothCallback(void *framesOut, unsigned int frameCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the synthesized samples for later drawing
|
// Save the synthesized samples for later drawing
|
||||||
for (unsigned int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
for (int i = 0; i < SAMPLE_RATE - frameCount; i++) buffer[i] = buffer[i + frameCount];
|
||||||
for (unsigned int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float*)framesOut)[i];
|
for (int i = 0; i < frameCount; i++) buffer[SAMPLE_RATE - frameCount + i] = ((float *)framesOut)[i];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -88,7 +88,7 @@ int main(void)
|
||||||
DrawCircleV(GetMousePosition(), 20, MAROON);
|
DrawCircleV(GetMousePosition(), 20, MAROON);
|
||||||
DrawRectangleRec((Rectangle) { mousePos.x - 25, mousePos.y, 50, 2 }, BLACK);
|
DrawRectangleRec((Rectangle) { mousePos.x - 25, mousePos.y, 50, 2 }, BLACK);
|
||||||
DrawRectangleRec((Rectangle) { mousePos.x, mousePos.y - 25, 2, 50 }, BLACK);
|
DrawRectangleRec((Rectangle) { mousePos.x, mousePos.y - 25, 2, 50 }, BLACK);
|
||||||
DrawText(TextFormat("[%i,%i]", GetMouseX(), GetMouseY()), (int)mousePos.x - 44,
|
DrawText(TextFormat("[%i,%i]", GetMouseX(), GetMouseY()), mousePos.x - 44,
|
||||||
(mousePos.y > GetScreenHeight() - 60)? (int)mousePos.y - 46 : (int)mousePos.y + 30, 20, BLACK);
|
(mousePos.y > GetScreenHeight() - 60)? (int)mousePos.y - 46 : (int)mousePos.y + 30, 20, BLACK);
|
||||||
|
|
||||||
EndDrawing();
|
EndDrawing();
|
||||||
|
|
@ -97,6 +97,9 @@ int main(void)
|
||||||
|
|
||||||
// De-Initialization
|
// De-Initialization
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// TODO: Unload all loaded resources at this point
|
||||||
|
|
||||||
CloseWindow(); // Close window and OpenGL context
|
CloseWindow(); // Close window and OpenGL context
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -212,12 +212,12 @@ static void UpdateModelAnimationBones(Model *model, ModelAnimation *anim0, int f
|
||||||
if (frame1 < 0) frame1 = 0;
|
if (frame1 < 0) frame1 = 0;
|
||||||
|
|
||||||
// Get bone count (use minimum of all to be safe)
|
// Get bone count (use minimum of all to be safe)
|
||||||
unsigned int boneCount = model->skeleton.boneCount;
|
int boneCount = model->skeleton.boneCount;
|
||||||
if (anim0->boneCount < boneCount) boneCount = anim0->boneCount;
|
if (anim0->boneCount < boneCount) boneCount = anim0->boneCount;
|
||||||
if (anim1->boneCount < boneCount) boneCount = anim1->boneCount;
|
if (anim1->boneCount < boneCount) boneCount = anim1->boneCount;
|
||||||
|
|
||||||
// Blend each bone
|
// Blend each bone
|
||||||
for (unsigned int boneIndex = 0; boneIndex < boneCount; boneIndex++)
|
for (int boneIndex = 0; boneIndex < boneCount; boneIndex++)
|
||||||
{
|
{
|
||||||
// Determine blend factor for this bone
|
// Determine blend factor for this bone
|
||||||
float boneBlendFactor = blend;
|
float boneBlendFactor = blend;
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ int main(void)
|
||||||
|
|
||||||
GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER);
|
GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER);
|
||||||
GuiSetStyle(DEFAULT, TEXT_SIZE, GuiGetFont().baseSize*2);
|
GuiSetStyle(DEFAULT, TEXT_SIZE, GuiGetFont().baseSize*2);
|
||||||
GuiLabel((Rectangle){ 0, GetScreenHeight() - 100.0f, (float)GetScreenWidth(), 40 }, "PRESS SPACE to START BLENDING");
|
GuiLabel((Rectangle){ 0, GetScreenHeight() - 100.0f, GetScreenWidth(), 40 }, "PRESS SPACE to START BLENDING");
|
||||||
GuiSetStyle(DEFAULT, TEXT_SIZE, GuiGetFont().baseSize);
|
GuiSetStyle(DEFAULT, TEXT_SIZE, GuiGetFont().baseSize);
|
||||||
GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT);
|
GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ int main(void)
|
||||||
if (collision.hit && (collision.distance < closestDistance))
|
if (collision.hit && (collision.distance < closestDistance))
|
||||||
{
|
{
|
||||||
closestDistance = collision.distance;
|
closestDistance = collision.distance;
|
||||||
closestVoxelPosition = (Vector3){ (float)x, (float)y, (float)z };
|
closestVoxelPosition = (Vector3){ x, y, z };
|
||||||
voxelFound = true;
|
voxelFound = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ int main(void)
|
||||||
int boneSocketIndex[BONE_SOCKETS] = { -1, -1, -1 };
|
int boneSocketIndex[BONE_SOCKETS] = { -1, -1, -1 };
|
||||||
|
|
||||||
// Search bones for sockets
|
// Search bones for sockets
|
||||||
for (unsigned int i = 0; i < characterModel.skeleton.boneCount; i++)
|
for (int i = 0; i < characterModel.skeleton.boneCount; i++)
|
||||||
{
|
{
|
||||||
if (TextIsEqual(characterModel.skeleton.bones[i].name, "socket_hat"))
|
if (TextIsEqual(characterModel.skeleton.bones[i].name, "socket_hat"))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue