Rendu
A lightweight rendering engine for experimentations
|
Represents a fixed image displayed in a menu. More...
#include <GameMenu.hpp>
Public Member Functions | |
MenuImage (const glm::vec2 &screenPos, float screenScale, const Texture *texture) | |
Public Attributes | |
glm::vec2 | pos = glm::vec2(0.0f) |
Image position. | |
glm::vec2 | size = glm::vec2(1.0f) |
Screen size. | |
glm::vec2 | scale = glm::vec2(1.0f) |
Scaling. | |
const Texture * | tid = nullptr |
Texture. | |
Represents a fixed image displayed in a menu.
MenuImage::MenuImage | ( | const glm::vec2 & | screenPos, |
float | screenScale, | ||
const Texture * | texture | ||
) |
Creates a menu image.
screenPos | position on screen in absolute units |
screenScale | scaling to apply to the image on the X axis |
texture | the texture to display |