Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
definitions.hpp File Reference
#include <SDL3/SDL.h>
#include <SDL3_image/SDL_image.h>
#include <SDL3_ttf/SDL_ttf.h>
#include <string>
#include "../definitions.hpp"
#include "../../services/graphics/definitions.hpp"

Go to the source code of this file.

Classes

class  Font
 

Enumerations

enum class  FontHinting {
  INVALID = -1 , NORMAL , LIGHT , MONO ,
  NONE , LIGHT_SUBPIXEL
}
 
enum class  FontStyle {
  NORMAL = 0x00 , BOLD = 0x01 , ITALIC = 0x02 , UNDERLINE = 0x04 ,
  STRIKETHROUGH = 0x08
}
 
enum class  FontDirection {
  INVALID , LTR = 4 , RTL , TTB ,
  BTT
}
 
enum class  FontAlignment { INVALID = -1 , LEFT , CENTER , RIGHT }
 

Enumeration Type Documentation

◆ FontAlignment

enum class FontAlignment
strong

Mirrors the TTF_HorizontalAlignment enum. Defines the horizontal alignment of the font.

Enumerator
INVALID 
LEFT 
CENTER 
RIGHT 

◆ FontDirection

enum class FontDirection
strong

Mirrors the TTF_Direction enum. Defines the direction of the text (left to right, right to left, etc...).

Enumerator
INVALID 
LTR 
RTL 
TTB 
BTT 

◆ FontHinting

enum class FontHinting
strong

Mirrors the TTF_HintingFlags enum. Defines font hinting.

Enumerator
INVALID 
NORMAL 
LIGHT 
MONO 
NONE 
LIGHT_SUBPIXEL 

◆ FontStyle

enum class FontStyle
strong

Mirrors the TTF_FontStyleFlags enum. Defines the font style used (bold, italic, underline, etc...).

Enumerator
NORMAL 
BOLD 
ITALIC 
UNDERLINE 
STRIKETHROUGH