From 1adeedc70d51c66ad3c3afb691a53cc10300a645 Mon Sep 17 00:00:00 2001 From: CrackedPixel <5776225+CrackedPixel@users.noreply.github.com> Date: Sun, 16 Feb 2025 10:20:46 -0600 Subject: [PATCH] change to more generic --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9128135..b1707b5 100644 --- a/README.md +++ b/README.md @@ -1240,7 +1240,7 @@ Used to perform **aspect ratio scaling** on the image element. As of this versio ```C // Load an image somewhere in your code -Texture profilePicture = LoadTexture("profilePicture.png"); +YourImage profilePicture = LoadYourImage("profilePicture.png"); // Note that when rendering, .imageData will be void* type. CLAY({ .image = { .imageData = &profilePicture, .sourceDimensions = { 60, 60 } } }) {} ``` @@ -1249,7 +1249,7 @@ CLAY({ .image = { .imageData = &profilePicture, .sourceDimensions = { 60, 60 } } ```C // Load an image somewhere in your code -Texture profilePicture = LoadTexture("profilePicture.png"); +YourImage profilePicture = LoadYourImage("profilePicture.png"); // Declare a reusable image config Clay_ImageElementConfig imageConfig = (Clay_ImageElementConfig) { .imageData = &profilePicture, .sourceDimensions = {60, 60} }; // Declare an image element using a reusable config @@ -1257,7 +1257,7 @@ CLAY({ .image = imageConfig }) {} // Declare an image element using an inline config CLAY({ .image = { .imageData = &profilePicture, .sourceDimensions = {60, 60} } }) {} // Rendering example -Texture *imageToRender = renderCommand->elementConfig.imageElementConfig->imageData; +YourImage *imageToRender = renderCommand->elementConfig.imageElementConfig->imageData; ``` **Rendering**