REXM: Update examples collection, some renames

This commit is contained in:
Ray
2025-10-17 17:01:38 +02:00
parent 4099218f1a
commit ed8c4c1b9b
17 changed files with 126 additions and 111 deletions

View File

@ -4,14 +4,14 @@
*
* Example complexity rating: [★☆☆☆] 1/4
*
* Example originally created with raylib 5.5, last time updated with raylib 5.6
* Example originally created with raylib 5.6-dev, last time updated with raylib 5.6-dev
*
* Example contributed by <author_name> (@<user_github>) and reviewed by Ramon Santamaria (@raysan5)
* Example contributed by Ramon Santamaria (@raysan5) and reviewed by Ramon Santamaria (@raysan5)
*
* 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) 0 <author_name> (@<user_github>)
* Copyright (c) 2025 Ramon Santamaria (@raysan5)
*
********************************************************************************************/

View File

@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [core] example - monitor change
* raylib [core] example - monitor detector
*
* Example complexity rating: [] 1/4
*
@ -19,8 +19,8 @@
#define MAX_MONITORS 10
// Monitor Details
typedef struct Monitor {
// Monitor info
typedef struct MonitorInfo {
Vector2 position;
const char *name;
int width;
@ -28,7 +28,7 @@ typedef struct Monitor {
int physicalWidth;
int physicalHeight;
int refreshRate;
} Monitor;
} MonitorInfo;
//------------------------------------------------------------------------------------
// Program main entry point
@ -40,9 +40,9 @@ int main(void)
const int screenWidth = 800;
const int screenHeight = 450;
Monitor monitors[MAX_MONITORS] = { 0 };
MonitorInfo monitors[MAX_MONITORS] = { 0 };
InitWindow(screenWidth, screenHeight, "raylib [core] example - monitor change");
InitWindow(screenWidth, screenHeight, "raylib [core] example - monitor detector");
int currentMonitorIndex = GetCurrentMonitor();
int monitorCount = 0;
@ -67,7 +67,7 @@ int main(void)
monitorCount = GetMonitorCount();
for (int i = 0; i < monitorCount; i++)
{
monitors[i] = (Monitor){
monitors[i] = (MonitorInfo){
GetMonitorPosition(i),
GetMonitorName(i),
GetMonitorWidth(i),

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -4,14 +4,14 @@
*
* Example complexity rating: [★☆☆☆] 1/4
*
* Example originally created with raylib 5.5, last time updated with raylib 5.6
* Example originally created with raylib 5.6-dev, last time updated with raylib 5.6-dev
*
* Example contributed by <author_name> (@<user_github>) and reviewed by Ramon Santamaria (@raysan5)
* Example contributed by Ramon Santamaria (@raysan5) and reviewed by Ramon Santamaria (@raysan5)
*
* 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) 0 <author_name> (@<user_github>)
* Copyright (c) 2025 Ramon Santamaria (@raysan5)
*
********************************************************************************************/