glutStrokeCharacter man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

glutStrokeCharacter(3GLUT)	     GLUT	    glutStrokeCharacter(3GLUT)

NAME
       glutStrokeCharacter - renders a stroke character using OpenGL.

SYNTAX
       void glutStrokeCharacter(void *font, int character);

ARGUMENTS
       font	 Stroke font to use.

       character Character to render (not confined to 8 bits).

DESCRIPTION
       Without	using any display lists, glutStrokeCharacter renders the char‐
       acter in the named stroke font. The available fonts are:

       GLUT_STROKE_ROMAN
	       A proportionally spaced Roman Simplex font for ASCII characters
	       32 through 127. The maximum top character in the font is 119.05
	       units; the bottom descends 33.33 units.

       GLUT_STROKE_MONO_ROMAN
	       A mono-spaced spaced Roman Simplex  font	 (same	characters  as
	       GLUT_STROKE_ROMAN)  for	ASCII  characters  32 through 127. The
	       maximum top character in the font is 119.05 units;  the	bottom
	       descends 33.33 units. Each character is 104.76 units wide.

       Rendering a nonexistent character has no effect. A glTranslatef is used
       to translate the current model view matrix to advance the width of  the
       character.

EXAMPLE
       Here  is a routine that shows how to render a string of ASCII text with
       glutStrokeCharacter:

	 void
	 output(GLfloat x, GLfloat y, char *text)
	 {
	   char *p;

	   glPushMatrix();
	   glTranslatef(x, y, 0);
	   for (p = text; *p; p++)
	     glutStrokeCharacter(GLUT_STROKE_ROMAN, *p);
	   glPopMatrix();
	 }

       If you want to draw stroke font text  using  wide,  antialiased	lines,
       use:

	 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
	 glEnable(GL_BLEND);
	 glEnable(GL_LINE_SMOOTH);
	 glLineWidth(2.0);
	 output(200, 225, "This is antialiased.");

SEE ALSO
       glutBitmapCharacter, glutStrokeWidth

AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)

GLUT				      3.7	    glutStrokeCharacter(3GLUT)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net