GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
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
17namespace designlab
18{
19
37class ModelLoader final : public Singleton<ModelLoader>
38{
39public:
46 [[nodiscard]] int GetModelHandle(const std::string& file_path);
47
48private:
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_
Dxlibの3Dモデルを読み込むクラス.
int GetModelHandle(const std::string &file_path)
Dxlibは3Dモデルを描画する際に,モデルのハンドルを指定する. モデルがまだ読み込まれていない場合は, モデルを読み込んでから,ハンドル番号を返す. すでに読み込みずみのモデルを読み込んだ場...
Singletonクラス作成のためのテンプレートクラス.
Definition singleton.h:28