aboutsummaryrefslogtreecommitdiff
path: root/shaderloader/shaderloader.h
blob: b57fa8a885a508a80f44644e44e74ee250c164c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#ifndef SHADERLOADER_H
#define SHADERLOADER_H

#if defined(_WIN32)
#include <windows.h>
#endif
#include <GL/gl.h>

GLuint shader_load_from_files(
	GLenum shader_unit,
	char const * const * const filepaths );

typedef struct shader_program_sources {
	GLenum unit;
	char const * const * paths;
} shader_program_sources;

GLuint shader_program_load_from_files(
	shader_program_sources const * const sources );

#endif/*SHADERLOADER_H*/