engineer-thesis-WUT/Engine/engine/shaders.hpp

16 lines
728 B
C++

#ifndef SHADERS_HPP
#define SHADERS_HPP
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include "misc.hpp"
unsigned int linkShaderObjectsShaderProgram(const unsigned int vertexShaders, const unsigned int fragmentShader);
std::pair<unsigned int, unsigned int> compileShaders(const char* vertexShaderSource, const char* fragmentShaderSource);
unsigned int compileShader(const GLenum shaderType, const char *shaderSource);
int shaderCompilationSuccessful(const unsigned int shader);
int shaderProgramLinkingSuccessful(const unsigned int shaderProgram);
int shaderSuccessful(const unsigned int shader, const bool compilation);
void shaderFailedMessage(const unsigned int shader, const bool compilation);
#endif