Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Macros | Typedefs | Functions
Util.hpp File Reference
#include "IdCache.hpp"

Go to the source code of this file.

Namespaces

 Util
 

Macros

#define GL_ID_TYPE   GL_UNSIGNED_SHORT
 The OpenGL-type used for the id-buffer (has to match id_t) More...
 
#define GL_ID_FORMAT   GL_R16UI
 The OpenGL-format used for the id-buffer (has to match id_t) More...
 

Typedefs

typedef uint16 id_t
 The data-type used for the id-buffer. More...
 

Functions

string read_file_to_string (string const &filename)
 
template<typename T >
rand (T min, T max)
 
vec2 operator/ (vec2 const &left, vec2 const &right)
 

Macro Definition Documentation

#define GL_ID_FORMAT   GL_R16UI

The OpenGL-format used for the id-buffer (has to match id_t)

Definition at line 12 of file Util.hpp.

#define GL_ID_TYPE   GL_UNSIGNED_SHORT

The OpenGL-type used for the id-buffer (has to match id_t)

Definition at line 9 of file Util.hpp.

Typedef Documentation

typedef uint16 id_t

The data-type used for the id-buffer.

Definition at line 6 of file Util.hpp.

Function Documentation

vec2 operator/ ( vec2 const &  left,
vec2 const &  right 
)
inline

Vector-division. Performs element-wise vector-division for two vec2-instances and returns the result.

Parameters
leftthe dividend
rightthe divisor
Returns
the result

Definition at line 45 of file Util.hpp.