Files Classes Functions Hierarchy
#include <graphmisc.h>
Public Member Functions | |
| gobjMyBitmapCharacter (string const &name_, point3< float > const &x_, void *font_=GLUT_BITMAP_HELVETICA_10) | |
| Construct a character string in 3D space. | |
| gobjMyBitmapCharacter (string const &name_, point3< double > const &x_, void *font_=GLUT_BITMAP_HELVETICA_10) | |
| Construct a character string in 3D space. | |
| void | draw () |
| Draw the object. | |
Public Attributes | |
| string | name |
| The string being displayed. | |
| point3< float > | x |
| The position in 3D space. | |
| void * | font |
| A pointer to an OpenGL font that the string is written in. | |
Definition at line 771 of file graphmisc.h.
| gobjMyBitmapCharacter::gobjMyBitmapCharacter | ( | string const & | name_, | |
| point3< float > const & | x_, | |||
| void * | font_ = GLUT_BITMAP_HELVETICA_10 | |||
| ) | [inline] |
Construct a character string in 3D space.
Possible values of the font are
Definition at line 796 of file graphmisc.h.
| gobjMyBitmapCharacter::gobjMyBitmapCharacter | ( | string const & | name_, | |
| point3< double > const & | x_, | |||
| void * | font_ = GLUT_BITMAP_HELVETICA_10 | |||
| ) | [inline] |
| void gobjMyBitmapCharacter::draw | ( | ) | [virtual] |
Draw the object.
Implements gobj.
Definition at line 201 of file graphmisc.cpp.
References font, GOBJDEBUGCODE, and name.
00202 { 00203 GOBJDEBUGCODE 00204 glRasterPos3f(x.x,x.y,x.z); 00205 uintc kmax = name.size(); 00206 00207 for (uint k=0; k<kmax; ++k) 00208 glutBitmapCharacter(font, name[k]); 00209 }
A pointer to an OpenGL font that the string is written in.
Definition at line 782 of file graphmisc.h.
Referenced by draw().
| string gobjMyBitmapCharacter::name |
| point3<float> gobjMyBitmapCharacter::x |
1.5.8