diff options
| author | Ray <[email protected]> | 2021-03-14 13:10:05 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-14 13:10:05 +0100 |
| commit | 06c815f05810fb2a72356d19f9cac218ca977892 (patch) | |
| tree | b8e08779a8374cb641c5246c55475f88e263704a /examples/web/textures | |
| parent | 421c4e4cd85310bef3a8f79f89d23e3a1eac9668 (diff) | |
| download | raylib.com-06c815f05810fb2a72356d19f9cac218ca977892.tar.gz raylib.com-06c815f05810fb2a72356d19f9cac218ca977892.zip | |
Updated examples after enum values rename
Diffstat (limited to 'examples/web/textures')
| -rw-r--r-- | examples/web/textures/textures_image_processing.c | 2 | ||||
| -rw-r--r-- | examples/web/textures/textures_raw_data.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/web/textures/textures_image_processing.c b/examples/web/textures/textures_image_processing.c index 5f7f330..94d39d8 100644 --- a/examples/web/textures/textures_image_processing.c +++ b/examples/web/textures/textures_image_processing.c @@ -74,7 +74,7 @@ int main(void) // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) image = LoadImage("resources/parrots.png"); // Loaded in CPU memory (RAM) - ImageFormat(&image, UNCOMPRESSED_R8G8B8A8); // Format image to RGBA 32bit (required for texture update) + ImageFormat(&image, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8); // Format image to RGBA 32bit (required for texture update) texture = LoadTextureFromImage(image); // Image converted to texture, GPU memory (VRAM) for (int i = 0; i < NUM_PROCESSES; i++) selectRecs[i] = (Rectangle){ 40, 50 + 32*i, 150, 30 }; diff --git a/examples/web/textures/textures_raw_data.c b/examples/web/textures/textures_raw_data.c index c1078dc..dded6c3 100644 --- a/examples/web/textures/textures_raw_data.c +++ b/examples/web/textures/textures_raw_data.c @@ -43,7 +43,7 @@ int main(void) InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture from raw data"); // Load RAW image data (512x512, 32bit RGBA, no file header) - Image fudesumiRaw = LoadImageRaw("resources/fudesumi.raw", 384, 512, UNCOMPRESSED_R8G8B8A8, 0); + Image fudesumiRaw = LoadImageRaw("resources/fudesumi.raw", 384, 512, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, 0); fudesumi = LoadTextureFromImage(fudesumiRaw); // Upload CPU (RAM) image to GPU (VRAM) UnloadImage(fudesumiRaw); // Unload CPU (RAM) image data @@ -68,7 +68,7 @@ int main(void) .data = pixels, // We can assign pixels directly to data .width = width, .height = height, - .format = UNCOMPRESSED_R8G8B8A8, + .format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, .mipmaps = 1 }; |
