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:
22
shader.h
Normal file
22
shader.h
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user