GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
DesignLab
model_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_MODEL_LOADER_H_
9
#define DESIGNLAB_MODEL_LOADER_H_
10
11
#include <string>
12
#include <map>
13
14
#include "
singleton.h
"
15
16
17
namespace
designlab
18
{
19
37
class
ModelLoader
final :
public
Singleton
<ModelLoader>
38
{
39
public
:
46
[[nodiscard]]
int
GetModelHandle
(
const
std::string& file_path);
47
48
private
:
49
friend
Singleton<ModelLoader>
;
50
ModelLoader
() =
default
;
51
~ModelLoader
() =
default
;
52
ModelLoader
(
const
ModelLoader
& r) =
default
;
53
ModelLoader
& operator=(
const
ModelLoader
& r) =
default
;
54
56
std::map<std::string, int> model_handle_map_;
57
};
58
59
}
// namespace designlab
60
61
62
#endif
// DESIGNLAB_MODEL_LOADER_H_
designlab::ModelLoader
Dxlibの3Dモデルを読み込むクラス.
Definition
model_loader.h:38
designlab::ModelLoader::GetModelHandle
int GetModelHandle(const std::string &file_path)
Dxlibは3Dモデルを描画する際に,モデルのハンドルを指定する. モデルがまだ読み込まれていない場合は, モデルを読み込んでから,ハンドル番号を返す. すでに読み込みずみのモデルを読み込んだ場...
Definition
model_loader.cpp:16
designlab::Singleton
Singletonクラス作成のためのテンプレートクラス.
Definition
singleton.h:28
designlab
Definition
abstract_dxlib_gui.cpp:18
singleton.h
構築:
1.9.8