Functions

Shader.cpp File Reference

#include "Shader.hpp"
#include <fstream>
#include <iostream>

Functions

bool file_exists (const std::string &filename)
 Queries if a given file exists.
std::string textFileRead (const std::string &p_filename)
 Reads shader file.
void printShaderInfoLog (GLuint obj)
 Print shader information log.
void printProgramInfoLog (GLuint obj)
 Print shader program information log.
void printInfoLog (GLhandleARB obj)
 Print shader information log.

Function Documentation

bool file_exists ( const std::string &  filename )

Queries if a given file exists.

Parameters:
filenameFilename of the file.
Returns:
true if it succeeds, false if it fails.
void printInfoLog ( GLhandleARB  obj )

Print shader information log.

Parameters:
objThe object.
void printProgramInfoLog ( GLuint  obj )

Print shader program information log.

Parameters:
objThe object.
void printShaderInfoLog ( GLuint  obj )

Print shader information log.

Parameters:
objThe object.
std::string textFileRead ( const std::string &  p_filename )

Reads shader file.

Parameters:
p_filenameFilename of the file.
Returns:
.