Masks for encoding font keys
Macro Definitions
Detailed Description
- group a3d_tessmarkupfontkeydef
Sample Use of the masks for Encoding Font Keys
/* typical use for encoding and decoding the second inner-code of font extra data */ /* font style index / font size index / attributes */ /* encoding */ code = Attributes + (FontSizeIndex << 12) + (FontStyleIndex << 24); /* decoding */ FontStyleIndex = (code & kA3DFontKeyStyle) >> 24; FontSizeIndex = (code & kA3DFontKeySize) >> 12; Attributes = (code & kA3DFontKeyAttrib);
See also
Macro Definition
-
kA3DFontKeyAttrib
Mask to encode the font attributes of the A3DFontKeyData structure into the A3DTessMarkupData structure.
-
kA3DFontKeySize
Mask to encode the font size index of the A3DFontKeyData structure into the A3DTessMarkupData structure.
-
kA3DFontKeyStyle
Mask to encode the font style index of the A3DFontKeyData structure into the A3DTessMarkupData structure.