taisei/src/resource/shader.h
laochailan e470236379 use glew and err.h replacement
some changes for compatibility and windows.
2011-06-26 16:10:13 +02:00

30 lines
No EOL
513 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef SHADER_H
#define SHADER_H
#include <GL/glew.h>
#define DELIM "%% -- FRAG"
#define DELIM_SIZE 10
struct Shader;
typedef struct Shader {
struct Shader *next;
struct Shader *prev;
char *name;
GLuint prog;
} Shader;
void load_shader(const char *filename);
GLuint get_shader(const char *name);
void delete_shaders();
#endif