mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 10:29:19 +02:00
further pruning of legacy render code, now runs on opengl 3.3 core
profile
This commit is contained in:
32
gl/shader.h
Normal file
32
gl/shader.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
#include "object.h"
|
||||
|
||||
namespace gl
|
||||
{
|
||||
class shader : public object
|
||||
{
|
||||
public:
|
||||
shader(const std::string &filename);
|
||||
~shader();
|
||||
};
|
||||
|
||||
class program : public object
|
||||
{
|
||||
public:
|
||||
program();
|
||||
program(std::vector<std::reference_wrapper<const gl::shader>>);
|
||||
~program();
|
||||
|
||||
void bind();
|
||||
|
||||
void attach(const shader &);
|
||||
void link();
|
||||
|
||||
virtual void init();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user