oglc/src/gfx.h
2021-08-09 18:29:58 +01:00

24 lines
497 B
C

#pragma once
#define GLEW_STATIC
#include "GL/glew.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "io.h"
#include "random.h"
SDL_Window* gfxInit(int width, int height);
unsigned int compileQuadShaderProgram(const char* vsPath, const char* fsPath);
unsigned int compileComputeShaderProgram();
GLuint createNoiseTexture(int width, int height);
GLuint createWriteOnlyTexture(int width, int height);
void printWorkGroupLimits();
void setVertexAttributes();
void initBuffers();