summaryrefslogtreecommitdiff
path: root/gfx/gl/uiShader.h
blob: ea5bf251137267e7f11d4011d2f6ca832e9a1c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#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;
};