2020-01-08 15:58:38 +00:00
|
|
|
|
|
|
|
#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);
|
|
|
|
|
2020-02-11 18:01:50 +00:00
|
|
|
void initVertexBufferObject(unsigned int *VBO, float *vertices);
|
|
|
|
void initVertexArrayBuffer(unsigned int *VAO);
|
2020-01-08 15:58:38 +00:00
|
|
|
|
2020-03-08 20:03:48 +00:00
|
|
|
GLuint compileShader(const GLchar *shaderSource, GLenum shaderType);
|
|
|
|
GLuint linkShaders(GLuint *shaders, GLsizei count);
|
|
|
|
void deleteShaders(GLuint *shaders, GLsizei count);
|
|
|
|
|
2020-01-08 15:58:38 +00:00
|
|
|
#endif //INFORMATIKPROJEKT_INITOPENGL_H
|