30 GuiImage(uint8_t * tex,
int w,
int h);
54 void setImage(uint8_t * img,
int w,
int h);
Decodes compressed image data (PNG) into a platform-native texture created from it.
int stripe
Alpha value (0-255) to apply a stripe effect to the texture.
bool ownsTexture
Whether this object created texture itself (TEXTURE/COLOR) or borrowed it from a GuiImageData.
void setTile(int t)
Sets the number of times to draw the image horizontally.
void * texture
Attached platform-native texture.
PixelColor baseColor
Stored color for IMAGE::COLOR types.
void setAngle(float a)
Sets the image rotation angle for drawing.
IMAGE imgType
Type of image data (TEXTURE, COLOR)
void setTexture(uint8_t *tex, int w, int h)
This is an overloaded member function, provided for convenience. It differs from the above function o...
float imageangle
Angle to draw the image.
void setImage(GuiImageData *img)
Sets up a new image using the GuiImageData object specified.
void draw() override
Constantly called to draw the image.
void setStripe(int s)
Sets a stripe effect on the image, overlaying alpha blended rectangles Does not alter the image data.
int tile
Number of times to draw (tile) the image horizontally.
IMAGE
Whether a GuiImage draws a texture or a flat color.
8-bit-per-channel RGBA color used by the video interfaces.