summaryrefslogtreecommitdiffhomepage
path: root/examples/textures
diff options
context:
space:
mode:
authorRay <[email protected]>2017-04-08 23:31:58 +0200
committerRay <[email protected]>2017-04-08 23:31:58 +0200
commit20d205cae5bf78d00fb03c266999c33488cbd2c8 (patch)
tree8aafb630d19f3a2a827bf212e16c531a0c672d41 /examples/textures
parent5fd83708cf860db358d843cb30f99a88aaf3bd2c (diff)
downloadraylib-20d205cae5bf78d00fb03c266999c33488cbd2c8.tar.gz
raylib-20d205cae5bf78d00fb03c266999c33488cbd2c8.zip
Working on examples...
Diffstat (limited to 'examples/textures')
-rw-r--r--examples/textures/resources/texture_formats/sonic.pngbin116512 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_A1R5G5B5.ddsbin524416 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_A4R4G4B4.ddsbin524416 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_A8R8G8B8.ddsbin1048704 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ASTC_4x4_ldr.astcbin262160 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ASTC_8x8_ldr.astcbin65552 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_DXT1_RGB.ddsbin131200 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_DXT1_RGBA.ddsbin131200 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_DXT3_RGBA.ddsbin262272 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_DXT5_RGBA.ddsbin262272 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC1_RGB.ktxbin131140 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC1_RGB.pkmbin131088 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.ktxbin262212 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.old.pkmbin262160 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.pkmbin262160 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC2_RGB.ktxbin131140 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_ETC2_RGB.pkmbin131088 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_GRAYSCALE.pvrbin262211 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_L8A8.pvrbin524355 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_PVRT_RGB.pvrbin131139 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_PVRT_RGBA.pvrbin131139 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_PVRT_RGBA_2bpp.pvrbin65603 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_PVRT_RGB_2bpp.pvrbin65603 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R4G4B4A4.pvrbin524355 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R5G5B5A1.pvrbin524355 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R5G6B5.ddsbin524416 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R5G6B5.pvrbin524355 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R8G8B8.pvrbin786499 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R8G8B8A8.pvrbin1048643 -> 0 bytes
-rw-r--r--examples/textures/resources/texture_formats/sonic_R8G8B8A8.rawbin1048576 -> 0 bytes
-rw-r--r--examples/textures/textures_formats_loading.c244
-rw-r--r--examples/textures/textures_formats_loading.pngbin125797 -> 0 bytes
-rw-r--r--examples/textures/textures_particles_trail_blending.c135
-rw-r--r--examples/textures/textures_particles_trail_blending.pngbin358260 -> 0 bytes
34 files changed, 0 insertions, 379 deletions
diff --git a/examples/textures/resources/texture_formats/sonic.png b/examples/textures/resources/texture_formats/sonic.png
deleted file mode 100644
index 7a096847..00000000
--- a/examples/textures/resources/texture_formats/sonic.png
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_A1R5G5B5.dds b/examples/textures/resources/texture_formats/sonic_A1R5G5B5.dds
deleted file mode 100644
index 5e2347db..00000000
--- a/examples/textures/resources/texture_formats/sonic_A1R5G5B5.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_A4R4G4B4.dds b/examples/textures/resources/texture_formats/sonic_A4R4G4B4.dds
deleted file mode 100644
index c5ccaf0c..00000000
--- a/examples/textures/resources/texture_formats/sonic_A4R4G4B4.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_A8R8G8B8.dds b/examples/textures/resources/texture_formats/sonic_A8R8G8B8.dds
deleted file mode 100644
index fb71b7be..00000000
--- a/examples/textures/resources/texture_formats/sonic_A8R8G8B8.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ASTC_4x4_ldr.astc b/examples/textures/resources/texture_formats/sonic_ASTC_4x4_ldr.astc
deleted file mode 100644
index 9a98d9a0..00000000
--- a/examples/textures/resources/texture_formats/sonic_ASTC_4x4_ldr.astc
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ASTC_8x8_ldr.astc b/examples/textures/resources/texture_formats/sonic_ASTC_8x8_ldr.astc
deleted file mode 100644
index 360a264a..00000000
--- a/examples/textures/resources/texture_formats/sonic_ASTC_8x8_ldr.astc
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_DXT1_RGB.dds b/examples/textures/resources/texture_formats/sonic_DXT1_RGB.dds
deleted file mode 100644
index 9d0b4598..00000000
--- a/examples/textures/resources/texture_formats/sonic_DXT1_RGB.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_DXT1_RGBA.dds b/examples/textures/resources/texture_formats/sonic_DXT1_RGBA.dds
deleted file mode 100644
index 102bae7f..00000000
--- a/examples/textures/resources/texture_formats/sonic_DXT1_RGBA.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_DXT3_RGBA.dds b/examples/textures/resources/texture_formats/sonic_DXT3_RGBA.dds
deleted file mode 100644
index 46d965cb..00000000
--- a/examples/textures/resources/texture_formats/sonic_DXT3_RGBA.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_DXT5_RGBA.dds b/examples/textures/resources/texture_formats/sonic_DXT5_RGBA.dds
deleted file mode 100644
index b3a59a79..00000000
--- a/examples/textures/resources/texture_formats/sonic_DXT5_RGBA.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC1_RGB.ktx b/examples/textures/resources/texture_formats/sonic_ETC1_RGB.ktx
deleted file mode 100644
index 66241b9d..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC1_RGB.ktx
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC1_RGB.pkm b/examples/textures/resources/texture_formats/sonic_ETC1_RGB.pkm
deleted file mode 100644
index c6fc6df4..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC1_RGB.pkm
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.ktx b/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.ktx
deleted file mode 100644
index b01812cb..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.ktx
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.old.pkm b/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.old.pkm
deleted file mode 100644
index 61ac48ce..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.old.pkm
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.pkm b/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.pkm
deleted file mode 100644
index 61ac48ce..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC2_EAC_RGBA.pkm
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC2_RGB.ktx b/examples/textures/resources/texture_formats/sonic_ETC2_RGB.ktx
deleted file mode 100644
index 7f1207f7..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC2_RGB.ktx
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_ETC2_RGB.pkm b/examples/textures/resources/texture_formats/sonic_ETC2_RGB.pkm
deleted file mode 100644
index f290f019..00000000
--- a/examples/textures/resources/texture_formats/sonic_ETC2_RGB.pkm
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_GRAYSCALE.pvr b/examples/textures/resources/texture_formats/sonic_GRAYSCALE.pvr
deleted file mode 100644
index d31e2651..00000000
--- a/examples/textures/resources/texture_formats/sonic_GRAYSCALE.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_L8A8.pvr b/examples/textures/resources/texture_formats/sonic_L8A8.pvr
deleted file mode 100644
index ccf5932e..00000000
--- a/examples/textures/resources/texture_formats/sonic_L8A8.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_PVRT_RGB.pvr b/examples/textures/resources/texture_formats/sonic_PVRT_RGB.pvr
deleted file mode 100644
index 22f3f66a..00000000
--- a/examples/textures/resources/texture_formats/sonic_PVRT_RGB.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_PVRT_RGBA.pvr b/examples/textures/resources/texture_formats/sonic_PVRT_RGBA.pvr
deleted file mode 100644
index feb9aeaf..00000000
--- a/examples/textures/resources/texture_formats/sonic_PVRT_RGBA.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_PVRT_RGBA_2bpp.pvr b/examples/textures/resources/texture_formats/sonic_PVRT_RGBA_2bpp.pvr
deleted file mode 100644
index 9147e1bb..00000000
--- a/examples/textures/resources/texture_formats/sonic_PVRT_RGBA_2bpp.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_PVRT_RGB_2bpp.pvr b/examples/textures/resources/texture_formats/sonic_PVRT_RGB_2bpp.pvr
deleted file mode 100644
index 2a8aea8c..00000000
--- a/examples/textures/resources/texture_formats/sonic_PVRT_RGB_2bpp.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R4G4B4A4.pvr b/examples/textures/resources/texture_formats/sonic_R4G4B4A4.pvr
deleted file mode 100644
index 3f7368a3..00000000
--- a/examples/textures/resources/texture_formats/sonic_R4G4B4A4.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R5G5B5A1.pvr b/examples/textures/resources/texture_formats/sonic_R5G5B5A1.pvr
deleted file mode 100644
index c7fa098d..00000000
--- a/examples/textures/resources/texture_formats/sonic_R5G5B5A1.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R5G6B5.dds b/examples/textures/resources/texture_formats/sonic_R5G6B5.dds
deleted file mode 100644
index 217da954..00000000
--- a/examples/textures/resources/texture_formats/sonic_R5G6B5.dds
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R5G6B5.pvr b/examples/textures/resources/texture_formats/sonic_R5G6B5.pvr
deleted file mode 100644
index 9bb8320e..00000000
--- a/examples/textures/resources/texture_formats/sonic_R5G6B5.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R8G8B8.pvr b/examples/textures/resources/texture_formats/sonic_R8G8B8.pvr
deleted file mode 100644
index 072cf3ef..00000000
--- a/examples/textures/resources/texture_formats/sonic_R8G8B8.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R8G8B8A8.pvr b/examples/textures/resources/texture_formats/sonic_R8G8B8A8.pvr
deleted file mode 100644
index f82534f9..00000000
--- a/examples/textures/resources/texture_formats/sonic_R8G8B8A8.pvr
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/texture_formats/sonic_R8G8B8A8.raw b/examples/textures/resources/texture_formats/sonic_R8G8B8A8.raw
deleted file mode 100644
index fc5858e7..00000000
--- a/examples/textures/resources/texture_formats/sonic_R8G8B8A8.raw
+++ /dev/null
Binary files differ
diff --git a/examples/textures/textures_formats_loading.c b/examples/textures/textures_formats_loading.c
deleted file mode 100644
index f416ce38..00000000
--- a/examples/textures/textures_formats_loading.c
+++ /dev/null
@@ -1,244 +0,0 @@
-/*******************************************************************************************
-*
-* raylib [textures] example - texture formats loading (compressed and uncompressed)
-*
-* 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"
-
-#define NUM_TEXTURES 24
-
-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"
-};
-
-int main()
-{
- // Initialization
- //--------------------------------------------------------------------------------------
- int screenWidth = 800;
- int screenHeight = 450;
-
- InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture formats loading");
-
- // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-
- Texture2D sonic[NUM_TEXTURES];
-
- 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");
-
- int selectedFormat = PNG_R8G8B8A8;
-
- Rectangle selectRecs[NUM_TEXTURES];
-
- 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 };
- }
-
- // 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-
- };
-
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
- //---------------------------------------------------------------------------------------
-
- // Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
- {
- // 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();
- //----------------------------------------------------------------------------------
- }
-
- // De-Initialization
- //--------------------------------------------------------------------------------------
- for (int i = 0; i < NUM_TEXTURES; i++) UnloadTexture(sonic[i]);
-
- CloseWindow(); // Close window and OpenGL context
- //--------------------------------------------------------------------------------------
-
- return 0;
-} \ No newline at end of file
diff --git a/examples/textures/textures_formats_loading.png b/examples/textures/textures_formats_loading.png
deleted file mode 100644
index 6778080f..00000000
--- a/examples/textures/textures_formats_loading.png
+++ /dev/null
Binary files differ
diff --git a/examples/textures/textures_particles_trail_blending.c b/examples/textures/textures_particles_trail_blending.c
deleted file mode 100644
index 0b47c790..00000000
--- a/examples/textures/textures_particles_trail_blending.c
+++ /dev/null
@@ -1,135 +0,0 @@
-/*******************************************************************************************
-*
-* raylib example - particles trail blending
-*
-* 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"
-
-#define MAX_PARTICLES 200
-
-// Particle structure with basic data
-typedef struct {
- Vector2 position;
- Color color;
- float alpha;
- float size;
- float rotation;
- bool active; // NOTE: Use it to activate/deactive particle
-} Particle;
-
-int main()
-{
- // Initialization
- //--------------------------------------------------------------------------------------
- int screenWidth = 800;
- int screenHeight = 450;
-
- InitWindow(screenWidth, screenHeight, "raylib [textures] example - particles trail blending");
-
- // Particles pool, reuse them!
- Particle mouseTail[MAX_PARTICLES];
-
- // Initialize particles
- for (int i = 0; i < MAX_PARTICLES; i++)
- {
- mouseTail[i].position = (Vector2){ 0, 0 };
- mouseTail[i].color = (Color){ GetRandomValue(0, 255), GetRandomValue(0, 255), GetRandomValue(0, 255), 255 };
- mouseTail[i].alpha = 1.0f;
- mouseTail[i].size = (float)GetRandomValue(1, 30)/20.0f;
- mouseTail[i].rotation = GetRandomValue(0, 360);
- mouseTail[i].active = false;
- }
-
- float gravity = 3.0f;
-
- Texture2D smoke = LoadTexture("resources/smoke.png");
-
- int blending = BLEND_ALPHA;
-
- SetTargetFPS(60);
- //--------------------------------------------------------------------------------------
-
- // Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
- {
- // Update
- //----------------------------------------------------------------------------------
-
- // Activate one particle every frame and Update active particles
- // NOTE: Particles initial position should be mouse position when activated
- // NOTE: Particles fall down with gravity and rotation... and disappear after 2 seconds (alpha = 0)
- // NOTE: When a particle disappears, active = false and it can be reused.
- for (int i = 0; i < MAX_PARTICLES; i++)
- {
- if (!mouseTail[i].active)
- {
- mouseTail[i].active = true;
- mouseTail[i].alpha = 1.0f;
- mouseTail[i].position = GetMousePosition();
- i = MAX_PARTICLES;
- }
- }
-
- for (int i = 0; i < MAX_PARTICLES; i++)
- {
- if (mouseTail[i].active)
- {
- mouseTail[i].position.y += gravity;
- mouseTail[i].alpha -= 0.01f;
-
- if (mouseTail[i].alpha <= 0.0f) mouseTail[i].active = false;
-
- mouseTail[i].rotation += 5.0f;
- }
- }
-
- if (IsKeyPressed(KEY_SPACE))
- {
- if (blending == BLEND_ALPHA) blending = BLEND_ADDITIVE;
- else blending = BLEND_ALPHA;
- }
- //----------------------------------------------------------------------------------
-
- // Draw
- //----------------------------------------------------------------------------------
- BeginDrawing();
-
- ClearBackground(DARKGRAY);
-
- BeginBlendMode(blending);
-
- // Draw active particles
- for (int i = 0; i < MAX_PARTICLES; i++)
- {
- if (mouseTail[i].active) DrawTexturePro(smoke, (Rectangle){ 0, 0, smoke.width, smoke.height },
- (Rectangle){ mouseTail[i].position.x, mouseTail[i].position.y, smoke.width*mouseTail[i].size, smoke.height*mouseTail[i].size },
- (Vector2){ smoke.width*mouseTail[i].size/2, smoke.height*mouseTail[i].size/2 }, mouseTail[i].rotation,
- Fade(mouseTail[i].color, mouseTail[i].alpha));
- }
-
- EndBlendMode();
-
- DrawText("PRESS SPACE to CHANGE BLENDING MODE", 180, 20, 20, BLACK);
-
- if (blending == BLEND_ALPHA) DrawText("ALPHA BLENDING", 290, screenHeight - 40, 20, BLACK);
- else DrawText("ADDITIVE BLENDING", 280, screenHeight - 40, 20, RAYWHITE);
-
- EndDrawing();
- //----------------------------------------------------------------------------------
- }
-
- // De-Initialization
- //--------------------------------------------------------------------------------------
- UnloadTexture(smoke);
-
- CloseWindow(); // Close window and OpenGL context
- //--------------------------------------------------------------------------------------
-
- return 0;
-} \ No newline at end of file
diff --git a/examples/textures/textures_particles_trail_blending.png b/examples/textures/textures_particles_trail_blending.png
deleted file mode 100644
index b0c40fd2..00000000
--- a/examples/textures/textures_particles_trail_blending.png
+++ /dev/null
Binary files differ