aboutsummaryrefslogtreecommitdiff
path: root/09-september/tomcat/renderer/window.h
blob: 608937ad81fbe3fdeef87ecf040e53b6c4959bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef WINDOW_H
#define WINDOW_H

#include <SDL2/SDL.h>
#include <GL/glew.h>

typedef struct
{
    SDL_Window* window;
    SDL_GLContext context;
    Uint32 Width, Height;
    const char* title;
} Window;

extern Window* window_new(const char* title, Uint32 width, Uint32 height);
extern void window_resize(Window* window, Uint32 width, Uint32 height);
extern void window_update(Window* window);
extern void window_destroy(Window* window);

#endif // WINDOW_H