17 GLuint
loadShaders(std::string vertShader, std::string fragShader);
42 void saveImage(
const char* path,
int w,
int h);
45 #define AGL_PI 3.141592653589793238462643383279502884197169399375105820974 52 #define AGL_SAMPLE_SIZE 4 53 #define AGL_GLVERSION_MAJOR 3 54 #define AGL_GLVERSION_MINOR 3 56 #define AGL_GLFW_INIT_ERROR 1 57 #define AGL_GLFW_CREATE_WINDOW_ERROR 2 69 #define AGL_SHADING_FLAT 1 70 #define AGL_SHADING_GOURAUD 2 71 #define AGL_SHADING_PHONG 3 79 #define AGL_COLOR_POS2RGB -1 80 #define AGL_COLOR_NORM2RGB -2 81 #define AGL_COLOR_CHECKER -3 GLuint loadShadersFromFile(const char *vsPath, const char *fsPath)
Load shaders from files.
Definition: util.cpp:55
GLuint loadShaders(std::string vertShader, std::string fragShader)
Load a pair of shaders.
Definition: util.cpp:6
void saveImage(const char *path, int w, int h)
Save the current render as a ppm image.
Definition: util.cpp:70
Definition: create_shader.cpp:4
std::string readTextFile(const char *path)
Reads a text file.
Definition: util.cpp:59