ISdlApi.hpp 679 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #ifndef LS_ATLANTIS_ENGINE_INTERFACE_SDL_API_HPP
  6. #define LS_ATLANTIS_ENGINE_INTERFACE_SDL_API_HPP
  7. #include <Export.hpp>
  8. #include <SDL3/SDL.h>
  9. namespace ls::atlantis::interfaces
  10. {
  11. class LS_ATLANTIS_DYNAMIC_GOAL ISdlApi
  12. {
  13. public:
  14. ISdlApi();
  15. virtual ~ISdlApi();
  16. virtual SDL_Window *CreateWindow(const char *_title, int _width, int _height, SDL_WindowFlags _flags) = 0;
  17. virtual void DestroyWindow(SDL_Window *_window) = 0;
  18. virtual const char *GetError() = 0;
  19. virtual bool Init(SDL_InitFlags flags) = 0;
  20. virtual void Quit() = 0;
  21. };
  22. }
  23. #endif