16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 06:59:18 +02:00

preparations for shaders

This commit is contained in:
VB
2017-03-06 22:12:47 +01:00
parent b65dd1a735
commit 7412396811
2 changed files with 95 additions and 0 deletions

22
shader.h Normal file
View File

@@ -0,0 +1,22 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class gl_shader
{
public:
GLuint id;
gl_shader();
gl_shader(std::string);
};
class gl_program
{
GLuint id;
public:
gl_program() = default;
gl_program(std::vector<gl_shader>);
void use();
};