Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MenuImage Class Reference

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 Texturetid = nullptr
 Texture.
 

Detailed Description

Represents a fixed image displayed in a menu.

Constructor & Destructor Documentation

◆ MenuImage()

MenuImage::MenuImage ( const glm::vec2 &  screenPos,
float  screenScale,
const Texture texture 
)

Creates a menu image.

Parameters
screenPosposition on screen in absolute units
screenScalescaling to apply to the image on the X axis
texturethe texture to display

The documentation for this class was generated from the following files: