24 lines
497 B
C
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();
|
|
|