GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
dxlib_gui_camera_parameter_displayer.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_DXLIB_GUI_CAMERA_PARAMETER_DISPLAYER_H_
9#define DESIGNLAB_DXLIB_GUI_CAMERA_PARAMETER_DISPLAYER_H_
10
11#include <array>
12#include <memory>
13#include <string>
14#include <vector>
15
16#include "abstract_dxlib_gui.h"
17#include "dxlib_camera.h"
18#include "simple_button.h"
19
20
21namespace designlab
22{
23
27{
28public:
31
37 int window_x,
38 int window_y,
39 const std::shared_ptr<DxlibCamera> camera_ptr);
40
41 void Update() override;
42
43 void Draw() const override;
44
45private:
46 void DrawCameraParameter() const;
47
48 bool IsInWindow() const;
49
50 const int window_x_;
51 const int window_y_;
52
53 const std::shared_ptr<const DxlibCamera> camera_ptr_;
54
55 const int kFontSize{ 16 };
56 const std::string kFontPath{ "font/Yu_Gothic_UI.dft" };
57};
58
59} // namespace designlab
60
61
62#endif // DESIGNLAB_DXLIB_GUI_CAMERA_PARAMETER_DISPLAYER_H_
Dxlibを使ったGUIの抽象クラス.
カメラの情報を表示するGUIの処理・描画を行うクラス.
DxlibGuiCameraParameterDisplayer()=delete
< デフォルトコンストラクタは生成できない.
void Update() override
GUIの更新,毎フレーム実行すること.