Gamedev Framework (gf)  0.10.0
A C++14 framework for 2D games
Public Types | Public Attributes | List of all members
gf::ConsoleFontFormat Struct Reference

A console font format. More...

#include <gf/ConsoleFont.h>

Public Types

enum  Transparency {
  Alpha,
  Grayscale,
  ColorKey
}
 A transparency method. More...
 
enum  Layout {
  InColumn,
  InRow
}
 A layout. More...
 
enum  Mapping {
  CodePage437,
  ModifiedCodePage437,
  Special,
  Custom
}
 A mapping. More...
 

Public Attributes

Transparency transparency
 The transparency method of the font. More...
 
Layout layout
 The layout of the font. More...
 
Mapping mapping
 The mapping of the font. More...
 

Detailed Description

A console font format.

See also
gf::ConsoleFont, gf::PredefinedConsoleFontFormat

Member Enumeration Documentation

◆ Layout

A layout.

Enumerator
InColumn 

In column.

InRow 

In row.

◆ Mapping

A mapping.

Enumerator
CodePage437 

Code page 437.

ModifiedCodePage437 

Code page 437 modified by libtcod.

Special 

The special libtcod mapping.

Custom 

A user-defined mapping.

◆ Transparency

A transparency method.

Enumerator
Alpha 

Given by the alpha channel of the image.

Grayscale 

Given by the level of gray (bitmap font only)

ColorKey 

Given by a color key.

Member Data Documentation

◆ layout

Layout gf::ConsoleFontFormat::layout

The layout of the font.

◆ mapping

Mapping gf::ConsoleFontFormat::mapping

The mapping of the font.

◆ transparency

Transparency gf::ConsoleFontFormat::transparency

The transparency method of the font.