summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-21 19:53:18 +0200
committerRay <[email protected]>2022-06-21 19:53:18 +0200
commitc1b01c0d5d2f2bb5108df910b2376d45314e7335 (patch)
tree02b65387eacae0324a3ff28851fa43d78cd6fb09 /examples
parent8bd3ecaa66a2a13dca9f7b3532b2c8b1298b206b (diff)
downloadraylib-c1b01c0d5d2f2bb5108df910b2376d45314e7335.tar.gz
raylib-c1b01c0d5d2f2bb5108df910b2376d45314e7335.zip
Added new comment to examples
Diffstat (limited to 'examples')
-rw-r--r--examples/audio/audio_module_playing.c3
-rw-r--r--examples/audio/audio_multichannel_sound.c3
-rw-r--r--examples/audio/audio_music_stream.c3
-rw-r--r--examples/audio/audio_raw_stream.c4
-rw-r--r--examples/audio/audio_sound_loading.c3
-rw-r--r--examples/core/core_2d_camera.c3
-rw-r--r--examples/core/core_2d_camera_platformer.c9
-rw-r--r--examples/core/core_3d_camera_first_person.c3
-rw-r--r--examples/core/core_3d_camera_free.c3
-rw-r--r--examples/core/core_3d_camera_mode.c3
-rw-r--r--examples/core/core_3d_picking.c3
-rw-r--r--examples/core/core_basic_screen_manager.c6
-rw-r--r--examples/core/core_basic_window.c3
-rw-r--r--examples/core/core_basic_window_web.c10
-rw-r--r--examples/core/core_custom_frame_control.c3
-rw-r--r--examples/core/core_custom_logging.c12
-rw-r--r--examples/core/core_drop_files.c3
-rw-r--r--examples/core/core_input_gamepad.c3
-rw-r--r--examples/core/core_input_gestures.c4
-rw-r--r--examples/core/core_input_keys.c3
-rw-r--r--examples/core/core_input_mouse.c3
-rw-r--r--examples/core/core_input_mouse_wheel.c3
-rw-r--r--examples/core/core_input_multitouch.c3
-rw-r--r--examples/core/core_loading_thread.c3
-rw-r--r--examples/core/core_quat_conversion.c3
-rw-r--r--examples/core/core_random_values.c3
-rw-r--r--examples/core/core_scissor_test.c3
-rw-r--r--examples/core/core_smooth_pixelperfect.c3
-rw-r--r--examples/core/core_split_screen.c3
-rw-r--r--examples/core/core_storage_values.c3
-rw-r--r--examples/core/core_vr_simulator.c3
-rw-r--r--examples/core/core_window_flags.c3
-rw-r--r--examples/core/core_window_letterbox.c23
-rw-r--r--examples/core/core_world_screen.c3
-rw-r--r--examples/examples_template.c3
-rw-r--r--examples/models/models_animation.c4
-rw-r--r--examples/models/models_billboard.c3
-rw-r--r--examples/models/models_box_collisions.c3
-rw-r--r--examples/models/models_cubicmap.c3
-rw-r--r--examples/models/models_first_person_maze.c3
-rw-r--r--examples/models/models_geometric_shapes.c3
-rw-r--r--examples/models/models_heightmap.c3
-rw-r--r--examples/models/models_loading.c3
-rw-r--r--examples/models/models_loading_gltf.c3
-rw-r--r--examples/models/models_loading_vox.c3
-rw-r--r--examples/models/models_mesh_generation.c3
-rw-r--r--examples/models/models_mesh_picking.c3
-rw-r--r--examples/models/models_orthographic_projection.c3
-rw-r--r--examples/models/models_skybox.c3
-rw-r--r--examples/models/models_waving_cubes.c5
-rw-r--r--examples/models/models_yaw_pitch_roll.c3
-rw-r--r--examples/others/easings_testbed.c6
-rw-r--r--examples/others/embedded_files_loading.c3
-rw-r--r--examples/others/raylib_opengl_interop.c5
-rw-r--r--examples/others/rlgl_compute_shader.c3
-rw-r--r--examples/others/rlgl_standalone.c6
-rw-r--r--examples/shaders/shaders_basic_lighting.c3
-rw-r--r--examples/shaders/shaders_custom_uniform.c3
-rw-r--r--examples/shaders/shaders_eratosthenes.c3
-rw-r--r--examples/shaders/shaders_fog.c3
-rw-r--r--examples/shaders/shaders_hot_reloading.c3
-rw-r--r--examples/shaders/shaders_julia_set.c3
-rw-r--r--examples/shaders/shaders_model_shader.c3
-rw-r--r--examples/shaders/shaders_multi_sample2d.c3
-rw-r--r--examples/shaders/shaders_palette_switch.c3
-rw-r--r--examples/shaders/shaders_postprocessing.c3
-rw-r--r--examples/shaders/shaders_raymarching.c3
-rw-r--r--examples/shaders/shaders_shapes_textures.c3
-rw-r--r--examples/shaders/shaders_simple_mask.c3
-rw-r--r--examples/shaders/shaders_spotlight.c3
-rw-r--r--examples/shaders/shaders_texture_drawing.c3
-rw-r--r--examples/shaders/shaders_texture_outline.c3
-rw-r--r--examples/shaders/shaders_texture_waves.c3
-rw-r--r--examples/shapes/shapes_basic_shapes.c3
-rw-r--r--examples/shapes/shapes_bouncing_ball.c3
-rw-r--r--examples/shapes/shapes_collision_area.c6
-rw-r--r--examples/shapes/shapes_colors_palette.c3
-rw-r--r--examples/shapes/shapes_draw_circle_sector.c3
-rw-r--r--examples/shapes/shapes_draw_rectangle_rounded.c3
-rw-r--r--examples/shapes/shapes_draw_ring.c3
-rw-r--r--examples/shapes/shapes_easings_ball_anim.c3
-rw-r--r--examples/shapes/shapes_easings_box_anim.c3
-rw-r--r--examples/shapes/shapes_easings_rectangle_array.c3
-rw-r--r--examples/shapes/shapes_following_eyes.c3
-rw-r--r--examples/shapes/shapes_lines_bezier.c3
-rw-r--r--examples/shapes/shapes_logo_raylib.c3
-rw-r--r--examples/shapes/shapes_logo_raylib_anim.c3
-rw-r--r--examples/shapes/shapes_rectangle_scaling.c3
-rw-r--r--examples/shapes/shapes_top_down_lights.c3
-rw-r--r--examples/text/text_font_filters.c3
-rw-r--r--examples/text/text_font_loading.c3
-rw-r--r--examples/text/text_font_sdf.c3
-rw-r--r--examples/text/text_font_spritefont.c3
-rw-r--r--examples/text/text_format_text.c3
-rw-r--r--examples/text/text_input_box.c3
-rw-r--r--examples/text/text_raylib_fonts.c3
-rw-r--r--examples/text/text_rectangle_bounds.c4
-rw-r--r--examples/text/text_unicode.c6
-rw-r--r--examples/text/text_writing_anim.c3
-rw-r--r--examples/textures/textures_background_scrolling.c3
-rw-r--r--examples/textures/textures_blend_modes.c3
-rw-r--r--examples/textures/textures_bunnymark.c3
-rw-r--r--examples/textures/textures_draw_tiled.c3
-rw-r--r--examples/textures/textures_image_drawing.c3
-rw-r--r--examples/textures/textures_image_generation.c3
-rw-r--r--examples/textures/textures_image_loading.c3
-rw-r--r--examples/textures/textures_image_processing.c3
-rw-r--r--examples/textures/textures_image_text.c3
-rw-r--r--examples/textures/textures_logo_raylib.c3
-rw-r--r--examples/textures/textures_mouse_painting.c3
-rw-r--r--examples/textures/textures_npatch_drawing.c3
-rw-r--r--examples/textures/textures_particles_blending.c3
-rw-r--r--examples/textures/textures_polygon.c3
-rw-r--r--examples/textures/textures_raw_data.c3
-rw-r--r--examples/textures/textures_rectangle.c3
-rw-r--r--examples/textures/textures_sprite_button.c3
-rw-r--r--examples/textures/textures_sprite_explosion.c3
-rw-r--r--examples/textures/textures_srcrec_dstrec.c3
-rw-r--r--examples/textures/textures_to_image.c3
119 files changed, 376 insertions, 46 deletions
diff --git a/examples/audio/audio_module_playing.c b/examples/audio/audio_module_playing.c
index 33a43a8c..50d3b809 100644
--- a/examples/audio/audio_module_playing.c
+++ b/examples/audio/audio_module_playing.c
@@ -21,6 +21,9 @@ typedef struct {
Color color;
} CircleWave;
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/audio/audio_multichannel_sound.c b/examples/audio/audio_multichannel_sound.c
index 438cff96..1a892e66 100644
--- a/examples/audio/audio_multichannel_sound.c
+++ b/examples/audio/audio_multichannel_sound.c
@@ -13,6 +13,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/audio/audio_music_stream.c b/examples/audio/audio_music_stream.c
index 37d3bde2..f132e3dd 100644
--- a/examples/audio/audio_music_stream.c
+++ b/examples/audio/audio_music_stream.c
@@ -54,6 +54,9 @@ static void AudioProcessEffectDelay(void *buffer, unsigned int frames)
}
}
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/audio/audio_raw_stream.c b/examples/audio/audio_raw_stream.c
index 9599339f..cd6ddb9f 100644
--- a/examples/audio/audio_raw_stream.c
+++ b/examples/audio/audio_raw_stream.c
@@ -49,7 +49,9 @@ void AudioInputCallback(void *buffer, unsigned int frames)
}
}
-
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/audio/audio_sound_loading.c b/examples/audio/audio_sound_loading.c
index 2ccf23fe..9759d393 100644
--- a/examples/audio/audio_sound_loading.c
+++ b/examples/audio/audio_sound_loading.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_2d_camera.c b/examples/core/core_2d_camera.c
index 7336bbbd..1c7c8a30 100644
--- a/examples/core/core_2d_camera.c
+++ b/examples/core/core_2d_camera.c
@@ -13,6 +13,9 @@
#define MAX_BUILDINGS 100
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_2d_camera_platformer.c b/examples/core/core_2d_camera_platformer.c
index 9ab20492..1ebb8e8b 100644
--- a/examples/core/core_2d_camera_platformer.c
+++ b/examples/core/core_2d_camera_platformer.c
@@ -30,16 +30,19 @@ typedef struct EnvItem {
Color color;
} EnvItem;
-
+//----------------------------------------------------------------------------------
+// Module functions declaration
+//----------------------------------------------------------------------------------
void UpdatePlayer(Player *player, EnvItem *envItems, int envItemsLength, float delta);
-
void UpdateCameraCenter(Camera2D *camera, Player *player, EnvItem *envItems, int envItemsLength, float delta, int width, int height);
void UpdateCameraCenterInsideMap(Camera2D *camera, Player *player, EnvItem *envItems, int envItemsLength, float delta, int width, int height);
void UpdateCameraCenterSmoothFollow(Camera2D *camera, Player *player, EnvItem *envItems, int envItemsLength, float delta, int width, int height);
void UpdateCameraEvenOutOnLanding(Camera2D *camera, Player *player, EnvItem *envItems, int envItemsLength, float delta, int width, int height);
void UpdateCameraPlayerBoundsPush(Camera2D *camera, Player *player, EnvItem *envItems, int envItemsLength, float delta, int width, int height);
-
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_3d_camera_first_person.c b/examples/core/core_3d_camera_first_person.c
index 59fc8307..4f565235 100644
--- a/examples/core/core_3d_camera_first_person.c
+++ b/examples/core/core_3d_camera_first_person.c
@@ -13,6 +13,9 @@
#define MAX_COLUMNS 20
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_3d_camera_free.c b/examples/core/core_3d_camera_free.c
index f469d121..7ee12d72 100644
--- a/examples/core/core_3d_camera_free.c
+++ b/examples/core/core_3d_camera_free.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_3d_camera_mode.c b/examples/core/core_3d_camera_mode.c
index 654fc2db..5d63ccc8 100644
--- a/examples/core/core_3d_camera_mode.c
+++ b/examples/core/core_3d_camera_mode.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_3d_picking.c b/examples/core/core_3d_picking.c
index 1c42de79..f20cefaf 100644
--- a/examples/core/core_3d_picking.c
+++ b/examples/core/core_3d_picking.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_basic_screen_manager.c b/examples/core/core_basic_screen_manager.c
index 6051f175..009dd014 100644
--- a/examples/core/core_basic_screen_manager.c
+++ b/examples/core/core_basic_screen_manager.c
@@ -18,9 +18,9 @@
//------------------------------------------------------------------------------------------
typedef enum GameScreen { LOGO = 0, TITLE, GAMEPLAY, ENDING } GameScreen;
-//------------------------------------------------------------------------------------------
-// Main entry point
-//------------------------------------------------------------------------------------------
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_basic_window.c b/examples/core/core_basic_window.c
index 3c103a5f..d354cb2e 100644
--- a/examples/core/core_basic_window.c
+++ b/examples/core/core_basic_window.c
@@ -21,6 +21,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_basic_window_web.c b/examples/core/core_basic_window_web.c
index 119d4b00..cdd44c4c 100644
--- a/examples/core/core_basic_window_web.c
+++ b/examples/core/core_basic_window_web.c
@@ -28,14 +28,14 @@ const int screenWidth = 800;
const int screenHeight = 450;
//----------------------------------------------------------------------------------
-// Module Functions Declaration
+// Module functions declaration
//----------------------------------------------------------------------------------
void UpdateDrawFrame(void); // Update and Draw one frame
-//----------------------------------------------------------------------------------
-// Main Enry Point
-//----------------------------------------------------------------------------------
-int main()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
+int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
diff --git a/examples/core/core_custom_frame_control.c b/examples/core/core_custom_frame_control.c
index 93181e76..208e131b 100644
--- a/examples/core/core_custom_frame_control.c
+++ b/examples/core/core_custom_frame_control.c
@@ -26,6 +26,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_custom_logging.c b/examples/core/core_custom_logging.c
index 56e168ee..5b39f428 100644
--- a/examples/core/core_custom_logging.c
+++ b/examples/core/core_custom_logging.c
@@ -17,7 +17,7 @@
#include <time.h> // Required for: time_t, tm, time(), localtime(), strftime()
// Custom logging funtion
-void LogCustom(int msgType, const char *text, va_list args)
+void CustomLog(int msgType, const char *text, va_list args)
{
char timeStr[64] = { 0 };
time_t now = time(NULL);
@@ -39,16 +39,18 @@ void LogCustom(int msgType, const char *text, va_list args)
printf("\n");
}
-int main(int argc, char* argv[])
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
+int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
const int screenWidth = 800;
const int screenHeight = 450;
- // First thing we do is setting our custom logger to ensure everything raylib logs
- // will use our own logger instead of its internal one
- SetTraceLogCallback(LogCustom);
+ // Set custom logger
+ SetTraceLogCallback(CustomLog);
InitWindow(screenWidth, screenHeight, "raylib [core] example - custom logging");
diff --git a/examples/core/core_drop_files.c b/examples/core/core_drop_files.c
index dda31a43..8ac5c265 100644
--- a/examples/core/core_drop_files.c
+++ b/examples/core/core_drop_files.c
@@ -13,6 +13,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_input_gamepad.c b/examples/core/core_input_gamepad.c
index 405f78e8..6c54ba6b 100644
--- a/examples/core/core_input_gamepad.c
+++ b/examples/core/core_input_gamepad.c
@@ -27,6 +27,9 @@
#define PS3_NAME_ID "PLAYSTATION(R)3 Controller"
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_input_gestures.c b/examples/core/core_input_gestures.c
index 50bbff7e..89c7e72e 100644
--- a/examples/core/core_input_gestures.c
+++ b/examples/core/core_input_gestures.c
@@ -10,10 +10,14 @@
********************************************************************************************/
#include "raylib.h"
+
#include <string.h>
#define MAX_GESTURE_STRINGS 20
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_input_keys.c b/examples/core/core_input_keys.c
index bbb71ee3..5313d5af 100644
--- a/examples/core/core_input_keys.c
+++ b/examples/core/core_input_keys.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_input_mouse.c b/examples/core/core_input_mouse.c
index c3415e8b..bad1ce2e 100644
--- a/examples/core/core_input_mouse.c
+++ b/examples/core/core_input_mouse.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_input_mouse_wheel.c b/examples/core/core_input_mouse_wheel.c
index 232d62c1..9080aafb 100644
--- a/examples/core/core_input_mouse_wheel.c
+++ b/examples/core/core_input_mouse_wheel.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_input_multitouch.c b/examples/core/core_input_multitouch.c
index ef15a966..69f45bd8 100644
--- a/examples/core/core_input_multitouch.c
+++ b/examples/core/core_input_multitouch.c
@@ -15,6 +15,9 @@
#define MAX_TOUCH_POINTS 10
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_loading_thread.c b/examples/core/core_loading_thread.c
index 773ad2ea..20e032b4 100644
--- a/examples/core/core_loading_thread.c
+++ b/examples/core/core_loading_thread.c
@@ -27,6 +27,9 @@ static void *LoadDataThread(void *arg); // Loading data thread function decl
static int dataProgress = 0; // Data progress accumulator
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_quat_conversion.c b/examples/core/core_quat_conversion.c
index a60e4000..a2cf9338 100644
--- a/examples/core/core_quat_conversion.c
+++ b/examples/core/core_quat_conversion.c
@@ -18,6 +18,9 @@
#include "raymath.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_random_values.c b/examples/core/core_random_values.c
index b44b5faf..986014b5 100644
--- a/examples/core/core_random_values.c
+++ b/examples/core/core_random_values.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_scissor_test.c b/examples/core/core_scissor_test.c
index 56eb84f8..162cc7bc 100644
--- a/examples/core/core_scissor_test.c
+++ b/examples/core/core_scissor_test.c
@@ -13,6 +13,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_smooth_pixelperfect.c b/examples/core/core_smooth_pixelperfect.c
index e0c6d197..a49d5b4c 100644
--- a/examples/core/core_smooth_pixelperfect.c
+++ b/examples/core/core_smooth_pixelperfect.c
@@ -16,6 +16,9 @@
#include <math.h> // Required for: sinf(), cosf()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_split_screen.c b/examples/core/core_split_screen.c
index c05c0b32..2f7cc2df 100644
--- a/examples/core/core_split_screen.c
+++ b/examples/core/core_split_screen.c
@@ -40,6 +40,9 @@ void DrawScene(void)
DrawCube(cameraPlayer2.position, 1, 1, 1, BLUE);
}
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_storage_values.c b/examples/core/core_storage_values.c
index 2ae1cc39..41173d26 100644
--- a/examples/core/core_storage_values.c
+++ b/examples/core/core_storage_values.c
@@ -17,6 +17,9 @@ typedef enum {
STORAGE_POSITION_HISCORE = 1
} StorageData;
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_vr_simulator.c b/examples/core/core_vr_simulator.c
index c0f1b8d2..c39f2df7 100644
--- a/examples/core/core_vr_simulator.c
+++ b/examples/core/core_vr_simulator.c
@@ -17,6 +17,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_window_flags.c b/examples/core/core_window_flags.c
index 4b20066f..534a1878 100644
--- a/examples/core/core_window_flags.c
+++ b/examples/core/core_window_flags.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/core/core_window_letterbox.c b/examples/core/core_window_letterbox.c
index 1e076516..7c17c8c5 100644
--- a/examples/core/core_window_letterbox.c
+++ b/examples/core/core_window_letterbox.c
@@ -13,21 +13,14 @@
#include "raylib.h"
-#define max(a, b) ((a)>(b)? (a) : (b))
-#define min(a, b) ((a)<(b)? (a) : (b))
+#include "raymath.h" // Required for: Vector2Clamp()
-// Clamp Vector2 value with min and max and return a new vector2
-// NOTE: Required for virtual mouse, to clamp inside virtual game size
-Vector2 ClampValue(Vector2 value, Vector2 min, Vector2 max)
-{
- Vector2 result = value;
- result.x = (result.x > max.x)? max.x : result.x;
- result.x = (result.x < min.x)? min.x : result.x;
- result.y = (result.y > max.y)? max.y : result.y;
- result.y = (result.y < min.y)? min.y : result.y;
- return result;
-}
+#define MAX(a, b) ((a)>(b)? (a) : (b))
+#define MIN(a, b) ((a)<(b)? (a) : (b))
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
const int windowWidth = 800;
@@ -57,7 +50,7 @@ int main(void)
// Update
//----------------------------------------------------------------------------------
// Compute required framebuffer scaling
- float scale = min((float)GetScreenWidth()/gameScreenWidth, (float)GetScreenHeight()/gameScreenHeight);
+ float scale = MIN((float)GetScreenWidth()/gameScreenWidth, (float)GetScreenHeight()/gameScreenHeight);
if (IsKeyPressed(KEY_SPACE))
{
@@ -70,7 +63,7 @@ int main(void)
Vector2 virtualMouse = { 0 };
virtualMouse.x = (mouse.x - (GetScreenWidth() - (gameScreenWidth*scale))*0.5f)/scale;
virtualMouse.y = (mouse.y - (GetScreenHeight() - (gameScreenHeight*scale))*0.5f)/scale;
- virtualMouse = ClampValue(virtualMouse, (Vector2){ 0, 0 }, (Vector2){ (float)gameScreenWidth, (float)gameScreenHeight });
+ virtualMouse = Vector2Clamp(virtualMouse, (Vector2){ 0, 0 }, (Vector2){ (float)gameScreenWidth, (float)gameScreenHeight });
// Apply the same transformation as the virtual mouse to the real mouse (i.e. to work with raygui)
//SetMouseOffset(-(GetScreenWidth() - (gameScreenWidth*scale))*0.5f, -(GetScreenHeight() - (gameScreenHeight*scale))*0.5f);
diff --git a/examples/core/core_world_screen.c b/examples/core/core_world_screen.c
index fe13b1b4..cd380a30 100644
--- a/examples/core/core_world_screen.c
+++ b/examples/core/core_world_screen.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/examples_template.c b/examples/examples_template.c
index f1741104..3d470134 100644
--- a/examples/examples_template.c
+++ b/examples/examples_template.c
@@ -52,6 +52,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_animation.c b/examples/models/models_animation.c
index 2f5ae266..8055d64f 100644
--- a/examples/models/models_animation.c
+++ b/examples/models/models_animation.c
@@ -21,7 +21,9 @@
#include <stdlib.h>
-
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_billboard.c b/examples/models/models_billboard.c
index 0a7e878b..30c328f2 100644
--- a/examples/models/models_billboard.c
+++ b/examples/models/models_billboard.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_box_collisions.c b/examples/models/models_box_collisions.c
index 7a937ea7..f451119a 100644
--- a/examples/models/models_box_collisions.c
+++ b/examples/models/models_box_collisions.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_cubicmap.c b/examples/models/models_cubicmap.c
index 0a566581..24c6dd7b 100644
--- a/examples/models/models_cubicmap.c
+++ b/examples/models/models_cubicmap.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_first_person_maze.c b/examples/models/models_first_person_maze.c
index 08a9b5cf..e4689f59 100644
--- a/examples/models/models_first_person_maze.c
+++ b/examples/models/models_first_person_maze.c
@@ -13,6 +13,9 @@
#include <stdlib.h> // Required for: free()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_geometric_shapes.c b/examples/models/models_geometric_shapes.c
index c1feb802..0ac61f2d 100644
--- a/examples/models/models_geometric_shapes.c
+++ b/examples/models/models_geometric_shapes.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_heightmap.c b/examples/models/models_heightmap.c
index 03479a9b..2a365c71 100644
--- a/examples/models/models_heightmap.c
+++ b/examples/models/models_heightmap.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c
index ee3811ee..c691b7c5 100644
--- a/examples/models/models_loading.c
+++ b/examples/models/models_loading.c
@@ -22,6 +22,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_loading_gltf.c b/examples/models/models_loading_gltf.c
index fe79afec..15138e38 100644
--- a/examples/models/models_loading_gltf.c
+++ b/examples/models/models_loading_gltf.c
@@ -20,6 +20,9 @@
#define MAX_GLTF_MODELS 8
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_loading_vox.c b/examples/models/models_loading_vox.c
index dca17590..6144a513 100644
--- a/examples/models/models_loading_vox.c
+++ b/examples/models/models_loading_vox.c
@@ -17,6 +17,9 @@
#define MAX_VOX_FILES 3
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_mesh_generation.c b/examples/models/models_mesh_generation.c
index 7213f58d..2d9afcca 100644
--- a/examples/models/models_mesh_generation.c
+++ b/examples/models/models_mesh_generation.c
@@ -15,6 +15,9 @@
static Mesh GenMeshCustom(void); // Generate a simple triangle mesh from code
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_mesh_picking.c b/examples/models/models_mesh_picking.c
index 38378bc4..7cd51d98 100644
--- a/examples/models/models_mesh_picking.c
+++ b/examples/models/models_mesh_picking.c
@@ -16,6 +16,9 @@
#define FLT_MAX 340282346638528859811704183484516925440.0f // Maximum value of a float, from bit pattern 01111111011111111111111111111111
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_orthographic_projection.c b/examples/models/models_orthographic_projection.c
index 7dd5fde2..c38d1816 100644
--- a/examples/models/models_orthographic_projection.c
+++ b/examples/models/models_orthographic_projection.c
@@ -18,6 +18,9 @@
#define FOVY_PERSPECTIVE 45.0f
#define WIDTH_ORTHOGRAPHIC 10.0f
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_skybox.c b/examples/models/models_skybox.c
index 2c03220b..6567cf25 100644
--- a/examples/models/models_skybox.c
+++ b/examples/models/models_skybox.c
@@ -23,6 +23,9 @@
// Generate cubemap (6 faces) from equirectangular (panorama) texture
static TextureCubemap GenTextureCubemap(Shader shader, Texture2D panorama, int size, int format);
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/models/models_waving_cubes.c b/examples/models/models_waving_cubes.c
index 13f098b9..e21db102 100644
--- a/examples/models/models_waving_cubes.c
+++ b/examples/models/models_waving_cubes.c
@@ -13,8 +13,11 @@
#include "raylib.h"
-#include <math.h>
+#include <math.h> // Required for: sinf()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main()
{
// Initialization
diff --git a/examples/models/models_yaw_pitch_roll.c b/examples/models/models_yaw_pitch_roll.c
index d9d4b9c7..009a825f 100644
--- a/examples/models/models_yaw_pitch_roll.c
+++ b/examples/models/models_yaw_pitch_roll.c
@@ -15,6 +15,9 @@
#include "raymath.h" // Required for: MatrixRotateXYZ()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/easings_testbed.c b/examples/others/easings_testbed.c
index 19c3b457..fbd71751 100644
--- a/examples/others/easings_testbed.c
+++ b/examples/others/easings_testbed.c
@@ -56,10 +56,8 @@ enum EasingTypes {
EASING_NONE = NUM_EASING_TYPES
};
-
static float NoEase(float t, float b, float c, float d); // NoEase function declaration, function used when "no easing" is selected for any axis
-
// Easing functions reference data
static const struct {
const char *name;
@@ -96,7 +94,9 @@ static const struct {
[EASING_NONE] = { .name = "None", .func = NoEase },
};
-
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/embedded_files_loading.c b/examples/others/embedded_files_loading.c
index 5923a9ac..70864c73 100644
--- a/examples/others/embedded_files_loading.c
+++ b/examples/others/embedded_files_loading.c
@@ -16,6 +16,9 @@
#include "resources/audio_data.h" // Wave file exported with ExportWaveAsCode()
#include "resources/image_data.h" // Image file exported with ExportImageAsCode()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/raylib_opengl_interop.c b/examples/others/raylib_opengl_interop.c
index 69591083..e55a0d38 100644
--- a/examples/others/raylib_opengl_interop.c
+++ b/examples/others/raylib_opengl_interop.c
@@ -49,7 +49,10 @@ typedef struct Particle {
float period;
} Particle;
-int main()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
+int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
diff --git a/examples/others/rlgl_compute_shader.c b/examples/others/rlgl_compute_shader.c
index abc58934..9b82cfb7 100644
--- a/examples/others/rlgl_compute_shader.c
+++ b/examples/others/rlgl_compute_shader.c
@@ -40,6 +40,9 @@ typedef struct GolUpdateSSBO {
GolUpdateCmd commands[MAX_BUFFERED_TRANSFERTS];
} GolUpdateSSBO;
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index cc0eda2d..3796ea3c 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -113,9 +113,9 @@ static void DrawRectangleV(Vector2 position, Vector2 size, Color color);
//static Matrix MatrixPerspective(double fovy, double aspect, double near, double far);
//static Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up);
-//----------------------------------------------------------------------------------
-// Main Entry point
-//----------------------------------------------------------------------------------
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_basic_lighting.c b/examples/shaders/shaders_basic_lighting.c
index 347096fd..47415850 100644
--- a/examples/shaders/shaders_basic_lighting.c
+++ b/examples/shaders/shaders_basic_lighting.c
@@ -30,6 +30,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_custom_uniform.c b/examples/shaders/shaders_custom_uniform.c
index 60516c11..065f48df 100644
--- a/examples/shaders/shaders_custom_uniform.c
+++ b/examples/shaders/shaders_custom_uniform.c
@@ -24,6 +24,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_eratosthenes.c b/examples/shaders/shaders_eratosthenes.c
index 65fd9f98..7e9794fd 100644
--- a/examples/shaders/shaders_eratosthenes.c
+++ b/examples/shaders/shaders_eratosthenes.c
@@ -31,6 +31,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_fog.c b/examples/shaders/shaders_fog.c
index fef311c4..ebad7f2c 100644
--- a/examples/shaders/shaders_fog.c
+++ b/examples/shaders/shaders_fog.c
@@ -38,6 +38,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_hot_reloading.c b/examples/shaders/shaders_hot_reloading.c
index b6ca8b68..6815d40c 100644
--- a/examples/shaders/shaders_hot_reloading.c
+++ b/examples/shaders/shaders_hot_reloading.c
@@ -23,6 +23,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_julia_set.c b/examples/shaders/shaders_julia_set.c
index 90c44cf5..5f609d8c 100644
--- a/examples/shaders/shaders_julia_set.c
+++ b/examples/shaders/shaders_julia_set.c
@@ -35,6 +35,9 @@ const float pointsOfInterest[6][2] =
{ -0.70176f, -0.3842f },
};
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_model_shader.c b/examples/shaders/shaders_model_shader.c
index 5c53b43e..a55d7015 100644
--- a/examples/shaders/shaders_model_shader.c
+++ b/examples/shaders/shaders_model_shader.c
@@ -24,6 +24,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_multi_sample2d.c b/examples/shaders/shaders_multi_sample2d.c
index fbe75085..748d205d 100644
--- a/examples/shaders/shaders_multi_sample2d.c
+++ b/examples/shaders/shaders_multi_sample2d.c
@@ -24,6 +24,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_palette_switch.c b/examples/shaders/shaders_palette_switch.c
index 43578fce..2c6096b4 100644
--- a/examples/shaders/shaders_palette_switch.c
+++ b/examples/shaders/shaders_palette_switch.c
@@ -69,6 +69,9 @@ static const char *paletteText[] = {
"RKBV (2-strip film)"
};
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_postprocessing.c b/examples/shaders/shaders_postprocessing.c
index ebe5fcdb..67bd1f09 100644
--- a/examples/shaders/shaders_postprocessing.c
+++ b/examples/shaders/shaders_postprocessing.c
@@ -58,6 +58,9 @@ static const char *postproShaderText[] = {
//"FXAA"
};
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_raymarching.c b/examples/shaders/shaders_raymarching.c
index 68fbd30c..0cf300cc 100644
--- a/examples/shaders/shaders_raymarching.c
+++ b/examples/shaders/shaders_raymarching.c
@@ -20,6 +20,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_shapes_textures.c b/examples/shaders/shaders_shapes_textures.c
index 4d4c964c..11b2a138 100644
--- a/examples/shaders/shaders_shapes_textures.c
+++ b/examples/shaders/shaders_shapes_textures.c
@@ -24,6 +24,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_simple_mask.c b/examples/shaders/shaders_simple_mask.c
index 981e6486..678e0f9d 100644
--- a/examples/shaders/shaders_simple_mask.c
+++ b/examples/shaders/shaders_simple_mask.c
@@ -27,6 +27,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_spotlight.c b/examples/shaders/shaders_spotlight.c
index e0a9ac5b..94dfac47 100644
--- a/examples/shaders/shaders_spotlight.c
+++ b/examples/shaders/shaders_spotlight.c
@@ -64,6 +64,9 @@ typedef struct Star {
void UpdateStar(Star *s);
void ResetStar(Star *s);
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_texture_drawing.c b/examples/shaders/shaders_texture_drawing.c
index a8cd5abf..b070e61e 100644
--- a/examples/shaders/shaders_texture_drawing.c
+++ b/examples/shaders/shaders_texture_drawing.c
@@ -21,6 +21,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_texture_outline.c b/examples/shaders/shaders_texture_outline.c
index c40abf95..97ef4843 100644
--- a/examples/shaders/shaders_texture_outline.c
+++ b/examples/shaders/shaders_texture_outline.c
@@ -22,6 +22,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shaders/shaders_texture_waves.c b/examples/shaders/shaders_texture_waves.c
index 7d396fd1..d212d0b9 100644
--- a/examples/shaders/shaders_texture_waves.c
+++ b/examples/shaders/shaders_texture_waves.c
@@ -26,6 +26,9 @@
#define GLSL_VERSION 100
#endif
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_basic_shapes.c b/examples/shapes/shapes_basic_shapes.c
index 7b48d436..c939765c 100644
--- a/examples/shapes/shapes_basic_shapes.c
+++ b/examples/shapes/shapes_basic_shapes.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_bouncing_ball.c b/examples/shapes/shapes_bouncing_ball.c
index 1f8ab8d9..81817d77 100644
--- a/examples/shapes/shapes_bouncing_ball.c
+++ b/examples/shapes/shapes_bouncing_ball.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_collision_area.c b/examples/shapes/shapes_collision_area.c
index c5946b63..a8a7fb97 100644
--- a/examples/shapes/shapes_collision_area.c
+++ b/examples/shapes/shapes_collision_area.c
@@ -10,8 +10,12 @@
********************************************************************************************/
#include "raylib.h"
-#include <stdlib.h> // Required for abs()
+#include <stdlib.h> // Required for: abs()
+
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_colors_palette.c b/examples/shapes/shapes_colors_palette.c
index e9bbad76..f5fa9b95 100644
--- a/examples/shapes/shapes_colors_palette.c
+++ b/examples/shapes/shapes_colors_palette.c
@@ -13,6 +13,9 @@
#define MAX_COLORS_COUNT 21 // Number of colors available
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_draw_circle_sector.c b/examples/shapes/shapes_draw_circle_sector.c
index d605209a..9b3160b9 100644
--- a/examples/shapes/shapes_draw_circle_sector.c
+++ b/examples/shapes/shapes_draw_circle_sector.c
@@ -16,6 +16,9 @@
#define RAYGUI_IMPLEMENTATION
#include "raygui.h" // Required for GUI controls
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_draw_rectangle_rounded.c b/examples/shapes/shapes_draw_rectangle_rounded.c
index b7b1151e..f8e4aab5 100644
--- a/examples/shapes/shapes_draw_rectangle_rounded.c
+++ b/examples/shapes/shapes_draw_rectangle_rounded.c
@@ -16,6 +16,9 @@
#define RAYGUI_IMPLEMENTATION
#include "raygui.h" // Required for GUI controls
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_draw_ring.c b/examples/shapes/shapes_draw_ring.c
index cb697d5e..e7974a7d 100644
--- a/examples/shapes/shapes_draw_ring.c
+++ b/examples/shapes/shapes_draw_ring.c
@@ -16,6 +16,9 @@
#define RAYGUI_IMPLEMENTATION
#include "raygui.h" // Required for GUI controls
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_easings_ball_anim.c b/examples/shapes/shapes_easings_ball_anim.c
index 71caa0b7..cebded7e 100644
--- a/examples/shapes/shapes_easings_ball_anim.c
+++ b/examples/shapes/shapes_easings_ball_anim.c
@@ -13,6 +13,9 @@
#include "easings.h" // Required for easing functions
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_easings_box_anim.c b/examples/shapes/shapes_easings_box_anim.c
index 1bcf279d..62d05117 100644
--- a/examples/shapes/shapes_easings_box_anim.c
+++ b/examples/shapes/shapes_easings_box_anim.c
@@ -13,6 +13,9 @@
#include "easings.h" // Required for easing functions
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_easings_rectangle_array.c b/examples/shapes/shapes_easings_rectangle_array.c
index 4d4ad8e9..70de753d 100644
--- a/examples/shapes/shapes_easings_rectangle_array.c
+++ b/examples/shapes/shapes_easings_rectangle_array.c
@@ -24,6 +24,9 @@
#define PLAY_TIME_IN_FRAMES 240 // At 60 fps = 4 seconds
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_following_eyes.c b/examples/shapes/shapes_following_eyes.c
index 9ded4feb..955121ae 100644
--- a/examples/shapes/shapes_following_eyes.c
+++ b/examples/shapes/shapes_following_eyes.c
@@ -13,6 +13,9 @@
#include <math.h> // Required for: atan2f()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_lines_bezier.c b/examples/shapes/shapes_lines_bezier.c
index 634eb284..68e5c6a6 100644
--- a/examples/shapes/shapes_lines_bezier.c
+++ b/examples/shapes/shapes_lines_bezier.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_logo_raylib.c b/examples/shapes/shapes_logo_raylib.c
index 3e2d343f..bdf105eb 100644
--- a/examples/shapes/shapes_logo_raylib.c
+++ b/examples/shapes/shapes_logo_raylib.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_logo_raylib_anim.c b/examples/shapes/shapes_logo_raylib_anim.c
index f91b6c7d..0cf90b00 100644
--- a/examples/shapes/shapes_logo_raylib_anim.c
+++ b/examples/shapes/shapes_logo_raylib_anim.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_rectangle_scaling.c b/examples/shapes/shapes_rectangle_scaling.c
index 76b54c09..61154c81 100644
--- a/examples/shapes/shapes_rectangle_scaling.c
+++ b/examples/shapes/shapes_rectangle_scaling.c
@@ -15,6 +15,9 @@
#define MOUSE_SCALE_MARK_SIZE 12
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/shapes/shapes_top_down_lights.c b/examples/shapes/shapes_top_down_lights.c
index 5234c28c..74bb2c60 100644
--- a/examples/shapes/shapes_top_down_lights.c
+++ b/examples/shapes/shapes_top_down_lights.c
@@ -206,6 +206,9 @@ void SetupBoxes(Rectangle *boxes, int *count)
*count = MAX_BOXES;
}
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_font_filters.c b/examples/text/text_font_filters.c
index 874f0349..f9895e16 100644
--- a/examples/text/text_font_filters.c
+++ b/examples/text/text_font_filters.c
@@ -15,6 +15,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_font_loading.c b/examples/text/text_font_loading.c
index 2f8225db..629901ad 100644
--- a/examples/text/text_font_loading.c
+++ b/examples/text/text_font_loading.c
@@ -20,6 +20,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_font_sdf.c b/examples/text/text_font_sdf.c
index 8a2c0d77..e567d19b 100644
--- a/examples/text/text_font_sdf.c
+++ b/examples/text/text_font_sdf.c
@@ -19,6 +19,9 @@
#include <stdlib.h>
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_font_spritefont.c b/examples/text/text_font_spritefont.c
index 87ce48cf..9c45f0ed 100644
--- a/examples/text/text_font_spritefont.c
+++ b/examples/text/text_font_spritefont.c
@@ -20,6 +20,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_format_text.c b/examples/text/text_format_text.c
index 63408eb9..11a2ed2f 100644
--- a/examples/text/text_format_text.c
+++ b/examples/text/text_format_text.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_input_box.c b/examples/text/text_input_box.c
index 2e7d9a55..eb136eab 100644
--- a/examples/text/text_input_box.c
+++ b/examples/text/text_input_box.c
@@ -13,6 +13,9 @@
#define MAX_INPUT_CHARS 9
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_raylib_fonts.c b/examples/text/text_raylib_fonts.c
index 7bcfb7f6..988e809a 100644
--- a/examples/text/text_raylib_fonts.c
+++ b/examples/text/text_raylib_fonts.c
@@ -16,6 +16,9 @@
#define MAX_FONTS 8
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_rectangle_bounds.c b/examples/text/text_rectangle_bounds.c
index b4884fb3..728a2b84 100644
--- a/examples/text/text_rectangle_bounds.c
+++ b/examples/text/text_rectangle_bounds.c
@@ -16,7 +16,9 @@
static void DrawTextBoxed(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint); // Draw text using font inside rectangle limits
static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectTint, Color selectBackTint); // Draw text using font inside rectangle limits with support for text selection
-// Main entry point
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/text/text_unicode.c b/examples/text/text_unicode.c
index c1521996..87769372 100644
--- a/examples/text/text_unicode.c
+++ b/examples/text/text_unicode.c
@@ -148,9 +148,9 @@ struct {
static int hovered = -1, selected = -1;
-//--------------------------------------------------------------------------------------
-// Main entry point
-//--------------------------------------------------------------------------------------
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(int argc, char **argv)
{
// Initialization
diff --git a/examples/text/text_writing_anim.c b/examples/text/text_writing_anim.c
index 2cf2eaa2..30e6ac42 100644
--- a/examples/text/text_writing_anim.c
+++ b/examples/text/text_writing_anim.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_background_scrolling.c b/examples/textures/textures_background_scrolling.c
index c2e5ac80..aeb2cc25 100644
--- a/examples/textures/textures_background_scrolling.c
+++ b/examples/textures/textures_background_scrolling.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_blend_modes.c b/examples/textures/textures_blend_modes.c
index 646bceaa..f451a945 100644
--- a/examples/textures/textures_blend_modes.c
+++ b/examples/textures/textures_blend_modes.c
@@ -15,6 +15,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_bunnymark.c b/examples/textures/textures_bunnymark.c
index 9be7c596..15f94880 100644
--- a/examples/textures/textures_bunnymark.c
+++ b/examples/textures/textures_bunnymark.c
@@ -25,6 +25,9 @@ typedef struct Bunny {
Color color;
} Bunny;
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_draw_tiled.c b/examples/textures/textures_draw_tiled.c
index 42f72d07..9abf8d51 100644
--- a/examples/textures/textures_draw_tiled.c
+++ b/examples/textures/textures_draw_tiled.c
@@ -15,6 +15,9 @@
#define MARGIN_SIZE 8 // Size for the margins
#define COLOR_SIZE 16 // Size of the color select buttons
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(int argc, char **argv)
{
// Initialization
diff --git a/examples/textures/textures_image_drawing.c b/examples/textures/textures_image_drawing.c
index 2707746c..19ed4e99 100644
--- a/examples/textures/textures_image_drawing.c
+++ b/examples/textures/textures_image_drawing.c
@@ -13,6 +13,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_image_generation.c b/examples/textures/textures_image_generation.c
index d138d3c7..da578997 100644
--- a/examples/textures/textures_image_generation.c
+++ b/examples/textures/textures_image_generation.c
@@ -13,6 +13,9 @@
#define NUM_TEXTURES 6 // Currently we have 7 generation algorithms
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_image_loading.c b/examples/textures/textures_image_loading.c
index 8babce69..40f007f7 100644
--- a/examples/textures/textures_image_loading.c
+++ b/examples/textures/textures_image_loading.c
@@ -13,6 +13,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_image_processing.c b/examples/textures/textures_image_processing.c
index bb47330b..dca669dc 100644
--- a/examples/textures/textures_image_processing.c
+++ b/examples/textures/textures_image_processing.c
@@ -39,6 +39,9 @@ static const char *processText[] = {
"FLIP HORIZONTAL"
};
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_image_text.c b/examples/textures/textures_image_text.c
index 7b19cd3e..5badb09e 100644
--- a/examples/textures/textures_image_text.c
+++ b/examples/textures/textures_image_text.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_logo_raylib.c b/examples/textures/textures_logo_raylib.c
index de8bb2ae..12c9ebe2 100644
--- a/examples/textures/textures_logo_raylib.c
+++ b/examples/textures/textures_logo_raylib.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_mouse_painting.c b/examples/textures/textures_mouse_painting.c
index 3d6fdf10..b1e668ce 100644
--- a/examples/textures/textures_mouse_painting.c
+++ b/examples/textures/textures_mouse_painting.c
@@ -15,6 +15,9 @@
#define MAX_COLORS_COUNT 23 // Number of colors available
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_npatch_drawing.c b/examples/textures/textures_npatch_drawing.c
index 170b992f..63fc8058 100644
--- a/examples/textures/textures_npatch_drawing.c
+++ b/examples/textures/textures_npatch_drawing.c
@@ -15,6 +15,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_particles_blending.c b/examples/textures/textures_particles_blending.c
index 4d1fbf4c..9acc67d1 100644
--- a/examples/textures/textures_particles_blending.c
+++ b/examples/textures/textures_particles_blending.c
@@ -23,6 +23,9 @@ typedef struct {
bool active; // NOTE: Use it to activate/deactive particle
} Particle;
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_polygon.c b/examples/textures/textures_polygon.c
index 9d26505e..f3f74ae4 100644
--- a/examples/textures/textures_polygon.c
+++ b/examples/textures/textures_polygon.c
@@ -17,6 +17,9 @@
#define MAX_POINTS 11 // 10 points and back to the start
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_raw_data.c b/examples/textures/textures_raw_data.c
index 615e5793..7fb56f2a 100644
--- a/examples/textures/textures_raw_data.c
+++ b/examples/textures/textures_raw_data.c
@@ -15,6 +15,9 @@
#include <stdlib.h> // Required for: malloc() and free()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_rectangle.c b/examples/textures/textures_rectangle.c
index f0d5105b..eb9f818b 100644
--- a/examples/textures/textures_rectangle.c
+++ b/examples/textures/textures_rectangle.c
@@ -14,6 +14,9 @@
#define MAX_FRAME_SPEED 15
#define MIN_FRAME_SPEED 1
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_sprite_button.c b/examples/textures/textures_sprite_button.c
index 3d1a1834..3f654b72 100644
--- a/examples/textures/textures_sprite_button.c
+++ b/examples/textures/textures_sprite_button.c
@@ -13,6 +13,9 @@
#define NUM_FRAMES 3 // Number of frames (rectangles) for the button sprite texture
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_sprite_explosion.c b/examples/textures/textures_sprite_explosion.c
index 10268aa8..2e60f11f 100644
--- a/examples/textures/textures_sprite_explosion.c
+++ b/examples/textures/textures_sprite_explosion.c
@@ -14,6 +14,9 @@
#define NUM_FRAMES_PER_LINE 5
#define NUM_LINES 5
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_srcrec_dstrec.c b/examples/textures/textures_srcrec_dstrec.c
index d24ce0cc..cee38e2f 100644
--- a/examples/textures/textures_srcrec_dstrec.c
+++ b/examples/textures/textures_srcrec_dstrec.c
@@ -11,6 +11,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/textures/textures_to_image.c b/examples/textures/textures_to_image.c
index fc595b99..dfb7915b 100644
--- a/examples/textures/textures_to_image.c
+++ b/examples/textures/textures_to_image.c
@@ -13,6 +13,9 @@
#include "raylib.h"
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization