GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
DesignLab
font_loader.h
[詳解]
1
3
4
// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5
// Released under the MIT license
6
// https://opensource.org/licenses/mit-license.php
7
8
#ifndef DESIGNLAB_FONT_LOADER_H_
9
#define DESIGNLAB_FONT_LOADER_H_
10
11
#include <string>
12
#include <map>
13
14
#include "
singleton.h
"
15
16
17
namespace
designlab
18
{
19
31
class
FontLoader
final :
public
Singleton
<FontLoader>
32
{
33
public
:
45
[[nodiscard]]
int
GetFontHandle
(
const
std::string& file_path);
46
47
private
:
48
friend
Singleton<FontLoader>
;
49
FontLoader
() =
default
;
50
~FontLoader
() =
default
;
51
FontLoader
(
const
FontLoader
& r) =
default
;
52
FontLoader
& operator=(
const
FontLoader
& r) =
default
;
53
55
std::map<std::string, int> font_handle_map_;
56
};
57
58
}
// namespace designlab
59
60
61
#endif
// DESIGNLAB_FONT_LOADER_H_
designlab::FontLoader
Dxlibのフォントを読み込むクラス.
Definition
font_loader.h:32
designlab::FontLoader::GetFontHandle
int GetFontHandle(const std::string &file_path)
Dxlibでは特定のフォントで描画する際に,フォントのハンドルを指定する. この関数では,フォントのファイルパスを指定すると, フォントのハンドル番号を返す. フォントがまだ読み込まれていない場...
Definition
font_loader.cpp:16
designlab::Singleton
Singletonクラス作成のためのテンプレートクラス.
Definition
singleton.h:28
designlab
Definition
abstract_dxlib_gui.cpp:18
singleton.h
構築:
1.9.8