A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Window.h 327B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <SDL.h>
  3. #include <stdint.h>
  4. #include "util.h"
  5. namespace Cygnet {
  6. class GlTexture;
  7. class Window {
  8. public:
  9. Window(const char *name, int width, int height);
  10. ~Window();
  11. void makeCurrent();
  12. void clear();
  13. void flip();
  14. private:
  15. CPtr<SDL_Window, SDL_DestroyWindow> win_;
  16. SDL_GLContext glctx_;
  17. };
  18. }