diff --git a/.gitignore b/.gitignore index 664168ef3..be170102a 100644 --- a/.gitignore +++ b/.gitignore @@ -110,6 +110,7 @@ project/vs2015/*.opendb !project/vs2015/external/openal_soft/lib/win64/OpenAL32.dll !project/vs2015/external/lua/lib/win32/lua53.dll +# Web examples docs/examples/web/*.html +docs/examples/web/*/*.html !docs/examples/web/loader.html - diff --git a/docs/examples/web/audio/audio_module_playing.html b/docs/examples/web/audio/audio_module_playing.html deleted file mode 100644 index eafea3647..000000000 --- a/docs/examples/web/audio/audio_module_playing.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/audio/audio_music_stream.html b/docs/examples/web/audio/audio_music_stream.html deleted file mode 100644 index 36d1ebe74..000000000 --- a/docs/examples/web/audio/audio_music_stream.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/audio/audio_raw_stream.html b/docs/examples/web/audio/audio_raw_stream.html deleted file mode 100644 index f238562af..000000000 --- a/docs/examples/web/audio/audio_raw_stream.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/audio/audio_sound_loading.html b/docs/examples/web/audio/audio_sound_loading.html deleted file mode 100644 index 00c5ed39d..000000000 --- a/docs/examples/web/audio/audio_sound_loading.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_2d_camera.html b/docs/examples/web/core/core_2d_camera.html deleted file mode 100644 index c66fa3df9..000000000 --- a/docs/examples/web/core/core_2d_camera.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_3d_camera_first_person.html b/docs/examples/web/core/core_3d_camera_first_person.html deleted file mode 100644 index 20d75be9c..000000000 --- a/docs/examples/web/core/core_3d_camera_first_person.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_3d_camera_free.html b/docs/examples/web/core/core_3d_camera_free.html deleted file mode 100644 index aa264dcd3..000000000 --- a/docs/examples/web/core/core_3d_camera_free.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_3d_mode.html b/docs/examples/web/core/core_3d_mode.html deleted file mode 100644 index a3a34fcdb..000000000 --- a/docs/examples/web/core/core_3d_mode.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_3d_picking.html b/docs/examples/web/core/core_3d_picking.html deleted file mode 100644 index e88986290..000000000 --- a/docs/examples/web/core/core_3d_picking.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_basic_window.html b/docs/examples/web/core/core_basic_window.html deleted file mode 100644 index 3e60a68e7..000000000 --- a/docs/examples/web/core/core_basic_window.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_color_select.html b/docs/examples/web/core/core_color_select.html deleted file mode 100644 index 745b8b425..000000000 --- a/docs/examples/web/core/core_color_select.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_gestures_detection.html b/docs/examples/web/core/core_gestures_detection.html deleted file mode 100644 index d71e7ade8..000000000 --- a/docs/examples/web/core/core_gestures_detection.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_input_gamepad.html b/docs/examples/web/core/core_input_gamepad.html deleted file mode 100644 index 552e4567e..000000000 --- a/docs/examples/web/core/core_input_gamepad.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_input_keys.html b/docs/examples/web/core/core_input_keys.html deleted file mode 100644 index b327168d9..000000000 --- a/docs/examples/web/core/core_input_keys.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_input_mouse.html b/docs/examples/web/core/core_input_mouse.html deleted file mode 100644 index ef3107c51..000000000 --- a/docs/examples/web/core/core_input_mouse.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_mouse_wheel.html b/docs/examples/web/core/core_mouse_wheel.html deleted file mode 100644 index 4d29b3f5d..000000000 --- a/docs/examples/web/core/core_mouse_wheel.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_random_values.html b/docs/examples/web/core/core_random_values.html deleted file mode 100644 index 61117df18..000000000 --- a/docs/examples/web/core/core_random_values.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_vr_simulator.html b/docs/examples/web/core/core_vr_simulator.html deleted file mode 100644 index e4a7c7201..000000000 --- a/docs/examples/web/core/core_vr_simulator.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/core/core_world_screen.html b/docs/examples/web/core/core_world_screen.html deleted file mode 100644 index fd2517497..000000000 --- a/docs/examples/web/core/core_world_screen.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_billboard.html b/docs/examples/web/models/models_billboard.html deleted file mode 100644 index cce356860..000000000 --- a/docs/examples/web/models/models_billboard.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_box_collisions.html b/docs/examples/web/models/models_box_collisions.html deleted file mode 100644 index 4878a7394..000000000 --- a/docs/examples/web/models/models_box_collisions.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_cubicmap.html b/docs/examples/web/models/models_cubicmap.html deleted file mode 100644 index b8691d78c..000000000 --- a/docs/examples/web/models/models_cubicmap.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_geometric_shapes.html b/docs/examples/web/models/models_geometric_shapes.html deleted file mode 100644 index c0dc3e56e..000000000 --- a/docs/examples/web/models/models_geometric_shapes.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_heightmap.html b/docs/examples/web/models/models_heightmap.html deleted file mode 100644 index f66ea920b..000000000 --- a/docs/examples/web/models/models_heightmap.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_obj_loading.html b/docs/examples/web/models/models_obj_loading.html deleted file mode 100644 index ceae3d5ee..000000000 --- a/docs/examples/web/models/models_obj_loading.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/models/models_ray_picking.html b/docs/examples/web/models/models_ray_picking.html deleted file mode 100644 index c9e4d0706..000000000 --- a/docs/examples/web/models/models_ray_picking.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/others/image_formats_loading.c b/docs/examples/web/others/image_formats_loading.c deleted file mode 100644 index 8b54f70b4..000000000 --- a/docs/examples/web/others/image_formats_loading.c +++ /dev/null @@ -1,271 +0,0 @@ -/******************************************************************************************* -* -* raylib [textures] example - texture formats loading (adapted for HTML5 platform) -* -* NOTE: This example requires raylib OpenGL 3.3+ or ES2 versions for compressed textures, -* OpenGL 1.1 does not support compressed textures, only uncompressed ones. -* -* This example has been created using raylib 1.3 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) -* -* Copyright (c) 2015 Ramon Santamaria (@raysan5) -* -********************************************************************************************/ - -#include "raylib.h" - -#if defined(PLATFORM_WEB) - #include -#endif - -#define NUM_TEXTURES 24 - -//---------------------------------------------------------------------------------- -// Global Variables Definition -//---------------------------------------------------------------------------------- -int screenWidth = 800; -int screenHeight = 450; - -int selectedFormat; -Rectangle selectRecs[NUM_TEXTURES]; -Texture2D sonic[NUM_TEXTURES]; - -typedef enum { - PNG_R8G8B8A8 = 0, - PVR_GRAYSCALE, - PVR_GRAY_ALPHA, - PVR_R5G6B5, - PVR_R5G5B5A1, - PVR_R4G4B4A4, - DDS_R5G6B5, - DDS_R5G5B5A1, - DDS_R4G4B4A4, - DDS_R8G8B8A8, - DDS_DXT1_RGB, - DDS_DXT1_RGBA, - DDS_DXT3_RGBA, - DDS_DXT5_RGBA, - PKM_ETC1_RGB, - PKM_ETC2_RGB, - PKM_ETC2_EAC_RGBA, - KTX_ETC1_RGB, - KTX_ETC2_RGB, - KTX_ETC2_EAC_RGBA, - ASTC_4x4_LDR, - ASTC_8x8_LDR, - PVR_PVRT_RGB, - PVR_PVRT_RGBA - -} TextureFormats; - -static const char *formatText[] = { - "PNG_R8G8B8A8", - "PVR_GRAYSCALE", - "PVR_GRAY_ALPHA", - "PVR_R5G6B5", - "PVR_R5G5B5A1", - "PVR_R4G4B4A4", - "DDS_R5G6B5", - "DDS_R5G5B5A1", - "DDS_R4G4B4A4", - "DDS_R8G8B8A8", - "DDS_DXT1_RGB", - "DDS_DXT1_RGBA", - "DDS_DXT3_RGBA", - "DDS_DXT5_RGBA", - "PKM_ETC1_RGB", - "PKM_ETC2_RGB", - "PKM_ETC2_EAC_RGBA", - "KTX_ETC1_RGB", - "KTX_ETC2_RGB", - "KTX_ETC2_EAC_RGBA", - "ASTC_4x4_LDR", - "ASTC_8x8_LDR", - "PVR_PVRT_RGB", - "PVR_PVRT_RGBA" -}; - -// Texture sizes in KB -float textureSizes[NUM_TEXTURES] = { - 512*512*32/8/1024, //PNG_R8G8B8A8 (32 bpp) - 512*512*8/8/1024, //PVR_GRAYSCALE (8 bpp) - 512*512*16/8/1024, //PVR_GRAY_ALPHA (16 bpp) - 512*512*16/8/1024, //PVR_R5G6B5 (16 bpp) - 512*512*16/8/1024, //PVR_R5G5B5A1 (16 bpp) - 512*512*16/8/1024, //PVR_R4G4B4A4 (16 bpp) - 512*512*16/8/1024, //DDS_R5G6B5 (16 bpp) - 512*512*16/8/1024, //DDS_R5G5B5A1 (16 bpp) - 512*512*16/8/1024, //DDS_R4G4B4A4 (16 bpp) - 512*512*32/8/1024, //DDS_R8G8B8A8 (32 bpp) - 512*512*4/8/1024, //DDS_DXT1_RGB (4 bpp) -Compressed- - 512*512*4/8/1024, //DDS_DXT1_RGBA (4 bpp) -Compressed- - 512*512*8/8/1024, //DDS_DXT3_RGBA (8 bpp) -Compressed- - 512*512*8/8/1024, //DDS_DXT5_RGBA (8 bpp) -Compressed- - 512*512*4/8/1024, //PKM_ETC1_RGB (4 bpp) -Compressed- - 512*512*4/8/1024, //PKM_ETC2_RGB (4 bpp) -Compressed- - 512*512*8/8/1024, //PKM_ETC2_EAC_RGBA (8 bpp) -Compressed- - 512*512*4/8/1024, //KTX_ETC1_RGB (4 bpp) -Compressed- - 512*512*4/8/1024, //KTX_ETC2_RGB (4 bpp) -Compressed- - 512*512*8/8/1024, //KTX_ETC2_EAC_RGBA (8 bpp) -Compressed- - 512*512*8/8/1024, //ASTC_4x4_LDR (8 bpp) -Compressed- - 512*512*2/8/1024, //ASTC_8x8_LDR (2 bpp) -Compressed- - 512*512*4/8/1024, //PVR_PVRT_RGB (4 bpp) -Compressed- - 512*512*4/8/1024, //PVR_PVRT_RGBA (4 bpp) -Compressed- -}; - - -//---------------------------------------------------------------------------------- -// Module Functions Declaration -//---------------------------------------------------------------------------------- -void UpdateDrawFrame(void); // Update and Draw one frame - -//---------------------------------------------------------------------------------- -// Main Enry Point -//---------------------------------------------------------------------------------- -int main() -{ - // Initialization - //-------------------------------------------------------------------------------------- - InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture formats loading"); - - selectedFormat = PNG_R8G8B8A8; - - sonic[PNG_R8G8B8A8] = LoadTexture("resources/texture_formats/sonic.png"); - - // Load UNCOMPRESSED PVR texture data - sonic[PVR_GRAYSCALE] = LoadTexture("resources/texture_formats/sonic_GRAYSCALE.pvr"); - sonic[PVR_GRAY_ALPHA] = LoadTexture("resources/texture_formats/sonic_L8A8.pvr"); - sonic[PVR_R5G6B5] = LoadTexture("resources/texture_formats/sonic_R5G6B5.pvr"); - sonic[PVR_R5G5B5A1] = LoadTexture("resources/texture_formats/sonic_R5G5B5A1.pvr"); - sonic[PVR_R4G4B4A4] = LoadTexture("resources/texture_formats/sonic_R4G4B4A4.pvr"); - - // Load UNCOMPRESSED DDS texture data - sonic[DDS_R5G6B5] = LoadTexture("resources/texture_formats/sonic_R5G6B5.dds"); - sonic[DDS_R5G5B5A1] = LoadTexture("resources/texture_formats/sonic_A1R5G5B5.dds"); - sonic[DDS_R4G4B4A4] = LoadTexture("resources/texture_formats/sonic_A4R4G4B4.dds"); - sonic[DDS_R8G8B8A8] = LoadTexture("resources/texture_formats/sonic_A8R8G8B8.dds"); - - // Load COMPRESSED DXT DDS texture data (if supported) - sonic[DDS_DXT1_RGB] = LoadTexture("resources/texture_formats/sonic_DXT1_RGB.dds"); - sonic[DDS_DXT1_RGBA] = LoadTexture("resources/texture_formats/sonic_DXT1_RGBA.dds"); - sonic[DDS_DXT3_RGBA] = LoadTexture("resources/texture_formats/sonic_DXT3_RGBA.dds"); - sonic[DDS_DXT5_RGBA] = LoadTexture("resources/texture_formats/sonic_DXT5_RGBA.dds"); - - // Load COMPRESSED ETC texture data (if supported) - sonic[PKM_ETC1_RGB] = LoadTexture("resources/texture_formats/sonic_ETC1_RGB.pkm"); - sonic[PKM_ETC2_RGB] = LoadTexture("resources/texture_formats/sonic_ETC2_RGB.pkm"); - sonic[PKM_ETC2_EAC_RGBA] = LoadTexture("resources/texture_formats/sonic_ETC2_EAC_RGBA.pkm"); - - sonic[KTX_ETC1_RGB] = LoadTexture("resources/texture_formats/sonic_ETC1_RGB.ktx"); - sonic[KTX_ETC2_RGB] = LoadTexture("resources/texture_formats/sonic_ETC2_RGB.ktx"); - sonic[KTX_ETC2_EAC_RGBA] = LoadTexture("resources/texture_formats/sonic_ETC2_EAC_RGBA.ktx"); - - // Load COMPRESSED ASTC texture data (if supported) - sonic[ASTC_4x4_LDR] = LoadTexture("resources/texture_formats/sonic_ASTC_4x4_ldr.astc"); - sonic[ASTC_8x8_LDR] = LoadTexture("resources/texture_formats/sonic_ASTC_8x8_ldr.astc"); - - // Load COMPRESSED PVR texture data (if supported) - sonic[PVR_PVRT_RGB] = LoadTexture("resources/texture_formats/sonic_PVRT_RGB.pvr"); - sonic[PVR_PVRT_RGBA] = LoadTexture("resources/texture_formats/sonic_PVRT_RGBA.pvr"); - - - - for (int i = 0; i < NUM_TEXTURES; i++) - { - if (i < NUM_TEXTURES/2) selectRecs[i] = (Rectangle){ 40, 30 + 32*i, 150, 30 }; - else selectRecs[i] = (Rectangle){ 40 + 152, 30 + 32*(i - NUM_TEXTURES/2), 150, 30 }; - } - -#if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); -#else - SetTargetFPS(60); // Set our game to run at 60 frames-per-second - //-------------------------------------------------------------------------------------- - - // Main game loop - while (!WindowShouldClose()) // Detect window close button or ESC key - { - UpdateDrawFrame(); - } -#endif - - // De-Initialization - //-------------------------------------------------------------------------------------- - for (int i = 0; i < NUM_TEXTURES; i++) UnloadTexture(sonic[i]); - - CloseWindow(); // Close window and OpenGL context - //-------------------------------------------------------------------------------------- - - return 0; -} - -//---------------------------------------------------------------------------------- -// Module Functions Definition -//---------------------------------------------------------------------------------- -void UpdateDrawFrame(void) -{ - // Update - //---------------------------------------------------------------------------------- - if (IsKeyPressed(KEY_DOWN)) - { - selectedFormat++; - if (selectedFormat >= NUM_TEXTURES) selectedFormat = 0; - } - else if (IsKeyPressed(KEY_UP)) - { - selectedFormat--; - if (selectedFormat < 0) selectedFormat = NUM_TEXTURES - 1; - } - else if (IsKeyPressed(KEY_RIGHT)) - { - if (selectedFormat < NUM_TEXTURES/2) selectedFormat += NUM_TEXTURES/2; - } - else if (IsKeyPressed(KEY_LEFT)) - { - if (selectedFormat >= NUM_TEXTURES/2) selectedFormat -= NUM_TEXTURES/2; - } - //---------------------------------------------------------------------------------- - - // Draw - //---------------------------------------------------------------------------------- - BeginDrawing(); - - ClearBackground(RAYWHITE); - - // Draw rectangles - for (int i = 0; i < NUM_TEXTURES; i++) - { - if (i == selectedFormat) - { - DrawRectangleRec(selectRecs[i], SKYBLUE); - DrawRectangleLines(selectRecs[i].x, selectRecs[i].y, selectRecs[i].width, selectRecs[i].height, BLUE); - DrawText(formatText[i], selectRecs[i].x + selectRecs[i].width/2 - MeasureText(formatText[i], 10)/2, selectRecs[i].y + 11, 10, DARKBLUE); - } - else - { - DrawRectangleRec(selectRecs[i], LIGHTGRAY); - DrawRectangleLines(selectRecs[i].x, selectRecs[i].y, selectRecs[i].width, selectRecs[i].height, GRAY); - DrawText(formatText[i], selectRecs[i].x + selectRecs[i].width/2 - MeasureText(formatText[i], 10)/2, selectRecs[i].y + 11, 10, DARKGRAY); - } - } - - // Draw selected texture - if (sonic[selectedFormat].id != 0) - { - DrawTexture(sonic[selectedFormat], 350, -10, WHITE); - } - else - { - DrawRectangleLines(488, 165, 200, 110, DARKGRAY); - DrawText("FORMAT", 550, 180, 20, MAROON); - DrawText("NOT SUPPORTED", 500, 210, 20, MAROON); - DrawText("ON YOUR GPU", 520, 240, 20, MAROON); - } - - DrawText("Select texture format (use cursor keys):", 40, 10, 10, DARKGRAY); - DrawText("Required GPU memory size (VRAM):", 40, 427, 10, DARKGRAY); - DrawText(FormatText("%4.0f KB", textureSizes[selectedFormat]), 240, 420, 20, DARKBLUE); - - EndDrawing(); - //---------------------------------------------------------------------------------- -} \ No newline at end of file diff --git a/docs/examples/web/others/resources/formats/sonic.png b/docs/examples/web/others/resources/formats/sonic.png deleted file mode 100644 index 7a0968471..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic.png and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_A1R5G5B5.dds b/docs/examples/web/others/resources/formats/sonic_A1R5G5B5.dds deleted file mode 100644 index 5e2347db1..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_A1R5G5B5.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_A4R4G4B4.dds b/docs/examples/web/others/resources/formats/sonic_A4R4G4B4.dds deleted file mode 100644 index c5ccaf0cc..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_A4R4G4B4.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_A8R8G8B8.dds b/docs/examples/web/others/resources/formats/sonic_A8R8G8B8.dds deleted file mode 100644 index fb71b7be7..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_A8R8G8B8.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ASTC_4x4_ldr.astc b/docs/examples/web/others/resources/formats/sonic_ASTC_4x4_ldr.astc deleted file mode 100644 index 9a98d9a06..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ASTC_4x4_ldr.astc and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ASTC_8x8_ldr.astc b/docs/examples/web/others/resources/formats/sonic_ASTC_8x8_ldr.astc deleted file mode 100644 index 360a264ad..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ASTC_8x8_ldr.astc and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_DXT1_RGB.dds b/docs/examples/web/others/resources/formats/sonic_DXT1_RGB.dds deleted file mode 100644 index 9d0b45988..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_DXT1_RGB.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_DXT1_RGBA.dds b/docs/examples/web/others/resources/formats/sonic_DXT1_RGBA.dds deleted file mode 100644 index 102bae7f1..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_DXT1_RGBA.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_DXT3_RGBA.dds b/docs/examples/web/others/resources/formats/sonic_DXT3_RGBA.dds deleted file mode 100644 index 46d965cbd..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_DXT3_RGBA.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_DXT5_RGBA.dds b/docs/examples/web/others/resources/formats/sonic_DXT5_RGBA.dds deleted file mode 100644 index b3a59a793..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_DXT5_RGBA.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC1_RGB.ktx b/docs/examples/web/others/resources/formats/sonic_ETC1_RGB.ktx deleted file mode 100644 index 66241b9d0..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC1_RGB.ktx and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC1_RGB.pkm b/docs/examples/web/others/resources/formats/sonic_ETC1_RGB.pkm deleted file mode 100644 index c6fc6df4c..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC1_RGB.pkm and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.ktx b/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.ktx deleted file mode 100644 index b01812cb0..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.ktx and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.old.pkm b/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.old.pkm deleted file mode 100644 index 61ac48ce0..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.old.pkm and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.pkm b/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.pkm deleted file mode 100644 index 61ac48ce0..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC2_EAC_RGBA.pkm and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC2_RGB.ktx b/docs/examples/web/others/resources/formats/sonic_ETC2_RGB.ktx deleted file mode 100644 index 7f1207f7c..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC2_RGB.ktx and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_ETC2_RGB.pkm b/docs/examples/web/others/resources/formats/sonic_ETC2_RGB.pkm deleted file mode 100644 index f290f019a..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_ETC2_RGB.pkm and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_GRAYSCALE.pvr b/docs/examples/web/others/resources/formats/sonic_GRAYSCALE.pvr deleted file mode 100644 index d31e26519..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_GRAYSCALE.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_L8A8.pvr b/docs/examples/web/others/resources/formats/sonic_L8A8.pvr deleted file mode 100644 index ccf5932e2..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_L8A8.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_PVRT_RGB.pvr b/docs/examples/web/others/resources/formats/sonic_PVRT_RGB.pvr deleted file mode 100644 index 22f3f66a1..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_PVRT_RGB.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_PVRT_RGBA.pvr b/docs/examples/web/others/resources/formats/sonic_PVRT_RGBA.pvr deleted file mode 100644 index feb9aeafb..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_PVRT_RGBA.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_PVRT_RGBA_2bpp.pvr b/docs/examples/web/others/resources/formats/sonic_PVRT_RGBA_2bpp.pvr deleted file mode 100644 index 9147e1bbc..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_PVRT_RGBA_2bpp.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_PVRT_RGB_2bpp.pvr b/docs/examples/web/others/resources/formats/sonic_PVRT_RGB_2bpp.pvr deleted file mode 100644 index 2a8aea8c9..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_PVRT_RGB_2bpp.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R4G4B4A4.pvr b/docs/examples/web/others/resources/formats/sonic_R4G4B4A4.pvr deleted file mode 100644 index 3f7368a37..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R4G4B4A4.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R5G5B5A1.pvr b/docs/examples/web/others/resources/formats/sonic_R5G5B5A1.pvr deleted file mode 100644 index c7fa098d2..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R5G5B5A1.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R5G6B5.dds b/docs/examples/web/others/resources/formats/sonic_R5G6B5.dds deleted file mode 100644 index 217da954f..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R5G6B5.dds and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R5G6B5.pvr b/docs/examples/web/others/resources/formats/sonic_R5G6B5.pvr deleted file mode 100644 index 9bb8320e2..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R5G6B5.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R8G8B8.pvr b/docs/examples/web/others/resources/formats/sonic_R8G8B8.pvr deleted file mode 100644 index 072cf3ef2..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R8G8B8.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R8G8B8A8.pvr b/docs/examples/web/others/resources/formats/sonic_R8G8B8A8.pvr deleted file mode 100644 index f82534f9a..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R8G8B8A8.pvr and /dev/null differ diff --git a/docs/examples/web/others/resources/formats/sonic_R8G8B8A8.raw b/docs/examples/web/others/resources/formats/sonic_R8G8B8A8.raw deleted file mode 100644 index fc5858e7d..000000000 Binary files a/docs/examples/web/others/resources/formats/sonic_R8G8B8A8.raw and /dev/null differ diff --git a/docs/examples/web/shaders/shaders_custom_uniform.html b/docs/examples/web/shaders/shaders_custom_uniform.html deleted file mode 100644 index 5e4ba0554..000000000 --- a/docs/examples/web/shaders/shaders_custom_uniform.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shaders/shaders_model_shader.html b/docs/examples/web/shaders/shaders_model_shader.html deleted file mode 100644 index eba182482..000000000 --- a/docs/examples/web/shaders/shaders_model_shader.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shaders/shaders_postprocessing.html b/docs/examples/web/shaders/shaders_postprocessing.html deleted file mode 100644 index 515e6ef75..000000000 --- a/docs/examples/web/shaders/shaders_postprocessing.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shaders/shaders_shapes_textures.html b/docs/examples/web/shaders/shaders_shapes_textures.html deleted file mode 100644 index 6bdab5622..000000000 --- a/docs/examples/web/shaders/shaders_shapes_textures.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shapes/shapes_basic_shapes.html b/docs/examples/web/shapes/shapes_basic_shapes.html deleted file mode 100644 index d139c1577..000000000 --- a/docs/examples/web/shapes/shapes_basic_shapes.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shapes/shapes_colors_palette.html b/docs/examples/web/shapes/shapes_colors_palette.html deleted file mode 100644 index 7110a4148..000000000 --- a/docs/examples/web/shapes/shapes_colors_palette.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shapes/shapes_logo_raylib.html b/docs/examples/web/shapes/shapes_logo_raylib.html deleted file mode 100644 index 480a83f25..000000000 --- a/docs/examples/web/shapes/shapes_logo_raylib.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/shapes/shapes_logo_raylib_anim.html b/docs/examples/web/shapes/shapes_logo_raylib_anim.html deleted file mode 100644 index 98f649caa..000000000 --- a/docs/examples/web/shapes/shapes_logo_raylib_anim.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_bmfont_ttf.html b/docs/examples/web/text/text_bmfont_ttf.html deleted file mode 100644 index 4b5b577be..000000000 --- a/docs/examples/web/text/text_bmfont_ttf.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_bmfont_unordered.html b/docs/examples/web/text/text_bmfont_unordered.html deleted file mode 100644 index b196ec338..000000000 --- a/docs/examples/web/text/text_bmfont_unordered.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_format_text.html b/docs/examples/web/text/text_format_text.html deleted file mode 100644 index 10569b0c9..000000000 --- a/docs/examples/web/text/text_format_text.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_rbmf_fonts.html b/docs/examples/web/text/text_rbmf_fonts.html deleted file mode 100644 index 5fdd5fbf3..000000000 --- a/docs/examples/web/text/text_rbmf_fonts.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_sprite_fonts.html b/docs/examples/web/text/text_sprite_fonts.html deleted file mode 100644 index 788930578..000000000 --- a/docs/examples/web/text/text_sprite_fonts.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_ttf_loading.html b/docs/examples/web/text/text_ttf_loading.html deleted file mode 100644 index 628ae6d70..000000000 --- a/docs/examples/web/text/text_ttf_loading.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/text/text_writing_anim.html b/docs/examples/web/text/text_writing_anim.html deleted file mode 100644 index ecb489716..000000000 --- a/docs/examples/web/text/text_writing_anim.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_image_drawing.html b/docs/examples/web/textures/textures_image_drawing.html deleted file mode 100644 index e6edbd69c..000000000 --- a/docs/examples/web/textures/textures_image_drawing.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_image_loading.html b/docs/examples/web/textures/textures_image_loading.html deleted file mode 100644 index 9a5a1c567..000000000 --- a/docs/examples/web/textures/textures_image_loading.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_image_processing.html b/docs/examples/web/textures/textures_image_processing.html deleted file mode 100644 index 02ce2077a..000000000 --- a/docs/examples/web/textures/textures_image_processing.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_logo_raylib.html b/docs/examples/web/textures/textures_logo_raylib.html deleted file mode 100644 index 18baf6823..000000000 --- a/docs/examples/web/textures/textures_logo_raylib.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_raw_data.html b/docs/examples/web/textures/textures_raw_data.html deleted file mode 100644 index 0d459d4c2..000000000 --- a/docs/examples/web/textures/textures_raw_data.html +++ /dev/null @@ -1,1300 +0,0 @@ - - - - - - Emscripten-Generated Code - - - - - image/svg+xml - - -
-
Downloading...
- - - Resize canvas - Lock/hide mouse pointer     - - - - -
- -
- - -
- -
- - - - - - diff --git a/docs/examples/web/textures/textures_rectangle.html b/docs/examples/web/textures/textures_rectangle.html deleted file mode 100644 index 5a5ea669d..000000000 --- a/docs/examples/web/textures/textures_rectangle.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_srcrec_dstrec.html b/docs/examples/web/textures/textures_srcrec_dstrec.html deleted file mode 100644 index 8a84317cc..000000000 --- a/docs/examples/web/textures/textures_srcrec_dstrec.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file diff --git a/docs/examples/web/textures/textures_to_image.html b/docs/examples/web/textures/textures_to_image.html deleted file mode 100644 index 72eee3ec6..000000000 --- a/docs/examples/web/textures/textures_to_image.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - raylib HTML5 GAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
Downloading...
- - - - - -
- -
-
- -
- -
- - - - - - - \ No newline at end of file