Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
OpenglShader.h
Go to the documentation of this file.
1#pragma once
2
3#include "RenderCore/Shader.h"
4
5#include "ThirdParty/glad2.h"
6
7#include <string>
8
9namespace ph::editor::ghi
10{
11
12class OpenglShader : public Shader
13{
14public:
16 std::string name,
17 EShadingStage shadingStage,
18 std::string shaderSource);
19
20 ~OpenglShader() override;
21
23
24private:
25 std::string getInfoLog() const;
26
27 GLuint m_shaderID;
28};
29
30}// end namespace ph::editor::ghi
Definition OpenglShader.h:13
NativeHandle getNativeHandle() override
Definition OpenglShader.cpp:57
~OpenglShader() override
Definition OpenglShader.cpp:52
OpenglShader(std::string name, EShadingStage shadingStage, std::string shaderSource)
Definition OpenglShader.cpp:13
Definition Shader.h:16
std::variant< std::monostate, uint64 > NativeHandle
Definition Shader.h:18
Definition PlatformDisplay.h:13
EShadingStage
Definition ghi_enums.h:104