TRX/lib/glrage_gl/Shader.hpp

25 lines
409 B
C++
Raw Normal View History

2021-11-12 20:03:04 +01:00
#pragma once
#include "Object.hpp"
#include "gl_core_3_3.h"
#include <string>
namespace glrage {
namespace gl {
class Shader : public Object
{
public:
Shader(GLenum shaderType);
~Shader();
void bind();
2021-11-14 23:42:18 +01:00
Shader& fromFile(const std::string& path);
2021-11-12 20:03:04 +01:00
Shader& fromString(const std::string& program);
std::string infoLog();
bool compiled();
};
} // namespace gl
2021-11-14 23:42:18 +01:00
} // namespace glrage