A 2D tile-based sandbox game.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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