mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-13 05:57:10 +03:00
24 lines
409 B
C++
24 lines
409 B
C++
#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();
|
|
Shader& fromFile(const std::string& path);
|
|
Shader& fromString(const std::string& program);
|
|
std::string infoLog();
|
|
bool compiled();
|
|
};
|
|
|
|
} // namespace gl
|
|
} // namespace glrage
|