MOS
program.hpp
1 #pragma once
2 
3 #include <glad/glad.h>
4 
5 namespace mos::gl {
6 
7 class Program {
8  friend class Renderer;
9 protected:
10  Program();
11  ~Program();
12 public:
13  Program(const Program &program) = delete;
14  Program(const Program &&program) = delete;
15  Program &operator=(const Program &program) = delete;
16  Program &operator=(const Program &&program) = delete;
17  const GLuint program;
18  auto check(const std::string &name) const -> void;
19  auto link(const std::string &name) const -> void;
20 };
21 }
Definition: program.hpp:7
Definition: array_buffers.hpp:5
Render geometry shapes with OpenGL.
Definition: renderer.hpp:40