2017-09-02 13:24:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-20 07:31:42 +00:00
|
|
|
#include <base/detect.h>
|
|
|
|
|
2017-10-20 07:08:49 +00:00
|
|
|
#if defined(CONF_PLATFORM_MACOSX)
|
|
|
|
#include <OpenGL/gl3.h>
|
|
|
|
#else
|
2017-09-02 13:24:07 +00:00
|
|
|
#include "GL/glew.h"
|
2017-10-20 07:08:49 +00:00
|
|
|
#endif
|
2017-09-02 13:24:07 +00:00
|
|
|
|
|
|
|
class CGLSL {
|
|
|
|
public:
|
|
|
|
bool LoadShader(const char* pFile, int Type);
|
|
|
|
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
|
|
|
};
|