Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

Hershey.h File Reference

Go to the source code of this file.


Compounds

struct hersheyhandle

Functions

void hersheyDrawLetterOpenGL (unsigned char ch, int drawendpoints)
This routine generates a sequence of OpenGL drawing commands that can be captured in a display list for fast subsequent rendering of each of the font glyphs. More...

void hersheyDrawInitLetter (hersheyhandle *hh, const char ch, float *lm, float *rm)
For VMD FileRenderer subclasses, it is most convenient to generate the font glyphs on the fly. This routine initializes a glyph rendering context for the requested character, to be accessed by subsequent calls to hersheyDrawNextLine(). The lm and rm values are X coordinate offsets to be applied before (lm) and after (rm) rendering the glyph, to produce the correct text spacing. More...

int hersheyDrawNextLine (hersheyhandle *hh, int *draw, float *x, float *y)
This routine computes the next glyph stroke vector, returning false for a run of connected strokes, and true when the stroke ends. It sets the value of the 'draw' parameter to true when X and Y are set, which allows the caller to determine when strokes begin and end, and to connect the segments with whatever geometry works best for the specific renderer. More...


Function Documentation

void hersheyDrawInitLetter ( hersheyhandle * hh,
const char ch,
float * lm,
float * rm
)

For VMD FileRenderer subclasses, it is most convenient to generate the font glyphs on the fly. This routine initializes a glyph rendering context for the requested character, to be accessed by subsequent calls to hersheyDrawNextLine(). The lm and rm values are X coordinate offsets to be applied before (lm) and after (rm) rendering the glyph, to produce the correct text spacing.

Definition at line 327 of file Hershey.C.

Referenced by X3DOMDisplayDevice::text, X3DDisplayDevice::text, Vrml2DisplayDevice::text, TachyonDisplayDevice::text, RenderManDisplayDevice::text, R3dDisplayDevice::text, POV3DisplayDevice::text, OSPRayDisplayDevice::text, OSPRay2DisplayDevice::text, OptiXDisplayDevice::text, LibTachyonDisplayDevice::text, GelatoDisplayDevice::text, and FileRenderer::text.

void hersheyDrawLetterOpenGL ( unsigned char ch,
int drawendpoints
)

This routine generates a sequence of OpenGL drawing commands that can be captured in a display list for fast subsequent rendering of each of the font glyphs.

Definition at line 275 of file Hershey.C.

Referenced by OpenGLRenderer::setup_initial_opengl_state.

int hersheyDrawNextLine ( hersheyhandle * hh,
int * draw,
float * x,
float * y
)

This routine computes the next glyph stroke vector, returning false for a run of connected strokes, and true when the stroke ends. It sets the value of the 'draw' parameter to true when X and Y are set, which allows the caller to determine when strokes begin and end, and to connect the segments with whatever geometry works best for the specific renderer.

Definition at line 337 of file Hershey.C.

Referenced by X3DOMDisplayDevice::text, X3DDisplayDevice::text, Vrml2DisplayDevice::text, TachyonDisplayDevice::text, RenderManDisplayDevice::text, R3dDisplayDevice::text, POV3DisplayDevice::text, OSPRayDisplayDevice::text, OSPRay2DisplayDevice::text, OptiXDisplayDevice::text, LibTachyonDisplayDevice::text, GelatoDisplayDevice::text, and FileRenderer::text.


Generated on Mon Nov 17 02:47:39 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /