|
ProcessViewBrowser-ServerProgramming
|
#include <processviewserver.h>
Data Structures | |
| struct | Glyph |
Public Member Functions | |
| glFont () | |
| ~glFont () | |
| int | read (const char *filename) |
| int | lineHeight () |
| int | charWidth (unsigned char c) |
| int | stringWidth (const char *str) |
| void | drawString (float x, float y, const char *str) |
| void | setZoom (float factor) |
| void | setRotation (int angle) |
| void | setFontSize (int pitch, float factor) |
Private Attributes | |
| Glyph | _glyphs [256] |
| Glyph * | _table [256] |
| GLuint | _line_height |
| GLuint | _texture |
| float | _tex_line_height |
| double | zoom |
| double | zoom0 |
| int | angle_128x128 |
// This class is for reading a font for use within OpenGL //
| glFont::glFont | ( | ) |
| glFont::~glFont | ( | ) |
| int glFont::charWidth | ( | unsigned char | c | ) |
get width of a character
| void glFont::drawString | ( | float | x, |
| float | y, | ||
| const char * | str | ||
| ) |
draw string at position x,y push matrix, translate and rotate first if you want to place it in 3D
| int glFont::lineHeight | ( | ) |
get lineHeight
| int glFont::read | ( | const char * | filename | ) |
read font file
| void glFont::setFontSize | ( | int | pitch, |
| float | factor | ||
| ) |
for internal use only.
| void glFont::setRotation | ( | int | angle | ) |
rotate font in degree angle.
| void glFont::setZoom | ( | float | factor | ) |
zoom all texts. default: zoom=1.0
| int glFont::stringWidth | ( | const char * | str | ) |
get width of string
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.14