ddnet/src/engine/client/opengl_sl.h

26 lines
379 B
C
Raw Normal View History

#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-10-20 09:12:27 +00:00
#include "engine/external/glew/glew.h"
2017-10-20 07:08:49 +00:00
#endif
class CGLSL {
public:
bool LoadShader(const char* pFile, int Type);
void DeleteShader();
bool IsLoaded();
GLuint GetShaderID();
CGLSL();
virtual ~CGLSL();
private:
GLuint m_ShaderID;
int m_Type;
bool m_IsLoaded;
2017-10-20 07:08:49 +00:00
};