| 12345678910111213141516171819202122232425262728 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <AnKi/Core/NativeWindow.h>
- #include <SDL.h>
- namespace anki {
- /// Native window implementation for SDL
- class NativeWindowSdl : public NativeWindow
- {
- public:
- SDL_Window* m_window = nullptr;
- ~NativeWindowSdl();
- ANKI_USE_RESULT Error init(const NativeWindowInitInfo& init);
- private:
- static constexpr U32 INIT_SUBSYSTEMS =
- SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_EVENTS | SDL_INIT_GAMECONTROLLER;
- };
- } // end namespace anki
|