Hymn to Beauty
C++ 3D Engine
Shader.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Video {
4
5class Buffer;
6
8class Shader {
9 public:
11 enum class Type {
15 };
16
18 Shader() {}
19
21 virtual ~Shader() {}
22
23 private:
24 Shader(const Shader& other) = delete;
25};
26
27}
Compiles and handles a shader. Shaders should be linked together into a ShaderProgram.
Definition: Shader.hpp:8
Shader()
Create a new shader.
Definition: Shader.hpp:18
Type
The type of shader.
Definition: Shader.hpp:11
@ VERTEX_SHADER
Vertex shader.
@ FRAGMENT_SHADER
Fragment shader.
@ COMPUTE_SHADER
Compute shader.
virtual ~Shader()
Destructor.
Definition: Shader.hpp:21
Definition: Editor.hpp:18