5 Commits

Author SHA1 Message Date
6f5f7acdd6 [examples] update example to current version of raylib (#6154) 2026-09-16 23:42:01 +02:00
Ray
3d8a9729f9 Update models_skybox_rendering.c 2026-09-16 23:34:15 +02:00
e981377f65 mach-raylib 6.x-dev (#6153)
6.2 latest version now

Co-authored-by: Ray <raysan5@gmail.com>
2026-09-16 23:31:29 +02:00
88b17d974f Add gcl native raylib module entry to BINDINGS.md (#6152)
What I did before was extremely amateurish, and I deleted the repo out of frustration. This time, I’m trying to be more professional and built a system that works with more native built-in modules. The goal is entirely education-focused. Since the system includes both Lua and Python as well, the main focus will of course be on my own C-like language.
2026-09-16 23:28:42 +02:00
6715a6ea95 review of examples memory deallocation (#6151) 2026-09-16 23:26:37 +02:00
8 changed files with 13 additions and 5 deletions

View File

@ -123,7 +123,8 @@ This is a set of recomendations and guidelines for binding authors, meant to hel
| [fnl-raylib](https://github.com/0riginaln0/fnl-raylib) | **5.5** | [Fennel](https://fennel-lang.org/) | MIT |
| [Rayua](https://github.com/uiua-lang/rayua) | **5.5** | [Uiua](https://www.uiua.org/) | **???** |
| [Target](https://github.com/FinnDemonCat/Target/tree/main/lib/raylib) | **5.5** | [Dart](https://dart.dev/) | Apache-2.0 license |
| [mach-raylib](https://github.com/angluca/mach-raylib) | **6.0-dev** | [Mach](https://machlang.org/) | MIT |
| [mach-raylib](https://github.com/angluca/mach-raylib) | **6.x-dev** | [Mach](https://machlang.org/) | MIT |
| [gcl native raylib module](https://github.com/gnuchanos/GnuchanOS/tree/main/language) | **6.0** | [gclang](https://github.com/gnuchanos/GnuchanOS/tree/main/language) | GPLv3 |
### Utility Wrappers
@ -211,7 +212,7 @@ These are older raylib bindings that are more than 2 versions old or have not be
| [raylib-beef](https://github.com/M0n7y5/raylib-beef) | 3.0 | [Beef](https://www.beeflang.org) |
| [raylib-never](https://github.com/never-lang/raylib-never) | 3.0 | [Never](https://github.com/never-lang/never) |
| [raylib.cbl](https://github.com/Martinfx/Cobol/tree/master/OpenCobol/Games/raylib) | 2.0 | [COBOL](https://en.wikipedia.org/wiki/COBOL) |
| [gclang-raylib](https://github.com/gnuchanos/gcLang_Compiler/tree/main/windows_version/raylib_version)| **6.0** | [gclang](https://github.com/gnuchanos/gcLang_Compiler) |
Missing some language or wrapper? Feel free to create a new one! :)

View File

@ -113,6 +113,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadMusicStream(music); // Unload music stream buffers from RAM
UnloadSound(sound);
DetachAudioMixedProcessor(ProcessAudio); // Disconnect audio processor

View File

@ -94,6 +94,7 @@ int main(void)
// De-Initialization
//---------------------------------------------------------
UnloadRenderTexture(target);
CloseWindow(); // Close window and OpenGL context
//----------------------------------------------------------

View File

@ -267,6 +267,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadModel(model);
UnloadModel(placementCube);
UnloadTexture(modelTexture);
// Unload decal models

View File

@ -185,6 +185,9 @@ int main(void)
// Unload models data (GPU VRAM)
for (int i = 0; i < MAX_VOX_FILES; i++) UnloadModel(models[i]);
// Unload shader data
UnloadShader(shader);
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------

View File

@ -180,8 +180,8 @@ int main(void)
//--------------------------------------------------------------------------------------
UnloadShader(skybox.materials[0].shader);
UnloadTexture(skybox.materials[0].maps[MATERIAL_MAP_CUBEMAP].texture);
UnloadModel(skybox); // Unload skybox model
UnloadShader(shdrCubemap);
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------

View File

@ -442,6 +442,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadShader(alphaDiscard);
UnloadFont(font);
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@
*
* Example complexity rating: [★★★☆] 3/4
*
* Example originally created with raylib 3.0, last time updated with raylib 3.0
* Example originally created with raylib 3.0, last time updated with raylib 6.0
*
* Example contributed by Chris Dill (@MysteriousSpace) and reviewed by Ramon Santamaria (@raysan5)
*
@ -114,7 +114,7 @@ int main(void)
EndTextureMode();
}
if (IsMouseButtonDown(MOUSE_BUTTON_LEFT) || (GetGestureDetected() == GESTURE_DRAG))
if (IsMouseButtonDown(MOUSE_BUTTON_LEFT) || IsGestureDetected(GESTURE_DRAG))
{
// Paint circle into render texture
// NOTE: To avoid discontinuous circles, we could store