2018-02-12 22:14:14 +00:00
|
|
|
#ifndef ENGINE_CLIENT_OPENGL_SL_H
|
|
|
|
#define ENGINE_CLIENT_OPENGL_SL_H
|
2017-09-02 13:24:07 +00:00
|
|
|
|
2018-02-12 22:14:14 +00:00
|
|
|
#include <GL/glew.h>
|
2017-09-02 13:24:07 +00:00
|
|
|
|
|
|
|
class CGLSL {
|
|
|
|
public:
|
2017-12-02 21:19:57 +00:00
|
|
|
bool LoadShader(class IStorage *pStorage, const char *pFile, int Type);
|
2017-09-02 13:24:07 +00:00
|
|
|
void DeleteShader();
|
|
|
|
|
|
|
|
bool IsLoaded();
|
|
|
|
GLuint GetShaderID();
|
|
|
|
|
|
|
|
CGLSL();
|
2017-09-14 17:35:31 +00:00
|
|
|
virtual ~CGLSL();
|
2017-09-02 13:24:07 +00:00
|
|
|
private:
|
|
|
|
GLuint m_ShaderID;
|
|
|
|
int m_Type;
|
|
|
|
bool m_IsLoaded;
|
2017-10-20 07:08:49 +00:00
|
|
|
};
|
2018-02-12 22:14:14 +00:00
|
|
|
|
|
|
|
#endif // ENGINE_CLIENT_OPENGL_SL_H
|