質問編集履歴

3

提示コードを追加

2022/08/13 03:12

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -159,6 +159,78 @@
159
159
  ```
160
160
 
161
161
 
162
-
162
+ ##### Main.cpp
163
-
163
+ ```cpp
164
-
164
+ #include <iostream>
165
+ #include "MainScreen.hpp"
166
+ #include <memory>
167
+ //#include <Magick++.h>
168
+ #include "../lib/src/Console.hpp"
169
+
170
+
171
+ int main()
172
+ {
173
+ Console::Init();
174
+ Console::Init_ErrorLog("log/error.log");
175
+ Console::Init_Log("log/log.log");
176
+
177
+ Console::RenderBuffer(NULL);
178
+
179
+
180
+ std::unique_ptr<MainScreen> main = std::make_unique<MainScreen>();
181
+
182
+ while(true)
183
+ {
184
+ main->Loop();
185
+
186
+ if (main->getExit() == true)
187
+ {
188
+ break;
189
+ }
190
+ }
191
+
192
+ Console::Close();
193
+
194
+ return 0;
195
+ }
196
+
197
+ ```
198
+ ##### MainScreen.hpp
199
+ ```cpp
200
+ #ifndef ___MAINSCREEN_HPP___
201
+ #define ___MAINSCREEN_HPP___
202
+ #include <vector>
203
+ #include <filesystem>
204
+ #include <glm/glm.hpp>
205
+ #include "../lib/src/Console.hpp"
206
+
207
+
208
+ class MainScreen
209
+ {
210
+
211
+ public:
212
+ MainScreen();
213
+ ~MainScreen();
214
+
215
+ void Loop();
216
+
217
+ bool getExit();
218
+ private:
219
+
220
+ void Update();
221
+ void Render();
222
+ void KeyInput();
223
+
224
+ Console::ListWindow menu;
225
+
226
+
227
+ glm::ivec2 cursorPosition;
228
+ bool isExit = false;
229
+ };
230
+
231
+
232
+ #endif
233
+
234
+ ```
235
+
236
+

2

タグを修正

2022/08/13 02:32

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

1

文章を修正

2022/08/13 02:18

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
  スペルミスを確認
7
7
  ##### 知りたいこと
8
8
  1,エラー原因が知りたいなぜ定義されてないなのか?
9
- 2,Console::ListItem とListItemは何が違うのか?
9
+ 2,`Console::ListItem``ListItem`は何が違うのか?
10
10
 
11
11
 
12
12
  ##### Error