Просмотр исходного кода

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

pull/5174/head
Ray 5 месяцев назад
Родитель
Сommit
25f4e544d1
68 измененных файлов: 138 добавлений и 138 удалений
  1. +2
    -2
      examples/audio/audio_mixed_processor.c
  2. +2
    -2
      examples/audio/audio_module_playing.c
  3. +2
    -2
      examples/audio/audio_music_stream.c
  4. +2
    -2
      examples/audio/audio_raw_stream.c
  5. +2
    -2
      examples/audio/audio_sound_loading.c
  6. +3
    -3
      examples/audio/audio_sound_positioning.c
  7. +3
    -3
      examples/core/core_3d_camera_fps.c
  8. +2
    -2
      examples/core/core_input_gamepad.c
  9. +2
    -2
      examples/core/core_input_keys.c
  10. +2
    -2
      examples/core/core_input_mouse.c
  11. +2
    -2
      examples/core/core_random_sequence.c
  12. +2
    -2
      examples/core/core_random_values.c
  13. +2
    -2
      examples/core/core_smooth_pixelperfect.c
  14. +2
    -2
      examples/core/core_storage_values.c
  15. +2
    -2
      examples/core/core_window_letterbox.c
  16. +2
    -2
      examples/core/core_world_screen.c
  17. +3
    -3
      examples/examples_list.txt
  18. +2
    -2
      examples/models/models_animation.c
  19. +2
    -2
      examples/models/models_billboard_rendering.c
  20. +2
    -2
      examples/models/models_cubicmap.c
  21. +2
    -2
      examples/models/models_heightmap.c
  22. +2
    -2
      examples/models/models_loading.c
  23. +2
    -2
      examples/models/models_loading_gltf.c
  24. +2
    -2
      examples/models/models_loading_m3d.c
  25. +2
    -2
      examples/models/models_loading_vox.c
  26. +2
    -2
      examples/models/models_yaw_pitch_roll.c
  27. +3
    -3
      examples/others/raymath_vector_angle.c
  28. +2
    -2
      examples/shaders/shaders_custom_uniform.c
  29. +2
    -2
      examples/shaders/shaders_eratosthenes.c
  30. +2
    -2
      examples/shaders/shaders_fog_rendering.c
  31. +2
    -2
      examples/shaders/shaders_hybrid_render.c
  32. +2
    -2
      examples/shaders/shaders_julia_set.c
  33. +2
    -2
      examples/shaders/shaders_multi_sample2d.c
  34. +1
    -1
      examples/shaders/shaders_normal_map.c
  35. +2
    -2
      examples/shaders/shaders_palette_switch.c
  36. +2
    -2
      examples/shaders/shaders_postprocessing.c
  37. +2
    -2
      examples/shaders/shaders_raymarching.c
  38. +1
    -1
      examples/shaders/shaders_rounded_rectangle.c
  39. +2
    -2
      examples/shaders/shaders_shapes_textures.c
  40. +2
    -2
      examples/shaders/shaders_simple_mask.c
  41. +2
    -2
      examples/shaders/shaders_spotlight.c
  42. +2
    -2
      examples/shaders/shaders_texture_rendering.c
  43. +2
    -2
      examples/shaders/shaders_write_depth.c
  44. +2
    -2
      examples/shapes/shapes_basic_shapes.c
  45. +2
    -2
      examples/shapes/shapes_lines_bezier.c
  46. +2
    -2
      examples/shapes/shapes_logo_raylib.c
  47. +2
    -2
      examples/shapes/shapes_logo_raylib_anim.c
  48. +2
    -2
      examples/shapes/shapes_rectangle_advanced.c
  49. +2
    -2
      examples/shapes/shapes_rectangle_scaling.c
  50. +2
    -2
      examples/shapes/shapes_ring_drawing.c
  51. +2
    -2
      examples/text/text_3d_drawing.c
  52. +2
    -2
      examples/text/text_font_filters.c
  53. +2
    -2
      examples/text/text_font_sdf.c
  54. +2
    -2
      examples/text/text_font_spritefont.c
  55. +2
    -2
      examples/text/text_format_text.c
  56. +2
    -2
      examples/text/text_writing_anim.c
  57. +2
    -2
      examples/textures/textures_gif_player.c
  58. +2
    -2
      examples/textures/textures_image_generation.c
  59. +2
    -2
      examples/textures/textures_image_kernel.c
  60. +2
    -2
      examples/textures/textures_image_rotate.c
  61. +2
    -2
      examples/textures/textures_image_text.c
  62. +2
    -2
      examples/textures/textures_logo_raylib.c
  63. +2
    -2
      examples/textures/textures_npatch_drawing.c
  64. +2
    -2
      examples/textures/textures_polygon_drawing.c
  65. +2
    -2
      examples/textures/textures_raw_data.c
  66. +2
    -2
      examples/textures/textures_srcrec_dstrec.c
  67. +2
    -2
      examples/textures/textures_tiled_drawing.c
  68. +2
    -2
      examples/textures/textures_to_image.c

+ 2
- 2
examples/audio/audio_mixed_processor.c Просмотреть файл

@ -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

+ 2
- 2
examples/audio/audio_module_playing.c Просмотреть файл

@ -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

+ 2
- 2
examples/audio/audio_music_stream.c Просмотреть файл

@ -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

+ 2
- 2
examples/audio/audio_raw_stream.c Просмотреть файл

@ -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

+ 2
- 2
examples/audio/audio_sound_loading.c Просмотреть файл

@ -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

