Loading...
Searching...
No Matches
glsl.h
Go to the documentation of this file.
1#pragma once
2
3#include <GL/glew.h>
4#include <fstream>
5
6using namespace std;
7
8class glsl
9{
10private:
11 static char* contents;
12public:
14 ~glsl();
15 static char* readFile(const char* filename);
16 static bool compiledStatus(GLint shaderID);
17 static GLuint makeVertexShader(const char* shaderSource);
18 static GLuint makeFragmentShader(const char* shaderSource);
19 static GLuint makeShaderProgram(GLuint vertexShaderID, GLuint fragmentShaderID);
20};
Definition glsl.h:9
static GLuint makeShaderProgram(GLuint vertexShaderID, GLuint fragmentShaderID)
Definition glsl.cpp:87
static bool compiledStatus(GLint shaderID)
Definition glsl.cpp:31
static GLuint makeFragmentShader(const char *shaderSource)
Definition glsl.cpp:67
static char * contents
Definition glsl.h:11
static GLuint makeVertexShader(const char *shaderSource)
Definition glsl.cpp:47
static char * readFile(const char *filename)
Definition glsl.cpp:7