Masks for encoding font keys
Macros | |
#define | kA3DFontKeyAttrib 0x00000FFF |
#define | kA3DFontKeySize 0x00FFF000 |
#define | kA3DFontKeyStyle 0xFF000000 |
Detailed Description
- 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
- Tessellation for Markups
Macro Definition Documentation
◆ kA3DFontKeyAttrib
#define kA3DFontKeyAttrib 0x00000FFF |
Mask to encode the font attributes of the A3DFontKeyData structure into the A3DTessMarkupData structure.
◆ kA3DFontKeySize
#define kA3DFontKeySize 0x00FFF000 |
Mask to encode the font size index of the A3DFontKeyData structure into the A3DTessMarkupData structure.
◆ kA3DFontKeyStyle
#define kA3DFontKeyStyle 0xFF000000 |
Mask to encode the font style index of the A3DFontKeyData structure into the A3DTessMarkupData structure.