Deep Learning Visualizer
Interactive visualization of basic applications of deep learning
Loading...
Searching...
No Matches
shader.h
Go to the documentation of this file.
1#pragma once
2
5#include <cstdint>
6#include <filesystem>
7
8namespace engine::graphics {
9
13class shader {
14public:
23 shader(const std::filesystem::path &vertex_shader_path,
24 const std::filesystem::path &fragment_shader_path);
25
29 ~shader();
30
31 shader(const shader &) = delete;
32 shader &operator=(const shader &) = delete;
33 shader(shader &&) = delete;
34 shader &operator=(shader &&) = delete;
35
39 void use();
40
41 [[nodiscard]] std::uint32_t id() const;
42
43private:
44 std::uint32_t id_;
45};
46
47} // namespace engine::graphics
Represents an OpenGL shader program.
Definition shader.h:13
void use()
Installs this program in the current OpenGL context.
Definition shader.cpp:89
~shader()
Destructor that deletes the OpenGL program.
Definition shader.cpp:85