aboutsummaryrefslogtreecommitdiff
#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