-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleProgram.h
More file actions
33 lines (26 loc) · 765 Bytes
/
Copy pathModuleProgram.h
File metadata and controls
33 lines (26 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __ModuleProgram_H__
#define __ModuleProgram_H__
#include "Module.h"
#include "Globals.h"
#include <string>
#include <fstream>
#include <streambuf>
#include <vector>
class ModuleProgram : public Module
{
public:
ModuleProgram() = default;
~ModuleProgram() = default;
bool Init();
bool CleanUp();
//Programs
unsigned int uberProg = 0;
unsigned int defaultProg = 0;
unsigned int skyboxProg = 0;
private:
unsigned int createProgramWithShaders(const char * vertexShader, const char * fragmentShader) const;
unsigned int createShader(const char * filename, unsigned int shaderType) const;
unsigned int createProgram(unsigned int vShader, unsigned int fShader) const;
char* readFile(const char* filename) const;
};
#endif // __ModuleProgram_H__