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**