blob: 502ba13d3d56084d6c0359517e39dfe8b49cc56d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef UISHADER_H
#define UISHADER_H
#include "programHandle.h"
#include <GL/glew.h>
#include <cstddef>
#include <glm/glm.hpp>
class UIShader {
public:
UIShader(std::size_t width, std::size_t height);
void useDefault() const;
void useText(glm::vec3) const;
private:
class UIProgramHandle : public ProgramHandleBase {
using ProgramHandleBase::ProgramHandleBase;
};
UIProgramHandle progDefault, progText;
};
#endif
|