1
0
rwu_particles_informatikpro.../initOpenGL.h
Niklas Birk 05038da3df Shader
2020-03-31 15:09:06 +02:00

25 lines
682 B
C

#include "glad/glad.h"
#include <GLFW/glfw3.h>
#ifndef INFORMATIKPROJEKT_INITOPENGL_H
#define INFORMATIKPROJEKT_INITOPENGL_H
void initGlad();
void initGLFW();
void setErrorCallbackGL();
void setFramebufferSizeCallbackGL(GLFWwindow *window);
void setCurrentContextGL(GLFWwindow *window);
GLFWwindow *createGLFWWindow(int width, int height, char *title);
void terminateGLFW(GLFWwindow *window);
void errorCallback(int error, const char* description);
void framebufferSizeCallback(GLFWwindow *window, int width, int height);
void initVertexBufferObject(unsigned int *VBO, float *vertices);
void initVertexArrayBuffer(unsigned int *VAO);
#endif //INFORMATIKPROJEKT_INITOPENGL_H