NativeWindowSdl.h 564 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #ifndef ANKI_CORE_NATIVE_WINDOW_SDL_H
  6. #define ANKI_CORE_NATIVE_WINDOW_SDL_H
  7. #include "anki/core/NativeWindow.h"
  8. #include <SDL.h>
  9. namespace anki {
  10. static_assert(sizeof(SDL_GLContext) == sizeof(void*), "Incorrect assumption");
  11. /// Native window implementation for SDL
  12. class NativeWindowImpl
  13. {
  14. public:
  15. SDL_Window* m_window = nullptr;
  16. SDL_GLContext m_context = 0;
  17. };
  18. } // end namespace anki
  19. #endif