extern "C" {
#include "util/readtex.h"
#include "util/shaderutil.h"
}
extern GLuint CompileShaderText(GLenum shaderType, const char *text);
extern GLuint CompileShaderFile(GLenum shaderType,const char *filename);
extern GLuint LinkShaders(GLuint vertShader, GLuint fragShader);
extern void SetUniformValues(GLuint program, struct uniform_info uniforms[]);
extern GLboolean ValidateShaderProgram(GLuint program);
Makefile:
all: dep
g++ -g glutfonts.o multitex.o vec.o bezier_fire.o topvertex.o ./util/shaderutil.o -I./util -g -o multitex -lglut -lm -lGLU -lGL -lGLEW `sdl-config --cflags --libs`
dep:
g++ -g -c multitex.c -o multitex.o -I./util -I/usr/include/SDL
gcc -c vec.c -o vec.o -I/usr/include/GL
gcc -c glutfonts.c -o glutfonts.o -I/usr/include/GL
gcc -c bezier_fire.c -o bezier_fire.o
gcc -c topvertex.c -o topvertex.o
gcc -c ./util/shaderutil.c -o shaderutil.o
clean: *.o
rm multitex multitex.o vec.o glutfonts.o bezier_fire.o
沒有留言:
張貼留言