Masks for encoding font keys

Sample Use of the masks for Encoding Font Keys

/*typicaluseforencodinganddecodingthesecondinner-codeoffontextradata*/
/*fontstyleindex/fontsizeindex/attributes*/

/*encoding*/
code=Attributes+(FontSizeIndex<<12)+(FontStyleIndex<<24);

/*decoding*/
FontStyleIndex=(code&kA3DFontKeyStyle)>>24;
FontSizeIndex=(code&kA3DFontKeySize)>>12;
Attributes=(code&kA3DFontKeyAttrib);


:ref:`Tessellation for Markups <group__a3d__tessmarkup>`

Index

Preprocessor Definitions

Preprocessor Definitions

kA3DFontKeyAttrib

Mask to encode the font attributes of the A3DFontKeyDatastructure into the A3DTessMarkupDatastructure.

kA3DFontKeySize

Mask to encode the font size index of the A3DFontKeyDatastructure into the A3DTessMarkupDatastructure.

kA3DFontKeyStyle

Mask to encode the font style index of the A3DFontKeyDatastructure into the A3DTessMarkupDatastructure.