ImageRenderer
Add this in your code:
#include <engine/graphics/ui/image_renderer.h>
Description
Component that renders an image on the screen.
Variables
Name | Type | Description |
---|---|---|
color | Color | Color of the image |
Public methods
GetImage
Get the image.
const std::shared_ptr<Texture>& GetImage() const
SetImage
Set the image.
Parameters:
image
: Image to use
void SetImage(const std::shared_ptr<Texture>& image)