Euphoria
Classes | Typedefs | Functions
eu::core Namespace Reference

Classes

struct  Image
 A simple sRGB(A) image. More...
 
struct  LoadedFont
 
struct  LoadedGlyph
 
struct  PixelColor
 A simple integer sRGBA color. More...
 

Typedefs

using KerningMap = std::map< std::pair< int, int >, float >
 

Functions

void paste_image (Image *dst, int dst_x, int dst_y, const Image &src)
 Copies pixel data from a source image to a destination image at specified coordinates.
 
LoadedFont get_characters_from_font (const MemoryChunk &file_memory, int font_size, const std::string &chars)
 
LoadedFont get_characters_from_single_image (const std::string &image_file, const std::string &image_alias, float image_scale, float image_bearing_x, float image_bearing_y, float image_advance)
 
LoadedFont get_characters_from_single_image (const Image &image, const std::string &image_alias, float image_scale, float image_bearing_x, float image_bearing_y, float image_advance)
 
template<typename TString , typename TOnCodepointFunc >
bool calc_utf8_to_codepoints (const TString &string, TOnCodepointFunc on_codepoint)
 

Typedef Documentation

◆ KerningMap

using eu::core::KerningMap = typedef std::map<std::pair<int, int>, float>

Definition at line 45 of file loadedfont.h.

Function Documentation

◆ calc_utf8_to_codepoints()

bool eu::core::calc_utf8_to_codepoints ( const TString string,
TOnCodepointFunc  on_codepoint 
)

Definition at line 11 of file utf8.h.

◆ get_characters_from_font()

LoadedFont eu::core::get_characters_from_font ( const MemoryChunk file_memory,
int  font_size,
const std::string &  chars 
)

◆ get_characters_from_single_image() [1/2]

LoadedFont eu::core::get_characters_from_single_image ( const Image image,
const std::string &  image_alias,
float  image_scale,
float  image_bearing_x,
float  image_bearing_y,
float  image_advance 
)

◆ get_characters_from_single_image() [2/2]

LoadedFont eu::core::get_characters_from_single_image ( const std::string &  image_file,
const std::string &  image_alias,
float  image_scale,
float  image_bearing_x,
float  image_bearing_y,
float  image_advance 
)

◆ paste_image()

void eu::core::paste_image ( Image dst,
int  dst_x,
int  dst_y,
const Image src 
)

Copies pixel data from a source image to a destination image at specified coordinates.

Sometimes called blit.

Parameters
dstThe destination image.
dst_xThe x-coordinate in the destination image where the source image will be pasted.
dst_yThe y-coordinate in the destination image where the source image will be pasted.
srcThe source image.