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
8
namespace
engine::graphics {
9
13
class
shader
{
14
public
:
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
43
private
:
44
std::uint32_t id_;
45
};
46
47
}
// namespace engine::graphics
engine::graphics::shader
Represents an OpenGL shader program.
Definition
shader.h:13
engine::graphics::shader::use
void use()
Installs this program in the current OpenGL context.
Definition
shader.cpp:89
engine::graphics::shader::~shader
~shader()
Destructor that deletes the OpenGL program.
Definition
shader.cpp:85
src
engine
graphics
shader.h
Generated by
1.9.8