Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor::Font::BinaryLoader Class Reference

Font loader. More...

#include <Font.hpp>

Inheritance diagram for castor::Font::BinaryLoader:
Inheritance graph
[legend]
Collaboration diagram for castor::Font::BinaryLoader:
Collaboration graph
[legend]

Public Member Functions

CU_API BinaryLoader ()=default
 Constructor.
 
CU_API bool operator() (Font &font, Path const &path, uint32_t height)
 Loads a font.
 
- Public Member Functions inherited from castor::BinaryLoader< Font >
 BinaryLoader ()=default
 Constructor.
 
 ~BinaryLoader () noexcept override=default
 Destructor.
 
- Public Member Functions inherited from castor::Loader< T, FT >
 Loader ()=default
 Constructor.
 
virtual ~Loader () noexcept=default
 Destructor.
 
virtual bool operator() (T &object, Type &file)
 Reads a resource from a file.
 

Additional Inherited Members

- Protected Types inherited from castor::BinaryLoader< Font >
using Type
 
- Protected Types inherited from castor::Loader< T, FT >
using Type = typename FileTyper< FT >::Type
 
- Protected Member Functions inherited from castor::NonMovable
 NonMovable ()=default
 Constructor.
 
 ~NonMovable () noexcept=default
 Destructor.
 

Detailed Description

Font loader.

Remarks
Uses FreeType to load font

Constructor & Destructor Documentation

◆ BinaryLoader()

CU_API castor::Font::BinaryLoader::BinaryLoader ( )
default

Constructor.

Member Function Documentation

◆ operator()()

CU_API bool castor::Font::BinaryLoader::operator() ( Font & font,
Path const & path,
uint32_t height )

Loads a font.

Parameters
[in,out]fontThe font to load
[in]pathThe path of the font file
[in]heightThe font precision

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