Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
setColorFormat |
Base class for implementations of glyph caches. A glyph cache is responsible for allocating textures to hold rendered glyphs and for placing individuals glyphs on those textures.
Even though the glyph cache is responsible for placing glyphs on textures, the glyph cache does not have to keep track of glyph metrics. Glyph metrics are stored independently by the font. This means that glyph caches with equivalent textures may be swapped out for use with the same font.
The color format may be used by dynamic cache implementations when allocating new textures.
function setColorFormat ( MOAIFont self, number colorFmt )
self | ( MOAIFont ) |
colorFmt | ( number ) One of MOAIImage.COLOR_FMT_A_8, MOAIImage.COLOR_FMT_RGB_888, MOAIImage.COLOR_FMT_RGB_565, MOAIImage.COLOR_FMT_RGBA_5551, MOAIImage.COLOR_FMT_RGBA_4444, COLOR_FMT_RGBA_8888 |