summaryrefslogtreecommitdiff
path: root/gfx/gl/shader-source.h
blob: 4fbbe5b19687a2981665c21ecb0cb7cca2e12412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SHADER_SOURCE_H
#define SHADER_SOURCE_H

#include <GL/glew.h>

struct GLsource {
	const GLchar * text;
	GLint len;
	GLuint type;
};

constexpr auto
constexpr_strlen(const GLchar * const s)
{
	auto e {s};
	while (*++e) { }
	return e - s;
}

#endif