1234567891011121314151617181920212223242526 |
- #pragma once
-
- #include <SDL.h>
- #include <stdint.h>
-
- #include "util.h"
-
- namespace Cygnet {
-
- class GlTexture;
-
- class Window {
- public:
- Window(const char *name, int width, int height);
- ~Window();
-
- void makeCurrent();
- void clear();
- void flip();
-
- private:
- CPtr<SDL_Window, SDL_DestroyWindow> win_;
- SDL_GLContext glctx_;
- };
-
- }
|