From 04b94b57f008ddc688e27854d7262941fb969e0b Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 8 Nov 2023 21:23:15 +0100 Subject: Updated open-graph data --- examples/core/core_2d_camera.html | 47 +----- examples/core/core_2d_camera_mouse_zoom.html | 57 +------ examples/core/core_2d_camera_platformer.html | 57 +------ examples/core/core_2d_camera_split_screen.html | 52 +------ examples/core/core_3d_camera_first_person.html | 87 +---------- examples/core/core_3d_camera_free.html | 77 +-------- examples/core/core_3d_camera_mode.html | 92 +---------- examples/core/core_3d_camera_split_screen.html | 87 +---------- examples/core/core_3d_picking.html | 102 +----------- examples/core/core_automation_events.html | 162 +------------------ examples/core/core_basic_screen_manager.html | 102 +----------- examples/core/core_basic_window.html | 127 +-------------- examples/core/core_custom_frame_control.html | 112 +------------ examples/core/core_custom_logging.html | 127 +-------------- examples/core/core_drop_files.html | 142 +---------------- examples/core/core_input_gamepad.html | 132 +--------------- examples/core/core_input_gamepad_info.html | 152 +----------------- examples/core/core_input_gestures.html | 167 +------------------- examples/core/core_input_gestures_web.html | 162 +------------------ examples/core/core_input_keys.html | 162 +------------------ examples/core/core_input_mouse.html | 177 +-------------------- examples/core/core_input_mouse_wheel.html | 177 +-------------------- examples/core/core_input_multitouch.html | 187 +--------------------- examples/core/core_loading_thread.html | 177 +-------------------- examples/core/core_random_values.html | 177 +-------------------- examples/core/core_scissor_test.html | 192 +---------------------- examples/core/core_smooth_pixelperfect.html | 207 +------------------------ examples/core/core_storage_values.html | 207 +------------------------ examples/core/core_vr_simulator.html | 192 +---------------------- examples/core/core_window_letterbox.html | 12 +- examples/core/core_window_should_close.html | 22 +-- examples/core/core_world_screen.html | 22 +-- 32 files changed, 32 insertions(+), 3922 deletions(-) (limited to 'examples/core') diff --git a/examples/core/core_2d_camera.html b/examples/core/core_2d_camera.html index bebfd5b..e387557 100644 --- a/examples/core/core_2d_camera.html +++ b/examples/core/core_2d_camera.html @@ -1,46 +1 @@ -core 2d camera
\ No newline at end of file +core 2d camera
\ No newline at end of file diff --git a/examples/core/core_2d_camera_mouse_zoom.html b/examples/core/core_2d_camera_mouse_zoom.html index 198e932..8858419 100644 --- a/examples/core/core_2d_camera_mouse_zoom.html +++ b/examples/core/core_2d_camera_mouse_zoom.html @@ -1,56 +1 @@ -core 2d camera mouse zoom
\ No newline at end of file +core 2d camera mouse zoom
\ No newline at end of file diff --git a/examples/core/core_2d_camera_platformer.html b/examples/core/core_2d_camera_platformer.html index fc956c6..c6b7f62 100644 --- a/examples/core/core_2d_camera_platformer.html +++ b/examples/core/core_2d_camera_platformer.html @@ -1,56 +1 @@ -core 2d camera platformer
\ No newline at end of file +core 2d camera platformer
\ No newline at end of file diff --git a/examples/core/core_2d_camera_split_screen.html b/examples/core/core_2d_camera_split_screen.html index 9e3a67f..7b74430 100644 --- a/examples/core/core_2d_camera_split_screen.html +++ b/examples/core/core_2d_camera_split_screen.html @@ -1,51 +1 @@ -core 2d camera split screen
\ No newline at end of file +core 2d camera split screen
\ No newline at end of file diff --git a/examples/core/core_3d_camera_first_person.html b/examples/core/core_3d_camera_first_person.html index 5f27183..bff510d 100644 --- a/examples/core/core_3d_camera_first_person.html +++ b/examples/core/core_3d_camera_first_person.html @@ -1,86 +1 @@ -core 3d camera first person
\ No newline at end of file +core 3d camera first person
\ No newline at end of file diff --git a/examples/core/core_3d_camera_free.html b/examples/core/core_3d_camera_free.html index b3e805a..4d2d8b0 100644 --- a/examples/core/core_3d_camera_free.html +++ b/examples/core/core_3d_camera_free.html @@ -1,76 +1 @@ -core 3d camera free
\ No newline at end of file +core 3d camera free
\ No newline at end of file diff --git a/examples/core/core_3d_camera_mode.html b/examples/core/core_3d_camera_mode.html index 7aecfd6..25ba578 100644 --- a/examples/core/core_3d_camera_mode.html +++ b/examples/core/core_3d_camera_mode.html @@ -1,91 +1 @@ -core 3d camera mode
\ No newline at end of file +core 3d camera mode
\ No newline at end of file diff --git a/examples/core/core_3d_camera_split_screen.html b/examples/core/core_3d_camera_split_screen.html index d9a0ea7..36330d2 100644 --- a/examples/core/core_3d_camera_split_screen.html +++ b/examples/core/core_3d_camera_split_screen.html @@ -1,86 +1 @@ -core 3d camera split screen
\ No newline at end of file +core 3d camera split screen
\ No newline at end of file diff --git a/examples/core/core_3d_picking.html b/examples/core/core_3d_picking.html index 4ca1707..567d880 100644 --- a/examples/core/core_3d_picking.html +++ b/examples/core/core_3d_picking.html @@ -1,101 +1 @@ -core 3d picking
\ No newline at end of file +core 3d picking
\ No newline at end of file diff --git a/examples/core/core_automation_events.html b/examples/core/core_automation_events.html index 736660c..1006269 100644 --- a/examples/core/core_automation_events.html +++ b/examples/core/core_automation_events.html @@ -1,161 +1 @@ -core automation events
\ No newline at end of file +core automation events
\ No newline at end of file diff --git a/examples/core/core_basic_screen_manager.html b/examples/core/core_basic_screen_manager.html index 2716690..db06e6b 100644 --- a/examples/core/core_basic_screen_manager.html +++ b/examples/core/core_basic_screen_manager.html @@ -1,101 +1 @@ -core basic screen manager
\ No newline at end of file +core basic screen manager
\ No newline at end of file diff --git a/examples/core/core_basic_window.html b/examples/core/core_basic_window.html index 960dc4d..0bf303d 100644 --- a/examples/core/core_basic_window.html +++ b/examples/core/core_basic_window.html @@ -1,126 +1 @@ -core basic window
\ No newline at end of file +core basic window
\ No newline at end of file diff --git a/examples/core/core_custom_frame_control.html b/examples/core/core_custom_frame_control.html index 02b1d89..793a5df 100644 --- a/examples/core/core_custom_frame_control.html +++ b/examples/core/core_custom_frame_control.html @@ -1,111 +1 @@ -core custom frame control
\ No newline at end of file +core custom frame control
\ No newline at end of file diff --git a/examples/core/core_custom_logging.html b/examples/core/core_custom_logging.html index 732532c..1e4fec7 100644 --- a/examples/core/core_custom_logging.html +++ b/examples/core/core_custom_logging.html @@ -1,126 +1 @@ -core custom logging // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen() -#include // Required for: time_t, tm, time(), localtime(), strftime() - -// Custom logging function -void CustomLog(int msgType, const char *text, va_list args) -{ - char timeStr[64] = { 0 }; - time_t now = time(NULL); - struct tm *tm_info = localtime(&now); - - strftime(timeS"name=description> // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen() -#include // Required for: time_t, tm, time(), localtime(), strftime() - -// Custom logging function -void CustomLog(int msgType, const char *text, va_list args) -{ - char timeStr[64] = { 0 }; - time_t now = time(NULL); - struct tm *tm_info = localtime(&now); - - strftime(timeS"property=og:image:alt> // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen() -#include // Required for: time_t, tm, time(), localtime(), strftime() - -// Custom logging function -void CustomLog(int msgType, const char *text, va_list args) -{ - char timeStr[64] = { 0 }; - time_t now = time(NULL); - struct tm *tm_info = localtime(&now); - - strftime(timeS"property=og:description> // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen() -#include // Required for: time_t, tm, time(), localtime(), strftime() - -// Custom logging function -void CustomLog(int msgType, const char *text, va_list args) -{ - char timeStr[64] = { 0 }; - time_t now = time(NULL); - struct tm *tm_info = localtime(&now); - - strftime(timeS"name=twitter:image:alt> // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen() -#include // Required for: time_t, tm, time(), localtime(), strftime() - -// Custom logging function -void CustomLog(int msgType, const char *text, va_list args) -{ - char timeStr[64] = { 0 }; - time_t now = time(NULL); - struct tm *tm_info = localtime(&now); - - strftime(timeS"name=twitter:description>
\ No newline at end of file +core custom logging
\ No newline at end of file diff --git a/examples/core/core_drop_files.html b/examples/core/core_drop_files.html index eab60ee..12076d8 100644 --- a/examples/core/core_drop_files.html +++ b/examples/core/core_drop_files.html @@ -1,141 +1 @@ -core drop files // Required for: calloc(), free() - -#define MAX_FILEPATH_RECORDED 4096 -#define MAX_FILEPATH_SIZE 2048 - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - "name=description> // Required for: calloc(), free() - -#define MAX_FILEPATH_RECORDED 4096 -#define MAX_FILEPATH_SIZE 2048 - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - "property=og:image:alt> // Required for: calloc(), free() - -#define MAX_FILEPATH_RECORDED 4096 -#define MAX_FILEPATH_SIZE 2048 - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - "property=og:description> // Required for: calloc(), free() - -#define MAX_FILEPATH_RECORDED 4096 -#define MAX_FILEPATH_SIZE 2048 - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - "name=twitter:image:alt> // Required for: calloc(), free() - -#define MAX_FILEPATH_RECORDED 4096 -#define MAX_FILEPATH_SIZE 2048 - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - "name=twitter:description>
\ No newline at end of file +core drop files
\ No newline at end of file diff --git a/examples/core/core_input_gamepad.html b/examples/core/core_input_gamepad.html index 438833a..7735f64 100644 --- a/examples/core/core_input_gamepad.html +++ b/examples/core/core_input_gamepad.html @@ -1,131 +1 @@ -core input gamepad
\ No newline at end of file +core input gamepad
\ No newline at end of file diff --git a/examples/core/core_input_gamepad_info.html b/examples/core/core_input_gamepad_info.html index 926bfa5..35417f8 100644 --- a/examples/core/core_input_gamepad_info.html +++ b/examples/core/core_input_gamepad_info.html @@ -1,151 +1 @@ -core input gamepad info
\ No newline at end of file +core input gamepad info
\ No newline at end of file diff --git a/examples/core/core_input_gestures.html b/examples/core/core_input_gestures.html index e79b5fb..f11b877 100644 --- a/examples/core/core_input_gestures.html +++ b/examples/core/core_input_gestures.html @@ -1,166 +1 @@ -core input gestures
\ No newline at end of file +core input gestures
\ No newline at end of file diff --git a/examples/core/core_input_gestures_web.html b/examples/core/core_input_gestures_web.html index 1c94e71..322a9fa 100644 --- a/examples/core/core_input_gestures_web.html +++ b/examples/core/core_input_gestures_web.html @@ -1,161 +1 @@ -core input gestures web // Required for the Web/HTML5 -#endif - -//-------------------------------------------------------------------------------------- -// Global definitions and declarations -//-------------------------------------------------------------------------------------- - -// Common variables definitions -//-------------------------------------------------------------------------------------- -int screenWidth = 800; // Update depending on web canvas -const int screenHeight = 450; -Vector2 messagePosition = { 160, 7 }; - -// Last gesture variables definitions -//-------------------"name=description> // Required for the Web/HTML5 -#endif - -//-------------------------------------------------------------------------------------- -// Global definitions and declarations -//-------------------------------------------------------------------------------------- - -// Common variables definitions -//-------------------------------------------------------------------------------------- -int screenWidth = 800; // Update depending on web canvas -const int screenHeight = 450; -Vector2 messagePosition = { 160, 7 }; - -// Last gesture variables definitions -//-------------------"property=og:image:alt> // Required for the Web/HTML5 -#endif - -//-------------------------------------------------------------------------------------- -// Global definitions and declarations -//-------------------------------------------------------------------------------------- - -// Common variables definitions -//-------------------------------------------------------------------------------------- -int screenWidth = 800; // Update depending on web canvas -const int screenHeight = 450; -Vector2 messagePosition = { 160, 7 }; - -// Last gesture variables definitions -//-------------------"property=og:description> // Required for the Web/HTML5 -#endif - -//-------------------------------------------------------------------------------------- -// Global definitions and declarations -//-------------------------------------------------------------------------------------- - -// Common variables definitions -//-------------------------------------------------------------------------------------- -int screenWidth = 800; // Update depending on web canvas -const int screenHeight = 450; -Vector2 messagePosition = { 160, 7 }; - -// Last gesture variables definitions -//-------------------"name=twitter:image:alt> // Required for the Web/HTML5 -#endif - -//-------------------------------------------------------------------------------------- -// Global definitions and declarations -//-------------------------------------------------------------------------------------- - -// Common variables definitions -//-------------------------------------------------------------------------------------- -int screenWidth = 800; // Update depending on web canvas -const int screenHeight = 450; -Vector2 messagePosition = { 160, 7 }; - -// Last gesture variables definitions -//-------------------"name=twitter:description>
\ No newline at end of file +core input gestures web
\ No newline at end of file diff --git a/examples/core/core_input_keys.html b/examples/core/core_input_keys.html index 867f2de..de20592 100644 --- a/examples/core/core_input_keys.html +++ b/examples/core/core_input_keys.html @@ -1,161 +1 @@ -core input keys
\ No newline at end of file +core input keys
\ No newline at end of file diff --git a/examples/core/core_input_mouse.html b/examples/core/core_input_mouse.html index 2700fff..7beed09 100644 --- a/examples/core/core_input_mouse.html +++ b/examples/core/core_input_mouse.html @@ -1,176 +1 @@ -core input mouse
\ No newline at end of file +core input mouse
\ No newline at end of file diff --git a/examples/core/core_input_mouse_wheel.html b/examples/core/core_input_mouse_wheel.html index da56e67..2a51634 100644 --- a/examples/core/core_input_mouse_wheel.html +++ b/examples/core/core_input_mouse_wheel.html @@ -1,176 +1 @@ -core input mouse wheel
\ No newline at end of file +core input mouse wheel
\ No newline at end of file diff --git a/examples/core/core_input_multitouch.html b/examples/core/core_input_multitouch.html index f4b2738..baffc50 100644 --- a/examples/core/core_input_multitouch.html +++ b/examples/core/core_input_multitouch.html @@ -1,186 +1 @@ -core input multitouch
\ No newline at end of file +core input multitouch
\ No newline at end of file diff --git a/examples/core/core_loading_thread.html b/examples/core/core_loading_thread.html index c611c9e..20d04d6 100644 --- a/examples/core/core_loading_thread.html +++ b/examples/core/core_loading_thread.html @@ -1,176 +1 @@ -core loading thread // C11 atomic data types - -#include // Required for: clock() - -// Using C11 atomics for synchronization -// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization -static atomic_bool dataLoaded = false; // Data Loaded completion indicator -static void *LoadDataThread(void *arg); // Loading data thread function declaration - -static atomic_int dataProgress = 0; // Data progress accumulator - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //---------------------"name=description> // C11 atomic data types - -#include // Required for: clock() - -// Using C11 atomics for synchronization -// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization -static atomic_bool dataLoaded = false; // Data Loaded completion indicator -static void *LoadDataThread(void *arg); // Loading data thread function declaration - -static atomic_int dataProgress = 0; // Data progress accumulator - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //---------------------"property=og:image:alt> // C11 atomic data types - -#include // Required for: clock() - -// Using C11 atomics for synchronization -// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization -static atomic_bool dataLoaded = false; // Data Loaded completion indicator -static void *LoadDataThread(void *arg); // Loading data thread function declaration - -static atomic_int dataProgress = 0; // Data progress accumulator - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //---------------------"property=og:description> // C11 atomic data types - -#include // Required for: clock() - -// Using C11 atomics for synchronization -// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization -static atomic_bool dataLoaded = false; // Data Loaded completion indicator -static void *LoadDataThread(void *arg); // Loading data thread function declaration - -static atomic_int dataProgress = 0; // Data progress accumulator - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //---------------------"name=twitter:image:alt> // C11 atomic data types - -#include // Required for: clock() - -// Using C11 atomics for synchronization -// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization -static atomic_bool dataLoaded = false; // Data Loaded completion indicator -static void *LoadDataThread(void *arg); // Loading data thread function declaration - -static atomic_int dataProgress = 0; // Data progress accumulator - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //---------------------"name=twitter:description>
\ No newline at end of file +core loading thread
\ No newline at end of file diff --git a/examples/core/core_random_values.html b/examples/core/core_random_values.html index 581b866..7518fd6 100644 --- a/examples/core/core_random_values.html +++ b/examples/core/core_random_values.html @@ -1,176 +1 @@ -core random values
\ No newline at end of file +core random values
\ No newline at end of file diff --git a/examples/core/core_scissor_test.html b/examples/core/core_scissor_test.html index ebc617f..1411f92 100644 --- a/examples/core/core_scissor_test.html +++ b/examples/core/core_scissor_test.html @@ -1,191 +1 @@ -core scissor test
\ No newline at end of file +core scissor test
\ No newline at end of file diff --git a/examples/core/core_smooth_pixelperfect.html b/examples/core/core_smooth_pixelperfect.html index 3254969..bb2c161 100644 --- a/examples/core/core_smooth_pixelperfect.html +++ b/examples/core/core_smooth_pixelperfect.html @@ -1,206 +1 @@ -core smooth pixelperfect // Required for: sinf(), cosf() - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - const int virtualScreenWidth = 160; - const int virtualScreenHeight = 90; - - const float virtualRatio = (float)screenWidth/(float)virtualScreenWidth; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixel-perfect camera"); - - Camera2D worldSpaceCamera = { 0 }; // Game world camera - worldSpaceCamera.zoom = 1.0f; - - Camera2D screenSpaceCamera = { 0 }; // Smoothing camera - screenSpaceCamera.zoom = 1.0f; - - RenderTexture2D target = LoadRenderTexture(virtualScreenWidth, v"name=description> // Required for: sinf(), cosf() - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - const int virtualScreenWidth = 160; - const int virtualScreenHeight = 90; - - const float virtualRatio = (float)screenWidth/(float)virtualScreenWidth; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixel-perfect camera"); - - Camera2D worldSpaceCamera = { 0 }; // Game world camera - worldSpaceCamera.zoom = 1.0f; - - Camera2D screenSpaceCamera = { 0 }; // Smoothing camera - screenSpaceCamera.zoom = 1.0f; - - RenderTexture2D target = LoadRenderTexture(virtualScreenWidth, v"property=og:image:alt> // Required for: sinf(), cosf() - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - const int virtualScreenWidth = 160; - const int virtualScreenHeight = 90; - - const float virtualRatio = (float)screenWidth/(float)virtualScreenWidth; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixel-perfect camera"); - - Camera2D worldSpaceCamera = { 0 }; // Game world camera - worldSpaceCamera.zoom = 1.0f; - - Camera2D screenSpaceCamera = { 0 }; // Smoothing camera - screenSpaceCamera.zoom = 1.0f; - - RenderTexture2D target = LoadRenderTexture(virtualScreenWidth, v"property=og:description> // Required for: sinf(), cosf() - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - const int virtualScreenWidth = 160; - const int virtualScreenHeight = 90; - - const float virtualRatio = (float)screenWidth/(float)virtualScreenWidth; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixel-perfect camera"); - - Camera2D worldSpaceCamera = { 0 }; // Game world camera - worldSpaceCamera.zoom = 1.0f; - - Camera2D screenSpaceCamera = { 0 }; // Smoothing camera - screenSpaceCamera.zoom = 1.0f; - - RenderTexture2D target = LoadRenderTexture(virtualScreenWidth, v"name=twitter:image:alt> // Required for: sinf(), cosf() - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - const int virtualScreenWidth = 160; - const int virtualScreenHeight = 90; - - const float virtualRatio = (float)screenWidth/(float)virtualScreenWidth; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - smooth pixel-perfect camera"); - - Camera2D worldSpaceCamera = { 0 }; // Game world camera - worldSpaceCamera.zoom = 1.0f; - - Camera2D screenSpaceCamera = { 0 }; // Smoothing camera - screenSpaceCamera.zoom = 1.0f; - - RenderTexture2D target = LoadRenderTexture(virtualScreenWidth, v"name=twitter:description>
\ No newline at end of file +core smooth pixelperfect
\ No newline at end of file diff --git a/examples/core/core_storage_values.html b/examples/core/core_storage_values.html index 85a144c..f5d4c85 100644 --- a/examples/core/core_storage_values.html +++ b/examples/core/core_storage_values.html @@ -1,206 +1 @@ -core storage values // Required for: calloc(), free() - -#define STORAGE_DATA_FILE "storage.data" // Storage file - -// NOTE: Storage positions must start with 0, directly related to file memory layout -typedef enum { - STORAGE_POSITION_SCORE = 0, - STORAGE_POSITION_HISCORE = 1 -} StorageData; - -// Persistent storage functions -static bool SaveStorageValue(unsigned int position, int value); -static int LoadStorageValue(unsigned int position); - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); - - int score = 0; - int hiscore = 0; - int framesCounter = "name=description> // Required for: calloc(), free() - -#define STORAGE_DATA_FILE "storage.data" // Storage file - -// NOTE: Storage positions must start with 0, directly related to file memory layout -typedef enum { - STORAGE_POSITION_SCORE = 0, - STORAGE_POSITION_HISCORE = 1 -} StorageData; - -// Persistent storage functions -static bool SaveStorageValue(unsigned int position, int value); -static int LoadStorageValue(unsigned int position); - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); - - int score = 0; - int hiscore = 0; - int framesCounter = "property=og:image:alt> // Required for: calloc(), free() - -#define STORAGE_DATA_FILE "storage.data" // Storage file - -// NOTE: Storage positions must start with 0, directly related to file memory layout -typedef enum { - STORAGE_POSITION_SCORE = 0, - STORAGE_POSITION_HISCORE = 1 -} StorageData; - -// Persistent storage functions -static bool SaveStorageValue(unsigned int position, int value); -static int LoadStorageValue(unsigned int position); - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); - - int score = 0; - int hiscore = 0; - int framesCounter = "property=og:description> // Required for: calloc(), free() - -#define STORAGE_DATA_FILE "storage.data" // Storage file - -// NOTE: Storage positions must start with 0, directly related to file memory layout -typedef enum { - STORAGE_POSITION_SCORE = 0, - STORAGE_POSITION_HISCORE = 1 -} StorageData; - -// Persistent storage functions -static bool SaveStorageValue(unsigned int position, int value); -static int LoadStorageValue(unsigned int position); - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); - - int score = 0; - int hiscore = 0; - int framesCounter = "name=twitter:image:alt> // Required for: calloc(), free() - -#define STORAGE_DATA_FILE "storage.data" // Storage file - -// NOTE: Storage positions must start with 0, directly related to file memory layout -typedef enum { - STORAGE_POSITION_SCORE = 0, - STORAGE_POSITION_HISCORE = 1 -} StorageData; - -// Persistent storage functions -static bool SaveStorageValue(unsigned int position, int value); -static int LoadStorageValue(unsigned int position); - -//------------------------------------------------------------------------------------ -// Program main entry point -//------------------------------------------------------------------------------------ -int main(void) -{ - // Initialization - //-------------------------------------------------------------------------------------- - const int screenWidth = 800; - const int screenHeight = 450; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); - - int score = 0; - int hiscore = 0; - int framesCounter = "name=twitter:description>
\ No newline at end of file +core storage values
\ No newline at end of file diff --git a/examples/core/core_vr_simulator.html b/examples/core/core_vr_simulator.html index f0eb44c..e7e3625 100644 --- a/examples/core/core_vr_simulator.html +++ b/examples/core/core_vr_simulator.html @@ -1,191 +1 @@ -core vr simulator
\ No newline at end of file +core vr simulator
\ No newline at end of file diff --git a/examples/core/core_window_letterbox.html b/examples/core/core_window_letterbox.html index 275e73c..142f418 100644 --- a/examples/core/core_window_letterbox.html +++ b/examples/core/core_window_letterbox.html @@ -1,11 +1 @@ -core window letterbox
\ No newline at end of file +core window letterbox
\ No newline at end of file diff --git a/examples/core/core_window_should_close.html b/examples/core/core_window_should_close.html index 23597e8..7aa055f 100644 --- a/examples/core/core_window_should_close.html +++ b/examples/core/core_window_should_close.html @@ -1,21 +1 @@ -core window should close
\ No newline at end of file +core window should close
\ No newline at end of file diff --git a/examples/core/core_world_screen.html b/examples/core/core_world_screen.html index 80f735b..4603d42 100644 --- a/examples/core/core_world_screen.html +++ b/examples/core/core_world_screen.html @@ -1,21 +1 @@ -core world screen
\ No newline at end of file +core world screen
\ No newline at end of file -- cgit v1.2.3