summaryrefslogtreecommitdiff
path: root/gfx/gl/programHandle.h
blob: a2a7a2d761fd20b333359d3bc69f834da2c6be59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <GL/glew.h>
#include <glRef.hpp>

class ProgramHandleBase {
public:
	ProgramHandleBase(GLuint, GLuint);
	using ProgramRef = glRef<GLuint, &__glewCreateProgram, &__glewDeleteProgram>;

	ProgramRef m_program;
	GLint viewProjection_uniform, model_uniform;
};