Source

gltut / framework / framework.h

Jason McKesson a01f1a8 


Jason McKesson bf62cb3 
Jason McKesson 59e68e9 
Jason McKesson bf62cb3 

Jason McKesson 5bbabcd 
Jason McKesson a01f1a8 

Jason McKesson 9de7175 

Jason McKesson 2463b59 

Jason McKesson a01f1a8 

Jason McKesson 5bbabcd 
Jason McKesson 59e68e9 
Jason McKesson a01f1a8 

#ifndef FRAMEWORK_H
#define FRAMEWORK_H

#include <vector>
#include <string>

#define ARRAY_COUNT( array ) (sizeof( array ) / (sizeof( array[0] ) * (sizeof( array ) != sizeof(void*) || sizeof( array[0] ) <= sizeof(void*))))

namespace Framework
{
	float DegToRad(float fAngDeg);

	GLuint CreateShader(GLenum eShaderType,
		const std::string &strShaderFile, const std::string &strShaderName);
	GLuint LoadShader(GLenum eShaderType, const std::string &strShaderFilename);
	GLuint CreateProgram(const std::vector<GLuint> &shaderList);


}

#endif //FRAMEWORK_H