00001 00008 #ifndef CAROL_GLSL_H 00009 #define CAROL_GLSL_H 00010 00011 #include <stdio.h> 00012 #include <stdlib.h> 00013 #include <string.h> 00014 00015 #include "basic_defs.h" 00016 #include "arbprogram.h" 00017 00023 char* GLSL_textFileRead(char *fn); 00030 int GLSL_textFileWrite(char *fn, char *s); 00031 00041 void GLSL_texActivate(int numTextureObjects, TextureObject *textureObjects); 00048 void GLSL_texDeactivate(int numTextureObjects, TextureObject *textureObjects); 00054 void GLSL_activateARBProg(ARBProgram *prog); 00060 void GLSL_deactivateARBProg(ARBProgram *prog); 00065 void GLSL_raycastBackground(GLenum destinationBuffer); 00069 void GLSL_init(); 00074 void GLSL_renderVolume(); 00079 void GLSL_raycastVolume(); 00080 00082 extern GLuint fragmentShader; 00084 extern GLuint program; 00085 00086 #endif