#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. |
const int getNextPowerOfTwo | ( | const int | iNumber | ) |
Returns the next power of two of a number
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
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
fn | Filename |
int textFileWrite | ( | char * | fn, | |
char * | s | |||
) |
writes in a text file. Returns 1 if successful, 0 if not.
Writes an ASCII File
fn | Filename | |
s | content of the file |