Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
#include <string>
5
6
class
TTF_Font;
// NOLINT
7
class
TTF_CloseFont;
// NOLINT
8
9
class
Font
final {
10
public
:
11
[[nodiscard]] std::string
get_name
()
const
;
12
[[nodiscard]] int8_t
get_size
()
const
;
13
[[nodiscard]] TTF_Font&
get_ttf_font
()
const
;
14
15
private
:
16
int8_t size_;
17
std::string name_;
18
std::unique_ptr<TTF_Font, void (*)(TTF_Font*)> font_;
19
20
friend
class
AssetService
;
21
22
explicit
Font
(std::string name, int8_t size, TTF_Font* font);
23
};
AssetService
Service responsible for managing game assets such as textures and spritesheets.
Definition
assetService.h:20
Font
Definition
font.h:9
Font::get_ttf_font
TTF_Font & get_ttf_font() const
Font::get_name
std::string get_name() const
Font::get_size
int8_t get_size() const
include
engine
core
rendering
font.h
Generated by
1.9.8