scg3  0.6
scg_utilities.h File Reference

Utility functions that are used by different classes. More...

#include <string>
#include <vector>
#include "scg_glew.h"
#include <GLFW/glfw3.h>
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Utility functions that are used by different classes.

Author
Volker Ahlers
volke.nosp@m.r.ah.nosp@m.lers@.nosp@m.hs-h.nosp@m.annov.nosp@m.er.d.nosp@m.e

Definition in file scg_utilities.h.