REXM: UPDATED: Examples source code header info, aligned with name

This commit is contained in:
Ray
2025-09-07 12:01:51 +02:00
parent 4020885c35
commit 25f4e544d1
68 changed files with 138 additions and 138 deletions

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - mixed audio processing
* raylib [audio] example - mixed processor
*
* Example complexity rating: [★★★★] 4/4
*
@@ -55,7 +55,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - mixed audio processing");
InitWindow(screenWidth, screenHeight, "raylib [audio] example - mixed processor");
InitAudioDevice(); // Initialize audio device

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - module playing (streaming)
* raylib [audio] example - module playing
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -37,7 +37,7 @@ int main(void)
SetConfigFlags(FLAG_MSAA_4X_HINT); // NOTE: Try to enable MSAA 4X
InitWindow(screenWidth, screenHeight, "raylib [audio] example - module playing (streaming)");
InitWindow(screenWidth, screenHeight, "raylib [audio] example - module playing");
InitAudioDevice(); // Initialize audio device

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - music streaming
* raylib [audio] example - music stream
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - music streaming");
InitWindow(screenWidth, screenHeight, "raylib [audio] example - music stream");
InitAudioDevice(); // Initialize audio device

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - raw audio streaming
* raylib [audio] example - raw stream
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -62,7 +62,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - raw audio streaming");
InitWindow(screenWidth, screenHeight, "raylib [audio] example - raw stream");
InitAudioDevice(); // Initialize audio device

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - sound loading and playing
* raylib [audio] example - sound loading
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - sound loading and playing");
InitWindow(screenWidth, screenHeight, "raylib [audio] example - sound loading");
InitAudioDevice(); // Initialize audio device

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - 3d sound positioning
* raylib [audio] example - sound positioning
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -11,7 +11,7 @@
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
*
* Copyright (c) 2025 Le Juez Victor (@Bigfoot71)
* Copyright (c) 2025-0 Le Juez Victor (@Bigfoot71)
*
********************************************************************************************/
@@ -34,7 +34,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - 3d sound positioning");
InitWindow(screenWidth, screenHeight, "raylib [audio] example - sound positioning");
InitAudioDevice();

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - 3d first-person camera controller
* raylib [core] example - 3d camera fps
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -11,7 +11,7 @@
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
*
* Copyright (c) 2025-2025 Agnis Aldins (@nezvers)
* Copyright (c) 2025 Agnis Aldins (@nezvers)
*
********************************************************************************************/
@@ -80,7 +80,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d first-person camera controller");
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera fps");
// Initialize camera variables
// NOTE: UpdateCameraFPS() takes care of the rest

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - gamepad input
* raylib [core] example - input gamepad
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -38,7 +38,7 @@ int main(void)
SetConfigFlags(FLAG_MSAA_4X_HINT); // Set MSAA 4X hint before windows creation
InitWindow(screenWidth, screenHeight, "raylib [core] example - gamepad input");
InitWindow(screenWidth, screenHeight, "raylib [core] example - input gamepad");
Texture2D texPs3Pad = LoadTexture("resources/ps3.png");
Texture2D texXboxPad = LoadTexture("resources/xbox.png");

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - keyboard input
* raylib [core] example - input keys
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - keyboard input");
InitWindow(screenWidth, screenHeight, "raylib [core] example - input keys");
Vector2 ballPosition = { (float)screenWidth/2, (float)screenHeight/2 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - mouse input
* raylib [core] example - input mouse
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - mouse input");
InitWindow(screenWidth, screenHeight, "raylib [core] example - input mouse");
Vector2 ballPosition = { -100.0f, -100.0f };
Color ballColor = DARKBLUE;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - generate random sequence
* raylib [core] example - random sequence
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -45,7 +45,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - generate random sequence");
InitWindow(screenWidth, screenHeight, "raylib [core] example - random sequence");
int rectCount = 20;
float rectSize = (float)screenWidth/rectCount;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - generate random values
* raylib [core] example - random values
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - generate random values");
InitWindow(screenWidth, screenHeight, "raylib [core] example - random values");
// SetRandomSeed(0xaabbccff); // Set a custom random seed if desired, by default: "time(NULL)"

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - smooth pixel-perfect camera
* raylib [core] example - smooth pixelperfect
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -35,7 +35,7 @@ int main(void)
const float virtualRatio = (float)screenWidth/(float)virtualScreenWidth;
InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixel-perfect camera");
InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixelperfect");
Camera2D worldSpaceCamera = { 0 }; // Game world camera
worldSpaceCamera.zoom = 1.0f;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - storage save/load values
* raylib [core] example - storage values
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -41,7 +41,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values");
InitWindow(screenWidth, screenHeight, "raylib [core] example - storage values");
int score = 0;
int hiscore = 0;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - window scale letterbox
* raylib [core] example - window letterbox
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -32,7 +32,7 @@ int main(void)
// Enable config flags for resizable window and vertical synchro
SetConfigFlags(FLAG_WINDOW_RESIZABLE | FLAG_VSYNC_HINT);
InitWindow(screenWidth, screenHeight, "raylib [core] example - window scale letterbox");
InitWindow(screenWidth, screenHeight, "raylib [core] example - window letterbox");
SetWindowMinSize(320, 240);
int gameScreenWidth = 640;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - core world screen
* raylib [core] example - world screen
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - core world screen");
InitWindow(screenWidth, screenHeight, "raylib [core] example - world screen");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -41,7 +41,7 @@ core;core_custom_frame_control;★★★★;4.0;4.0;2021;2025;"Ramon Santamaria"
core;core_smooth_pixelperfect;★★★☆;3.7;4.0;2021;2025;"Giancamillo Alessandroni";@NotManyIdeasDev
core;core_random_sequence;★☆☆☆;5.0;5.0;2023;2025;"Dalton Overmyer";@REDl3east
core;core_automation_events;★★★☆;5.0;5.0;2023;2025;"Ramon Santamaria";@raysan5
core;core_high_dpi;★★☆☆;5.0;5.5;2025;0;"Jonathan Marler";@marler8997
core;core_high_dpi;★★☆☆;5.0;5.5;2025;2025;"Jonathan Marler";@marler8997
shapes;shapes_basic_shapes;★☆☆☆;1.0;4.2;2014;2025;"Ramon Santamaria";@raysan5
shapes;shapes_bouncing_ball;★☆☆☆;2.5;2.5;2013;2025;"Ramon Santamaria";@raysan5
shapes;shapes_colors_palette;★★☆☆;1.0;2.5;2014;2025;"Ramon Santamaria";@raysan5
@@ -98,7 +98,7 @@ text;text_input_box;★★☆☆;1.7;3.5;2017;2025;"Ramon Santamaria";@raysan5
text;text_writing_anim;★★☆☆;1.4;1.4;2016;2025;"Ramon Santamaria";@raysan5
text;text_rectangle_bounds;★★★★;2.5;4.0;2018;2025;"Vlad Adrian";@demizdor
text;text_unicode_emojis;★★★★;2.5;4.0;2019;2025;"Vlad Adrian";@demizdor
text;text_unicode_ranges;★★★★;5.5;5.6;2025;0;"Vlad Adrian";@demizdor
text;text_unicode_ranges;★★★★;5.5;5.6;2025;2025;"Vlad Adrian";@demizdor
text;text_3d_drawing;★★★★;3.5;4.0;2021;2025;"Vlad Adrian";@demizdor
text;text_codepoints_loading;★★★☆;4.2;4.2;2022;2025;"Ramon Santamaria";@raysan5
models;models_animation;★★☆☆;2.5;3.5;2019;2025;"Culacant";@culacant
@@ -160,7 +160,7 @@ audio;audio_sound_loading;★☆☆☆;1.1;3.5;2014;2025;"Ramon Santamaria";@ray
audio;audio_mixed_processor;★★★★;4.2;4.2;2023;2025;"hkc";@hatkidchan
audio;audio_stream_effects;★★★★;4.2;5.0;2022;2025;"Ramon Santamaria";@raysan5
audio;audio_sound_multi;★★☆☆;5.0;5.0;2023;2025;"Jeffery Myers";@JeffM2501
audio;audio_sound_positioning;★★☆☆;5.5;5.5;2025;0;"Le Juez Victor";@Bigfoot71
audio;audio_sound_positioning;★★☆☆;5.5;5.5;2025;2025;"Le Juez Victor";@Bigfoot71
others;rlgl_standalone;★★★★;1.6;4.0;2014;2025;"Ramon Santamaria";@raysan5
others;rlgl_compute_shader;★★★★;4.0;4.0;2021;2025;"Teddy Astie";@tsnake41
others;easings_testbed;★★★☆;2.5;3.0;2019;2025;"Juan Miguel López";@flashback-fx

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - model animation
* raylib [models] example - animation
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -33,7 +33,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - model animation");
InitWindow(screenWidth, screenHeight, "raylib [models] example - animation");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - billboard render
* raylib [models] example - billboard rendering
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -26,7 +26,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - billboard render");
InitWindow(screenWidth, screenHeight, "raylib [models] example - billboard rendering");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - cubicmap loading and drawing
* raylib [models] example - cubicmap
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - cubicmap loading and drawing");
InitWindow(screenWidth, screenHeight, "raylib [models] example - cubicmap");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - heightmap terrain
* raylib [models] example - heightmap
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - heightmap terrain");
InitWindow(screenWidth, screenHeight, "raylib [models] example - heightmap");
// Define our custom camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - models loading
* raylib [models] example - loading
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -38,7 +38,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - models loading");
InitWindow(screenWidth, screenHeight, "raylib [models] example - loading");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - loading gltf animations
* raylib [models] example - loading gltf
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -32,7 +32,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - loading gltf animations");
InitWindow(screenWidth, screenHeight, "raylib [models] example - loading gltf");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - models loading m3d
* raylib [models] example - loading m3d
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -31,7 +31,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [models] example - models loading m3d");
InitWindow(screenWidth, screenHeight, "raylib [models] example - loading m3d");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - magicavoxel loading
* raylib [models] example - loading vox
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -47,7 +47,7 @@ int main(void)
"resources/models/vox/fez.vox"
};
InitWindow(screenWidth, screenHeight, "raylib [models] example - magicavoxel loading");
InitWindow(screenWidth, screenHeight, "raylib [models] example - loading vox");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [models] example - plane rotations (yaw, pitch, roll)
* raylib [models] example - yaw pitch roll
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -30,7 +30,7 @@ int main(void)
const int screenHeight = 450;
//SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_WINDOW_HIGHDPI);
InitWindow(screenWidth, screenHeight, "raylib [models] example - plane rotations (yaw, pitch, roll)");
InitWindow(screenWidth, screenHeight, "raylib [models] example - yaw pitch roll");
Camera camera = { 0 };
camera.position = (Vector3){ 0.0f, 50.0f, -120.0f };// Camera position perspective

