E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/src/common.cpp File Reference

#include "common.h"

Functions

void renderString (void *font, const std::string input)
const int getNextPowerOfTwo (const int iNumber)
void printGLErrors ()
char * textFileRead (char *fn)
 reads a text file. Returns zero length array if not successful. ///////////////////////////////////////////////////////////////////
int textFileWrite (char *fn, char *s)
 writes in a text file. Returns 1 if successful, 0 if not.

Function Documentation

const int getNextPowerOfTwo ( const int  iNumber  ) 

Returns the next power of two of a number

Parameters:
iNumber Number

void printGLErrors (  ) 

Prints the OpenGL erros on the screen.

void renderString ( void *  font,
const std::string  input 
)

renders a string on the screen with GLUT

Parameters:
font Font which should be used
input String to draw

char* textFileRead ( char *  fn  ) 

reads a text file. Returns zero length array if not successful. ///////////////////////////////////////////////////////////////////

Reads an ASCII File

Parameters:
fn Filename

int textFileWrite ( char *  fn,
char *  s 
)

writes in a text file. Returns 1 if successful, 0 if not.

Writes an ASCII File

Parameters:
fn Filename
s content of the file


Generated on Tue Jan 20 23:44:10 2009 for FlowVis by  doxygen 1.5.7.1