Vector texture maps: demo and article

The only thing you have to do is to change the file reading function (filelength is windows stuff) and remove windows.h io.h glext.h and everything that has to do with wglGetProcAddress…

…and you need a glfw installed

compile with gcc -o GLSLconics GLSLconics.c -lglfw -framework Carbon -framework AGL -framework OpenGL

quick and dirty filelenth:
long getFileLength( File* f) {
fseek(f, 0, SEEK_END);
return ftell(f);
}

http://onesadcookie.com/~keith/GLSL-conics.zip

You’ll need to edit build.sh to point at your GLFW instead of mine.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.