17 lines
361 B
C++
17 lines
361 B
C++
#pragma once
|
|
|
|
#include <GL/glew.h>
|
|
#include <string>
|
|
|
|
class ShaderUtil
|
|
{
|
|
public:
|
|
static GLuint CreateShaderProgram(const char* vertexFilename, const char* fragmentFilename);
|
|
|
|
private:
|
|
static std::string LoadFile(const char* fileName);
|
|
static void PrintShaderLog(GLuint shader);
|
|
static void PrintProgramLog(GLuint program);
|
|
static void PrintOGlErrors();
|
|
};
|