taisei/src/shader.h
laochailan fbccb951c1 architecture for shader & boss shader
I didn't think about it. I just. wrote. and it looked like I wanted it to be. yay.
2011-04-25 19:40:21 +02:00

30 lines
No EOL
520 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 <SDL/SDL_opengl.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