MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_initializer_macos.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_INITIALIZER_MACOS_H_1616048842
12#define INCGUARD_MGL_INITIALIZER_MACOS_H_1616048842
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_MACOS)
16
18#include <mgl/render/metal/mgl_metal_defs.h>
19#include <mgl/render/metal/mgl_metal_renderer_2d.h>
20
21namespace MGL::Apple::macOS
22{
24class Initializer : public MGL::InitializerDelegate
25{
26public:
27 Initializer() noexcept;
28
29 STL::unique_ptr<Render::Renderer2DDelegate> MakeRenderer2D() const noexcept override;
30 STL::unique_ptr<Render::TextureGenerator> MakeTextureGenerator() const noexcept override;
31 void MakeTextureLoader(Render::TextureStorage &textureStorage) const noexcept override;
32
33 STL::unique_ptr<Audio::Renderer> MakeAudioRenderer() const noexcept override;
34
35 File::Result DidInitializeFileSystem() noexcept override;
36
37 STL::unique_ptr<System::ApplicationModuleInterface> MakeApplicationModule() const noexcept override;
38 STL::unique_ptr<System::ChronoModuleInterface> MakeChronoModule() const noexcept override;
39 STL::unique_ptr<System::DebugModuleInterface> MakeDebugModule() const noexcept override;
40 STL::unique_ptr<System::LocaleModuleInterface> MakeLocaleModule() const noexcept override;
41 STL::unique_ptr<System::WindowModuleInterface> MakeWindowModule() const noexcept override;
42
43 STL::unique_ptr<Input::KeyboardDelegate> MakeKeyboardDelegate() const noexcept override;
44 STL::unique_ptr<Input::MouseDelegate> MakeMouseDelegate() const noexcept override;
45 bool DidInitializeGamepadServer(Input::GamepadServer &server) const noexcept override;
46
47 /* ------------------------------------------------------------------------- */
52 /* ------------------------------------------------------------------------- */
53 constexpr void EnableGCGamepadDelegate(bool isEnabled) noexcept
54 {
55 _isEnabledGCGamepadDelegate = isEnabled;
56 }
57
58 /* ------------------------------------------------------------------------- */
63 /* ------------------------------------------------------------------------- */
64 constexpr void EnableIOKitGamepadDelegate(bool isEnabled) noexcept
65 {
66 _isEnabledIOKitGamepadDelegate = isEnabled;
67 }
68
69 /* ------------------------------------------------------------------------- */
74 /* ------------------------------------------------------------------------- */
75 constexpr void EnableGCKeyboardDelegate(bool isEnabled) noexcept
76 {
77 _isEnabledGCKeyboardDelegate = isEnabled;
78 }
79
80private:
81 bool _isEnabledIOKitGamepadDelegate;
82 bool _isEnabledGCGamepadDelegate;
83 bool _isEnabledGCKeyboardDelegate;
84};
85} // namespace MGL::Apple::macOS
86
87#endif // MGL_TARGET_MACOS
88#endif // INCGUARD_MGL_INITIALIZER_MACOS_H_1616048842
89
90// vim: et ts=4 sw=4 sts=4
イニシャライザデリゲート
Definition mgl_initializer_delegate.h:60
MGL 環境定義
MGL イニシャライザデリゲート