MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_initializer_tvos.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_INITIALIZER_TVOS_H_1616145664
12#define INCGUARD_MGL_INITIALIZER_TVOS_H_1616145664
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_TVOS)
16
18
19namespace MGL::Apple::tvOS
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 bool DidInitializeGamepadServer(Input::GamepadServer &server) const noexcept override;
42
43 /* ------------------------------------------------------------------------- */
48 /* ------------------------------------------------------------------------- */
49 constexpr void EnableGCGamepadDelegate(bool isEnabled) noexcept
50 {
51 _isEnabledGCGamepadDelegate = isEnabled;
52 }
53
54 /* ------------------------------------------------------------------------- */
59 /* ------------------------------------------------------------------------- */
60 constexpr void EnableKeyboard(bool isEnabled) noexcept
61 {
62 _isEnabledKeyboard = isEnabled;
63 }
64
65private:
66 bool _isEnabledGCGamepadDelegate;
67 bool _isEnabledKeyboard;
68};
69} // namespace MGL::Apple::tvOS
70
71
72#endif // MGL_TARGET_TVOS
73#endif // INCGUARD_MGL_INITIALIZER_TVOS_H_1616145664
74
75// vim: et ts=4 sw=4 sts=4
イニシャライザデリゲート
Definition mgl_initializer_delegate.h:60
MGL 環境定義
MGL イニシャライザデリゲート