This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



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 character 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(3G), glutStrokeWidth(3G)


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



GLUT                                                 3.7                          glutStrokeCharacter(3GLUT)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...