Deep Learning Visualizer
Interactive visualization of basic applications of deep learning
Loading...
Searching...
No Matches
engine::graphics::shader Class Reference

Represents an OpenGL shader program. More...

#include <shader.h>

Public Member Functions

 shader (const std::filesystem::path &vertex_shader_path, const std::filesystem::path &fragment_shader_path)
 Constructs a program that compiles and links a vertex and fragment shader.
 
 ~shader ()
 Destructor that deletes the OpenGL program.
 
 shader (const shader &)=delete
 
shader & operator= (const shader &)=delete
 
 shader (shader &&)=delete
 
shader & operator= (shader &&)=delete
 
void use ()
 Installs this program in the current OpenGL context.
 
std::uint32_t id () const
 

Detailed Description

Represents an OpenGL shader program.

Constructor & Destructor Documentation

◆ shader()

engine::graphics::shader::shader ( const std::filesystem::path &  vertex_shader_path,
const std::filesystem::path &  fragment_shader_path 
)

Constructs a program that compiles and links a vertex and fragment shader.

Parameters
vertex_shader_pathThe path to a .vert shader file, relative to the project root.
fragment_shader_pathThe path to a .frag shader file, relative to the project root.

The documentation for this class was generated from the following files: