![]() |
scg3
0.6
|
Utility functions that are used by different classes. More...
Go to the source code of this file.
Namespaces | |
scg | |
Functions | |
int | scg::checkGLError () |
Check if an OpenGL error has occured since last call of checkGLError(). More... | |
bool | scg::isGLContextActive () |
Check if an active OpenGL context exists. More... | |
void | scg::getCursorPosPixels (GLFWwindow *window, double &xPixels, double &yPixels) |
Get cursor (mouse pointer) position in pixels, as opposed to screen coordinates. More... | |
void | scg::setCursorPosPixels (GLFWwindow *window, double xPixels, double yPixels) |
Set cursor (mouse pointer) position in pixels, as opposed to screen coordinates. More... | |
void | scg::formatFilePath (std::string &filePath) |
Replace backslashes by slashes and ensure that the last character is a slash. More... | |
std::string | scg::getFullFileName (const std::vector< std::string > &filePaths, const std::string &fileName) |
Try to find file name in a list of file paths. More... | |
void | scg::printUniformBlockInformation (GLuint program, int nMembers, const GLchar **uniformNames) |
Print information about uniform blocks in shaders. More... | |
void | scg::splitFilePath (const std::string &filePath, std::vector< std::string > &splitPaths) |
Split string containing one or more file paths into a vector of single paths. More... | |
Variables | |
const float | scg::PI = 3.141592654f |
Utility functions that are used by different classes.
Definition in file scg_utilities.h.