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

A game menu containing buttons, toggles and images. More...

#include <GameMenu.hpp>

Public Member Functions

void update (const glm::vec2 &screenResolution, float initialRatio)
 

Public Attributes

std::vector< MenuButtonbuttons
 The menu buttons.
 
std::vector< MenuToggletoggles
 The menu toggles.
 
std::vector< MenuImageimages
 The menu images.
 
std::vector< MenuLabellabels
 The menu custom labels.
 
const TexturebackgroundImage = nullptr
 The background texure.
 

Detailed Description

A game menu containing buttons, toggles and images.

Member Function Documentation

◆ update()

void GameMenu::update ( const glm::vec2 &  screenResolution,
float  initialRatio 
)

Update dimensions of element based on the current window size.

Parameters
screenResolutionthe current window resolution
initialRatiothe window ratio used to describe the initial layout

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