View File

@@ -1,10 +1,10 @@
/*******************************************************************************************
*
* raylib [math] example - vector angle
* raylib [others] example - vector angle
*
* Example complexity rating: [★★☆☆] 2/4
*
* Example originally created with raylib 1.0, last time updated with raylib 4.6
* Example originally created with raylib 1.0, last time updated with raylib 5.0
*
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
@@ -27,7 +27,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [math] example - vector angle");
InitWindow(screenWidth, screenHeight, "raylib [others] example - vector angle");
Vector2 v0 = { screenWidth/2, screenHeight/2 };
Vector2 v1 = Vector2Add(v0, (Vector2){ 100.0f, 80.0f });

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - custom uniform variable
* raylib [shaders] example - custom uniform
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -40,7 +40,7 @@ int main(void)
SetConfigFlags(FLAG_MSAA_4X_HINT); // Enable Multi Sampling Anti Aliasing 4x (if available)
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - custom uniform variable");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - custom uniform");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - sieve of Eratosthenes
* raylib [shaders] example - eratosthenes
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -45,7 +45,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - sieve of Eratosthenes");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - eratosthenes");
RenderTexture2D target = LoadRenderTexture(screenWidth, screenHeight);

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - fog
* raylib [shaders] example - fog rendering
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -44,7 +44,7 @@ int main(void)
const int screenHeight = 450;
SetConfigFlags(FLAG_MSAA_4X_HINT); // Enable Multi Sampling Anti Aliasing 4x (if available)
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - fog");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - fog rendering");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - write depth buffer
* raylib [shaders] example - hybrid render
*
* Example complexity rating: [★★★★] 4/4
*
@@ -55,7 +55,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - write depth buffer");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - hybrid render");
// This Shader calculates pixel depth and color using raymarch
Shader shdrRaymarch = LoadShader(0, TextFormat("resources/shaders/glsl%i/hybrid_raymarch.fs", GLSL_VERSION));

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - julia sets
* raylib [shaders] example - julia set
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -53,7 +53,7 @@ int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - julia sets");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - julia set");
// Load julia set shader
// NOTE: Defining 0 (NULL) for vertex shader forces usage of internal default vertex shader

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - multi sample2D
* raylib [shaders] example - multi sample2d
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -38,7 +38,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - multi sample2D");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - multi sample2d");
Image imRed = GenImageColor(800, 450, (Color){ 255, 0, 0, 255 });
Texture texRed = LoadTextureFromImage(imRed);

View File

@@ -14,7 +14,7 @@
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
*
* Copyright (c) 2025-2025 Jeremy Montgomery (@Sir_Irk) and Ramon Santamaria (@raysan5)
* Copyright (c) 2025 Jeremy Montgomery (@Sir_Irk) and Ramon Santamaria (@raysan5)
*
********************************************************************************************/

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - color palette switch
* raylib [shaders] example - palette switch
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -86,7 +86,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - color palette switch");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - palette switch");
// Load shader to be used on some parts drawing
// NOTE 1: Using GLSL 330 shader version, on OpenGL ES 2.0 use GLSL 100 shader version

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - postprocessing shader
* raylib [shaders] example - postprocessing
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -77,7 +77,7 @@ int main(void)
SetConfigFlags(FLAG_MSAA_4X_HINT); // Enable Multi Sampling Anti Aliasing 4x (if available)
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - postprocessing shader");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - postprocessing");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - raymarching shapes
* raylib [shaders] example - raymarching
*
* Example complexity rating: [★★★★] 4/4
*
@@ -35,7 +35,7 @@ int main(void)
const int screenHeight = 450;
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - raymarching shapes");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - raymarching");
Camera camera = { 0 };
camera.position = (Vector3){ 2.5f, 2.5f, 3.0f }; // Camera position

