16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 05:49:19 +02:00
This commit is contained in:
milek7
2018-06-25 01:15:37 +02:00
parent 0c5f990528
commit 694aac6065
13 changed files with 131 additions and 114 deletions

View File

@@ -5,6 +5,7 @@
#include <functional>
#include "object.h"
#include "bindable.h"
namespace gl
{
@@ -15,14 +16,15 @@ namespace gl
~shader();
};
class program : public object
class program : public object, public bindable<program>
{
public:
program();
program(std::vector<std::reference_wrapper<const gl::shader>>);
~program();
void bind();
using bindable::bind;
static void bind(GLuint i);
void attach(const shader &);
void link();