15 OpenGLShader(
const std::string& vertexSrc,
const std::string& fragmentSrc);
16 OpenGLShader(
const std::string& vertexSrcFile,
const std::string& fragmentSrcFile, std::shared_ptr<UniformBufferObject> ubo,
bool bIsFile,
17 const std::string& shaderName);
20 virtual void Bind()
const override;
21 virtual void Bind(
const std::string& texShaderNames)
const override;
22 virtual void UnBind()
const override;
24 void UploadUniformMat4(
const std::string& name,
const glm::mat4& matrix);
27 void Compile(
const std::unordered_map<GLenum, std::string>& shaderSources);
31 uint32_t m_RendererID;
32 std::shared_ptr<OpenGLUniformBuffer> m_UniformBufferObject;