forked from CIS565-Fall-2017/Project1-CUDA-Flocking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglslUtility.hpp
25 lines (22 loc) · 857 Bytes
/
glslUtility.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* @file glslUtility.hpp
* @brief A utility namespace for loading GLSL shaders.
* @authors Varun Sampath, Patrick Cozzi, Karl Li
* @date 2012
* @copyright University of Pennsylvania
*/
#pragma once
#include <GL/glew.h>
namespace glslUtility {
GLuint createDefaultProgram(const char *attributeLocations[],
GLuint numberOfLocations);
GLuint createProgram(const char *vertexShaderPath,
const char *fragmentShaderPath,
const char *attributeLocations[],
GLuint numberOfLocations);
GLuint createProgram(const char *vertexShaderPath,
const char *geometryShaderPath,
const char *fragmentShaderPath,
const char *attributeLocations[],
GLuint numberOfLocations);
}