11#ifndef INCGUARD_MGL_INITIALIZER_MACOS_H_1616048842
12#define INCGUARD_MGL_INITIALIZER_MACOS_H_1616048842
15#if defined(MGL_TARGET_MACOS)
18#include <mgl/render/metal/mgl_metal_defs.h>
19#include <mgl/render/metal/mgl_metal_renderer_2d.h>
21namespace MGL::Apple::macOS
27 Initializer() noexcept;
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;
33 STL::unique_ptr<Audio::Renderer> MakeAudioRenderer() const noexcept override;
35 File::Result DidInitializeFileSystem() noexcept override;
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;
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;
53 constexpr
void EnableGCGamepadDelegate(
bool isEnabled) noexcept
55 _isEnabledGCGamepadDelegate = isEnabled;
64 constexpr void EnableIOKitGamepadDelegate(
bool isEnabled)
noexcept
66 _isEnabledIOKitGamepadDelegate = isEnabled;
75 constexpr void EnableGCKeyboardDelegate(
bool isEnabled)
noexcept
77 _isEnabledGCKeyboardDelegate = isEnabled;
81 bool _isEnabledIOKitGamepadDelegate;
82 bool _isEnabledGCGamepadDelegate;
83 bool _isEnabledGCKeyboardDelegate;
イニシャライザデリゲート
Definition mgl_initializer_delegate.h:60