#include <main.h>
#include <iostream>
#include <string>
#include <GL/glew.h>
#include <Eigen/OpenGLSupport>
#include <GL/freeglut.h>
Go to the source code of this file.
Macros | |
#define | VERIFY_MATRIX(CODE, REF) |
#define | VERIFY_UNIFORM(SUFFIX, NAME, TYPE) |
#define | VERIFY_UNIFORMi(NAME, TYPE) |
Functions | |
GLint | createProgram (const char *vtx, const char *frg, bool print_errors=true) |
GLint | createProgram (const std::string &vtx, const std::string &frg, bool print_errors=true) |
EIGEN_DECLARE_TEST (openglsupport) | |
void | find_and_replace (std::string &str, const std::string &find, const std::string &replace) |
std::string | format (const std::string &str, const std::vector< std::string > &find, const std::vector< std::string > &replace) |
std::string | getGlslVersionString (int gl_major_version, int gl_minor_version) |
void | openglsupport_test_loop () |
void | printProgramInfoLog (GLuint objectID) |
void | printShaderInfoLog (GLuint objectID) |
#define VERIFY_MATRIX | ( | CODE, | |
REF | |||
) |
Definition at line 28 of file openglsupport.cpp.
#define VERIFY_UNIFORM | ( | SUFFIX, | |
NAME, | |||
TYPE | |||
) |
Definition at line 40 of file openglsupport.cpp.
#define VERIFY_UNIFORMi | ( | NAME, | |
TYPE | |||
) |
Definition at line 53 of file openglsupport.cpp.
GLint createProgram | ( | const char * | vtx, |
const char * | frg, | ||
bool | print_errors = true |
||
) |
Definition at line 96 of file openglsupport.cpp.
GLint createProgram | ( | const std::string & | vtx, |
const std::string & | frg, | ||
bool | print_errors = true |
||
) |
Definition at line 157 of file openglsupport.cpp.
EIGEN_DECLARE_TEST | ( | openglsupport | ) |
Definition at line 559 of file openglsupport.cpp.
void find_and_replace | ( | std::string & | str, |
const std::string & | find, | ||
const std::string & | replace | ||
) |
Definition at line 211 of file openglsupport.cpp.
std::string format | ( | const std::string & | str, |
const std::vector< std::string > & | find, | ||
const std::vector< std::string > & | replace | ||
) |
Definition at line 226 of file openglsupport.cpp.
Definition at line 162 of file openglsupport.cpp.
void openglsupport_test_loop | ( | ) |
Definition at line 240 of file openglsupport.cpp.
void printProgramInfoLog | ( | GLuint | objectID | ) |
Definition at line 66 of file openglsupport.cpp.
void printShaderInfoLog | ( | GLuint | objectID | ) |
Definition at line 81 of file openglsupport.cpp.