light/Engine/src/Platform/GraphicsAPI/OpenGL/glShader.h

25 lines
420 B
C
Raw Normal View History

2021-05-27 19:54:05 +04:30
#pragma once
#include "Base.h"
#include "Graphics/Shader.h"
#include <glm/glm.hpp>
2021-05-27 19:54:05 +04:30
namespace Light {
class glShader : public Shader
{
private:
unsigned int m_ShaderID;
public:
2021-05-31 19:09:27 +04:30
glShader(const std::string& vetexSource, const std::string& fragmentSource);
2021-05-27 19:54:05 +04:30
~glShader();
void Bind() override;
void UnBind() override;
void SetUniformMat4(const std::string& name, const glm::mat4& value) override;
2021-05-27 19:54:05 +04:30
};
}