Molecule Viewer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Functions | Variables
Utilities.cpp File Reference
#include "common.hpp"
#include <fstream>

Go to the source code of this file.

Functions

bool FileExists (const string &filename)
 Some global functions and variables used in the Molecule Viewer. More...
 
void SetOcclusionQuality (int quality)
 Set Ambient Occlusion Quality, currently only 0 (low) and 1 (medium) More...
 
int GetOcclusionQuality ()
 Get Ambient Occlusion Quality, currently only 0 (low) and 1 (medium) More...
 
void SetWindowHeight (int h)
 Set OpenGL window height (does not actually change a window's size, just writes it to a variable) More...
 
int GetWindowHeight ()
 Get OpenGL window height. More...
 
void SetWindowWidth (int w)
 Set OpenGL window width (does not actually change a window's size, just writes it to a variable) More...
 
int GetWindowWidth ()
 Get OpenGL window width. More...
 
string ReadFile (const string &filename)
 Gets the content of a file. More...
 
void GetErrors (void)
 Gets parsed OpenGL errors. More...
 

Variables

int height
 
int width
 
int occlusionQuality
 

Function Documentation

bool FileExists ( const string &  filename)

Some global functions and variables used in the Molecule Viewer.

Checks if a file exists

Definition at line 13 of file Utilities.cpp.

void GetErrors ( void  )

Gets parsed OpenGL errors.

Definition at line 51 of file Utilities.cpp.

int GetOcclusionQuality ( )

Get Ambient Occlusion Quality, currently only 0 (low) and 1 (medium)

Definition at line 22 of file Utilities.cpp.

int GetWindowHeight ( )

Get OpenGL window height.

Definition at line 32 of file Utilities.cpp.

int GetWindowWidth ( )

Get OpenGL window width.

Definition at line 40 of file Utilities.cpp.

string ReadFile ( const string &  filename)

Gets the content of a file.

Definition at line 45 of file Utilities.cpp.

void SetOcclusionQuality ( int  quality)

Set Ambient Occlusion Quality, currently only 0 (low) and 1 (medium)

Definition at line 19 of file Utilities.cpp.

void SetWindowHeight ( int  h)

Set OpenGL window height (does not actually change a window's size, just writes it to a variable)

Definition at line 28 of file Utilities.cpp.

void SetWindowWidth ( int  w)

Set OpenGL window width (does not actually change a window's size, just writes it to a variable)

Definition at line 36 of file Utilities.cpp.

Variable Documentation

int height

Definition at line 7 of file Utilities.cpp.

int occlusionQuality

Definition at line 9 of file Utilities.cpp.

int width

Definition at line 8 of file Utilities.cpp.