Public Member Functions | Protected Attributes
cinder::gl::TextureFont::DrawOptions Struct Reference

#include <TextureFont.h>

List of all members.

Public Member Functions

 DrawOptions ()
bool getClipHorizontal () const
 Returns whether the output clips horizontally.
DrawOptionsclipHorizontal (bool clipH=true)
 Sets whether the output clips horizontally.
bool getClipVertical () const
 Returns whether the output clips vertically.
DrawOptionsclipVertical (bool clipV=true)
 Sets whether the output clips vertically.
bool getPixelSnap () const
 Returns whether the output glyphs are snapped to pixel boundaries. This sharpens static text but prevents subpixel animation.
DrawOptionspixelSnap (bool pixelSnap=true)
 Sets whether the output glyphs are snapped to pixel boundaries. This sharpens static text but prevents subpixel animation.
bool getLigate () const
 Returns whether advanced ligatures are used, which must have been instantiated by the supportedChars parameter of the TextureFont::create() call. Default to false.
DrawOptionsligate (bool useLigatures=true)
 Sets whether advanced ligatures are used, which must have been instantiated by the supportedChars parameter of the TextureFont::create() call. Default to false.
float getScale () const
 Returns the scale at which the type is rendered. 2 is double size. Default 1.
DrawOptionsscale (float sc)
 Sets the scale at which the type is rendered. 2 is double size. Default 1.

Protected Attributes

bool mClipHorizontal
bool mClipVertical
bool mPixelSnap
bool mLigate
float mScale

Constructor & Destructor Documentation


Member Function Documentation

Returns whether the output clips horizontally.

Sets whether the output clips horizontally.

Returns whether the output clips vertically.

Sets whether the output clips vertically.

Returns whether the output glyphs are snapped to pixel boundaries. This sharpens static text but prevents subpixel animation.

Sets whether the output glyphs are snapped to pixel boundaries. This sharpens static text but prevents subpixel animation.

Returns whether advanced ligatures are used, which must have been instantiated by the supportedChars parameter of the TextureFont::create() call. Default to false.

Sets whether advanced ligatures are used, which must have been instantiated by the supportedChars parameter of the TextureFont::create() call. Default to false.

Returns the scale at which the type is rendered. 2 is double size. Default 1.

Sets the scale at which the type is rendered. 2 is double size. Default 1.


Member Data Documentation


The documentation for this struct was generated from the following file: