Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Namespaces | Macros | Enumerations | Functions | Variables
font.hpp File Reference
#include "client/core.hpp"
#include <cstddef>
#include <string>
#include <unordered_map>

Go to the source code of this file.

Namespaces

namespace  gui
 
namespace  gui::font
 

Macros

#define ALL_FONTS()
 

Enumerations

enum class  gui::font::Font { gui::font::MENU , gui::font::TEXT , gui::font::TITLE }
 
enum class  gui::font::Color {
  gui::font::BLACK , gui::font::RED , gui::font::GREEN , gui::font::BLUE ,
  gui::font::GRAY , gui::font::WHITE , gui::font::YELLOW
}
 
enum class  gui::font::Size {
  gui::font::SMALL , gui::font::SMALLMEDIUM , gui::font::MEDIUM , gui::font::LARGE ,
  gui::font::XLARGE
}
 

Functions

std::string gui::font::getFilepath (Font font)
 
glm::vec3 gui::font::getRGB (Color color)
 
int gui::font::getFontSizePx (Size size)
 
float gui::font::getScaleFactor (Size size)
 
float gui::font::getRelativePixels (float pixels)
 
float gui::font::getRelativePixelsHorizontal (float pixels)
 

Variables

const int gui::font::UNIT_LARGE_SIZE_PX = 128
 
const std::unordered_map< Size, float > gui::font::SIZE_TO_SCALE
 

Macro Definition Documentation

◆ ALL_FONTS

#define ALL_FONTS ( )
Value:
{ \
Font::MENU, Font::TEXT, Font::TITLE \
}