glprintf.h File Reference

#include <GL/gl.h>
#include <GL/glut.h>
#include <cstring>
#include <cstdarg>
#include <cstdio>

Include dependency graph for glprintf.h:

Go to the source code of this file.

Functions

void glPrintf (const char *msg,...)


Function Documentation

void glPrintf ( const char *  msg,
  ... 
)

prints in 3D a la printf Position the text with glTranslate() Currently, bitmaps are displayed, glScale() does not work NB: this file does rely on glut to load the used font

   glColor3f(1,1,1);
   glTranslatef(10,10,0);
   glPrintf("value: %f\n", value);


Generated on Tue Aug 4 17:57:42 2009 for libvd by  doxygen 1.5.5