aboutsummaryrefslogtreecommitdiffstats
path: root/glprog.h
blob: cd0ef83bcc1ded7e99a442bc4c51aec1137c9d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
 * SPDX-License-Identifier: MIT
 */
#ifndef GLPROG_H
#define GLPROG_H

#include "gl.h"

struct unidat {
	const char *name;
	GLint *loc;
};

struct shdrdat {
	GLuint type;
	const char *src;
	GLint len;
};

GLuint glprog_load(const struct shdrdat *shdrs, const struct unidat *unis);

#endif // SHADER_H