Download IRIS Performer™ Programmer`s Guide
Transcript
Chapter 10: libpr Basics } while(t < 2.5f); } Table 10-5 lists the key routines used to manage pfStrings. Table 10-5 pfString Routines Function Description pfNewString Create a new pfString pfDelete Delete a pfString. pfStringFont Set the pfFont to use when drawing this pfString. pfStringString Set the character array that this pfString will represent/render. pfDrawString Draw this pfString pfFlattenString Flatten all positional translations and the current specification matrix into individual pfGeoSets so that more memory is used, but no matrix transforms or translates have to be done between each character of the pfString. pfStringColor Set the color of the pfString. pfStringMode Specify a particular mode for this pfString. Valid Modes to set: PFSTR_JUSTIFY — set the line justification and has the following possible values: PFSTR_FIRST or PFSTR_LEFT, PFSTR_MIDDLE or PFSTR_CENTER, and PFSTR_LAST or PFSTR_RIGHT. PFSTR_CHAR_SIZE — set the number of bytes per character in the input string and has the following possible values: PFSTR_CHAR, PFSTR_SHORT, PFSTR_INT. pfStringMat Specify a transform matrix that will affect the entire character string when the pfString is drawn pfStringSpacing Specify a scale factor for the escapement translations that happen Scale after each character is drawn. This routine is useful for changing the spacing between characters and even between lines. 332