oglc/src/gfx.h

21 lines
333 B
C
Raw Normal View History

2021-07-04 02:53:37 +01:00
#pragma once
#define GLEW_STATIC
#include "GL/glew.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "io.h"
struct GraphicsContext
{
SDL_Window* window;
SDL_GLContext* context;
};
SDL_Window* createWindow();
struct GraphicsContext createContext();
GLuint compileShader(const char* path, GLenum type);