Added Shader
This commit is contained in:
1 parent
0724c6a84a
commit
a9106ee20e
6 files changed
+79
-4
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#ifdef NFENGINE
|
||||
#include "GL/glew.h"
|
||||
#endif
|
||||
|
||||
#include "Utility.h"
|
||||
|
||||
namespace nf {
|
||||
class Shader {
|
||||
public:
|
||||
Shader(const char* vertexSource, const char* fragmentSource);
|
||||
|
||||
void bind();
|
||||
|
||||
~Shader();
|
||||
private:
|
||||
unsigned int m_id;
|
||||
//Associated resource?
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user