+ 3
- 3
examples/audio/audio_sound_positioning.c Просмотреть файл

@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [audio] example - mi">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();

+ 3
- 3
examples/core/core_3d_camera_fps.c Просмотреть файл

@ -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

+ 2
- 2
examples/core/core_input_gamepad.c Просмотреть файл

@ -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");

+ 2
- 2
examples/core/core_input_keys.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/core/core_input_mouse.c Просмотреть файл

@ -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;

+ 2
- 2
examples/core/core_random_sequence.c Просмотреть файл

@ -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;

+ 2
- 2
examples/core/core_random_values.c Просмотреть файл

@ -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)"

+ 2
- 2
examples/core/core_smooth_pixelperfect.c Просмотреть файл

@ -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;

+ 2
- 2
examples/core/core_storage_values.c Просмотреть файл

@ -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;

+ 2
- 2
examples/core/core_window_letterbox.c Просмотреть файл

@ -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;

+ 2
- 2
examples/core/core_world_screen.c Просмотреть файл

@ -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 };

+ 3
- 3
examples/examples_list.txt Просмотреть файл

@ -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

+ 2
- 2
examples/models/models_animation.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_billboard_rendering.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_cubicmap.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_heightmap.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_loading.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_loading_gltf.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_loading_m3d.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_loading_vox.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/models/models_yaw_pitch_roll.c Просмотреть файл

@ -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

+ 3
- 3
examples/others/raymath_vector_angle.c Просмотреть файл

@ -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 });

+ 2
- 2
examples/shaders/shaders_custom_uniform.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/shaders/shaders_eratosthenes.c Просмотреть файл

@ -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);

+ 2
- 2
examples/shaders/shaders_fog_rendering.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/shaders/shaders_hybrid_render.c Просмотреть файл

@ -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));

+ 2
- 2
examples/shaders/shaders_julia_set.c Просмотреть файл

@ -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

+ 2
- 2
examples/shaders/shaders_multi_sample2d.c Просмотреть файл

@ -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);

+ 1
- 1
examples/shaders/shaders_normal_map.c Просмотреть файл

@ -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)
*
********************************************************************************************/

+ 2
- 2
examples/shaders/shaders_palette_switch.c Просмотреть файл

@ -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

+ 2
- 2
examples/shaders/shaders_postprocessing.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/shaders/shaders_raymarching.c Просмотреть файл

@ -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

+ 1
- 1
examples/shaders/shaders_rounded_rectangle.c Просмотреть файл

@ -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)
*
********************************************************************************************/

+ 2
- 2
examples/shaders/shaders_shapes_textures.c Просмотреть файл

@ -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");

+ 2
- 2
examples/shaders/shaders_simple_mask.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/shaders/shaders_spotlight.c Просмотреть файл

@ -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");

+ 2
- 2
examples/shaders/shaders_texture_rendering.c Просмотреть файл

@ -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

+ 2
- 2
examples/shaders/shaders_write_depth.c Просмотреть файл

@ -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));

+ 2
- 2
examples/shapes/shapes_basic_shapes.c Просмотреть файл

@ -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;

+ 2
- 2
examples/shapes/shapes_lines_bezier.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/shapes/shapes_logo_raylib.c Просмотреть файл

@ -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
//--------------------------------------------------------------------------------------

+ 2
- 2
examples/shapes/shapes_logo_raylib_anim.c Просмотреть файл

@ -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;

+ 2
- 2
examples/shapes/shapes_rectangle_advanced.c Просмотреть файл

@ -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
//--------------------------------------------------------------------------------------

+ 2
- 2
examples/shapes/shapes_rectangle_scaling.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/shapes/shapes_ring_drawing.c Просмотреть файл

@ -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 };

+ 2
- 2
examples/text/text_3d_drawing.c Просмотреть файл

@ -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

+ 2
- 2
examples/text/text_font_filters.c Просмотреть файл

@ -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";

+ 2
- 2
examples/text/text_font_sdf.c Просмотреть файл

@ -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)

+ 2
- 2
examples/text/text_font_spritefont.c Просмотреть файл

@ -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...";

+ 2
- 2
examples/text/text_format_text.c Просмотреть файл

@ -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;

+ 2
- 2
examples/text/text_writing_anim.c Просмотреть файл

@ -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! ;)";

+ 2
- 2
examples/textures/textures_gif_player.c Просмотреть файл

@ -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;

+ 2
- 2
examples/textures/textures_image_generation.c Просмотреть файл

@ -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);

+ 2
- 2
examples/textures/textures_image_kernel.c Просмотреть файл

@ -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)

+ 2
- 2
examples/textures/textures_image_rotate.c Просмотреть файл

@ -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");

+ 2
- 2
examples/textures/textures_image_text.c Просмотреть файл

@ -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)

+ 2
- 2
examples/textures/textures_logo_raylib.c Просмотреть файл

@ -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

+ 2
- 2
examples/textures/textures_npatch_drawing.c Просмотреть файл

@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - Nn>-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");

+ 2
- 2
examples/textures/textures_polygon_drawing.c Просмотреть файл

@ -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] = {

+ 2
- 2
examples/textures/textures_raw_data.c Просмотреть файл

@ -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)

+ 2
- 2
examples/textures/textures_srcrec_dstrec.c Просмотреть файл

@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [textures] example - texture s="n">source class="n">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)

+ 2
- 2
examples/textures/textures_tiled_drawing.c Просмотреть файл

@ -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");

+ 2
- 2
examples/textures/textures_to_image.c Просмотреть файл

@ -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)

Загрузка…
Отмена
Сохранить