oglc/src/gfx.h

23 lines
473 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"
2021-07-10 16:16:01 +01:00
SDL_Window* gfxInit(int width, int height);
unsigned int compileQuadShaderProgram(const char* vsPath, const char* fsPath);
unsigned int compileComputeShaderProgram();
2021-07-04 02:53:37 +01:00
2021-07-10 16:16:01 +01:00
void createTextureFromFile(const char* path);
GLuint createWriteOnlyTexture(int width, int height);
void printWorkGroupLimits();
2021-07-05 01:05:37 +01:00
2021-07-09 01:00:19 +01:00
void setVertexAttributes();
void initBuffers();