View File

@@ -11,7 +11,7 @@
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
*
* Copyright (c) 2025-2025 Anstro Pleuton (@anstropleuton)
* Copyright (c) 2025 Anstro Pleuton (@anstropleuton)
*
********************************************************************************************/

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - shapes and texture shaders
* raylib [shaders] example - shapes textures
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -38,7 +38,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - shapes and texture shaders");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - shapes textures");
Texture2D fudesumi = LoadTexture("resources/fudesumi.png");

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - simple shader mask
* raylib [shaders] example - simple mask
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -41,7 +41,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - simple shader mask");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - simple mask");
// Define the camera to look into our 3d world
Camera camera = { 0 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - shader spotlight
* raylib [shaders] example - spotlight
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -81,7 +81,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - shader spotlight");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - spotlight");
HideCursor();
Texture texRay = LoadTexture("resources/raysan.png");

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - texture drawing
* raylib [shaders] example - texture rendering
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -33,7 +33,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - texture drawing");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - texture rendering");
Image imBlank = GenImageColor(1024, 1024, BLANK);
Texture2D texture = LoadTextureFromImage(imBlank); // Load blank texture to fill on shader

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shaders] example - write depth buffer
* raylib [shaders] example - write depth
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -44,7 +44,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - write depth buffer");
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - write depth");
// The shader inverts the depth buffer by writing into it by `gl_FragDepth = 1 - gl_FragCoord.z;`
Shader shader = LoadShader(0, TextFormat("resources/shaders/glsl%i/write_depth.fs", GLSL_VERSION));

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - basic shapes drawing
* raylib [shapes] example - basic shapes
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - basic shapes drawing");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - basic shapes");
float rotation = 0.0f;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - cubic-bezier lines
* raylib [shapes] example - lines bezier
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -26,7 +26,7 @@ int main(void)
const int screenHeight = 450;
SetConfigFlags(FLAG_MSAA_4X_HINT);
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - cubic-bezier lines");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - lines bezier");
Vector2 startPoint = { 30, 30 };
Vector2 endPoint = { (float)screenWidth - 30, (float)screenHeight - 30 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - raylib logo using shapes
* raylib [shapes] example - logo raylib
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - raylib logo using shapes");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - logo raylib");
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - raylib logo animation
* raylib [shapes] example - logo raylib anim
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - raylib logo animation");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - logo raylib anim");
int logoPositionX = screenWidth/2 - 128;
int logoPositionY = screenHeight/2 - 128;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - rectangle avanced
* raylib [shapes] example - rectangle advanced
*
* Example complexity rating: [★★★★] 4/4
*
@@ -37,7 +37,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - rectangle avanced");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - rectangle advanced");
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - rectangle scaling mouse
* raylib [shapes] example - rectangle scaling
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -29,7 +29,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - rectangle scaling mouse");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - rectangle scaling");
Rectangle rec = { 100, 100, 200, 80 };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [shapes] example - draw ring
* raylib [shapes] example - ring drawing
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -30,7 +30,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - draw ring");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - ring drawing");
Vector2 center = {(GetScreenWidth() - 300)/2.0f, GetScreenHeight()/2.0f };

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - 3d text drawing
* raylib [text] example - 3d drawing
*
* Example complexity rating: [★★★★] 4/4
*
@@ -87,7 +87,7 @@ int main(void)
const int screenHeight = 450;
SetConfigFlags(FLAG_MSAA_4X_HINT|FLAG_VSYNC_HINT);
InitWindow(screenWidth, screenHeight, "raylib [text] example - 3d text drawing");
InitWindow(screenWidth, screenHeight, "raylib [text] example - 3d drawing");
bool spin = true; // Spin the camera?
bool multicolor = false; // Multicolor mode

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - font texture filters
* raylib [text] example - font filters
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -29,7 +29,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [text] example - font texture filters");
InitWindow(screenWidth, screenHeight, "raylib [text] example - font filters");
const char msg[50] = "Loaded Font";

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - font SDF loading
* raylib [text] example - font sdf
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -33,7 +33,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [text] example - font SDF loading");
InitWindow(screenWidth, screenHeight, "raylib [text] example - font sdf");
// NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required)

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - sprite font loading
* raylib [text] example - font spritefont
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -35,7 +35,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [text] example - sprite font loading");
InitWindow(screenWidth, screenHeight, "raylib [text] example - font spritefont");
const char msg1[50] = "THIS IS A custom SPRITE FONT...";
const char msg2[50] = "...and this is ANOTHER CUSTOM font...";

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - text formatting
* raylib [text] example - format text
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [text] example - text formatting");
InitWindow(screenWidth, screenHeight, "raylib [text] example - format text");
int score = 100020;
int hiscore = 200450;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - text writing animation
* raylib [text] example - writing anim
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [text] example - text writing animation");
InitWindow(screenWidth, screenHeight, "raylib [text] example - writing anim");
const char message[128] = "This sample illustrates a text writing\nanimation effect! Check it out! ;)";

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - gif playing
* raylib [textures] example - gif player
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -28,7 +28,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - gif playing");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - gif player");
int animFrames = 0;

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - procedural images generation
* raylib [textures] example - image generation
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -29,7 +29,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - procedural images generation");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image generation");
Image verticalGradient = GenImageGradientLinear(screenWidth, screenHeight, 0, RED, BLUE);
Image horizontalGradient = GenImageGradientLinear(screenWidth, screenHeight, 90, RED, BLUE);

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - image convolution
* raylib [textures] example - image kernel
*
* Example complexity rating: [★★★★] 4/4
*
@@ -34,7 +34,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image convolution");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image kernel");
Image image = LoadImage("resources/cat.png"); // Loaded in CPU memory (RAM)

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - image rotation
* raylib [textures] example - image rotate
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -27,7 +27,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image rotation");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image rotate");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
Image image45 = LoadImage("resources/raylib_logo.png");

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - image text drawing
* raylib [textures] example - image text
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image text drawing");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - image text");
Image parrots = LoadImage("resources/parrots.png"); // Load image in CPU memory (RAM)

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - texture loading and drawing
* raylib [textures] example - logo raylib
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture loading and drawing");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - logo raylib");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
Texture2D texture = LoadTexture("resources/raylib_logo.png"); // Texture loading

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - N-patch drawing
* raylib [textures] example - npatch drawing
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -29,7 +29,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - N-patch drawing");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - npatch drawing");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
Texture2D nPatchTexture = LoadTexture("resources/ninepatch_button.png");

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - textured polygon
* raylib [textures] example - polygon drawing
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -35,7 +35,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - textured polygon");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - polygon drawing");
// Define texture coordinates to map our texture to poly
Vector2 texcoords[MAX_POINTS] = {

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - texture from raw data
* raylib [textures] example - raw data
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -29,7 +29,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture from raw data");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - raw data");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - texture source and destination rectangles
* raylib [textures] example - srcrec dstrec
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -25,7 +25,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture source and destination rectangles");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - srcrec dstrec");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - textures tiled drawing
* raylib [textures] example - tiled drawing
*
* Example complexity rating: [★★★☆] 3/4
*
@@ -36,7 +36,7 @@ int main(void)
const int screenHeight = 450;
SetConfigFlags(FLAG_WINDOW_RESIZABLE); // Make the window resizable
InitWindow(screenWidth, screenHeight, "raylib [textures] example - textures tiled drawing");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - tiled drawing");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
Texture texPattern = LoadTexture("resources/patterns.png");

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - texture to image
* raylib [textures] example - to image
*
* Example complexity rating: [★☆☆☆] 1/4
*
@@ -27,7 +27,7 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture to image");
InitWindow(screenWidth, screenHeight, "raylib [textures] example - to image");
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)