Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ImageRenderer

Add this in your code:

#include <engine/graphics/ui/image_renderer.h>

Description

Component that renders an image on the screen.

Variables


NameTypeDescription
colorColorColor 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)