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

15 lines
708 B
C++
Raw Normal View History

2022-09-05 20:17:25 +02:00
#ifndef SHADERS_HPP
#define SHADERS_HPP
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
2022-09-10 13:07:13 +02:00
unsigned int linkShaderObjectsShaderProgram(const unsigned int vertexShaders, const unsigned int fragmentShader);
2022-09-17 14:14:08 +02:00
std::pair<unsigned int, unsigned int> compileShaders(const char* vertexShaderSource, const char* fragmentShaderSource);
2022-09-07 18:54:59 +02:00
unsigned int compileShader(const GLenum shaderType, const char *shaderSource);
2022-09-05 20:17:25 +02:00
int shaderCompilationSuccessful(const unsigned int shader);
int shaderProgramLinkingSuccessful(const unsigned int shaderProgram);
2022-09-06 21:52:06 +02:00
int shaderSuccessful(const unsigned int shader, const bool compilation);
2022-09-07 18:54:59 +02:00
void shaderFailedMessage(const unsigned int shader, const bool compilation);
2022-09-05 20:17:25 +02:00
#endif