MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_initializer_ios.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_INITIALIZER_IOS_H_1616144947
12#define INCGUARD_MGL_INITIALIZER_IOS_H_1616144947
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_IOS)
16
18
19namespace MGL::Apple::iOS
20{
22class Initializer : public MGL::InitializerDelegate
23{
24public:
25 Initializer() noexcept;
26
27 STL::unique_ptr<Render::Renderer2DDelegate> MakeRenderer2D() const noexcept override;
28 STL::unique_ptr<Render::TextureGenerator> MakeTextureGenerator() const noexcept override;
29 void MakeTextureLoader(Render::TextureStorage &textureStorage) const noexcept override;
30
31 STL::unique_ptr<Audio::Renderer> MakeAudioRenderer() const noexcept override;
32
33 File::Result DidInitializeFileSystem() noexcept override;
34
35 STL::unique_ptr<System::ApplicationModuleInterface> MakeApplicationModule() const noexcept override;
36 STL::unique_ptr<System::ChronoModuleInterface> MakeChronoModule() const noexcept override;
37 STL::unique_ptr<System::DebugModuleInterface> MakeDebugModule() const noexcept override;
38 STL::unique_ptr<System::LocaleModuleInterface> MakeLocaleModule() const noexcept override;
39
40 STL::unique_ptr<Input::KeyboardDelegate> MakeKeyboardDelegate() const noexcept override;
41 STL::unique_ptr<Input::MouseDelegate> MakeMouseDelegate() const noexcept override;
42 STL::unique_ptr<Input::TouchDelegate> MakeTouchDelegate() const noexcept override;
43 bool DidInitializeGamepadServer(Input::GamepadServer &server) const noexcept override;
44
45 /* ------------------------------------------------------------------------- */
50 /* ------------------------------------------------------------------------- */
51 constexpr void EnableGCGamepadDelegate(bool isEnabled) noexcept
52 {
53 _isEnabledGCGamepadDelegate = isEnabled;
54 }
55
56 /* ------------------------------------------------------------------------- */
61 /* ------------------------------------------------------------------------- */
62 constexpr void EnableKeyboard(bool isEnabled) noexcept
63 {
64 _isEnabledKeyboard = isEnabled;
65 }
66
67private:
68 bool _isEnabledGCGamepadDelegate;
69 bool _isEnabledKeyboard;
70};
71} // namespace MGL::Apple::iOS
72
73
74#endif // MGL_TARGET_IOS
75#endif // INCGUARD_MGL_INITIALIZER_IOS_H_1616144947
76
77// vim: et ts=4 sw=4 sts=4
イニシャライザデリゲート
Definition mgl_initializer_delegate.h:60
MGL 環境定義
MGL イニシャライザデリゲート