NativeWindowSdl.h 492 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <anki/core/NativeWindow.h>
  7. #include <SDL.h>
  8. namespace anki
  9. {
  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