Lines Matching refs:tg

423     const FontTextureGlyph& tg = *m_pFontInfo->pGlyph;  in GetGlyphFromIndex()  local
425 const u32 cellsInASheet = internal::GetCellsInASheet(tg); in GetGlyphFromIndex()
427 const u32 offsetBytes = sheetNo * tg.sheetSize; in GetGlyphFromIndex()
428 const void* pSheet = tg.sheetImage + offsetBytes; in GetGlyphFromIndex()
433 SetGlyphMember(glyph, index, tg); in GetGlyphFromIndex()
440 const FontTextureGlyph& tg in SetGlyphMember() argument
443 const u32 cellNo = index % internal::GetCellsInASheet(tg); in SetGlyphMember()
444 const u32 cellUnitX = cellNo % tg.sheetRow; in SetGlyphMember()
445 const u32 cellUnitY = cellNo / tg.sheetRow; in SetGlyphMember()
446 const u32 cellPixelX = cellUnitX * (tg.cellWidth + 1); in SetGlyphMember()
447 const u32 cellPixelY = cellUnitY * (tg.cellHeight + 1); in SetGlyphMember()
449 glyph->height = tg.cellHeight; in SetGlyphMember()
450 glyph->texFormat = static_cast<TexFmt>(tg.sheetFormat); in SetGlyphMember()
451 glyph->texWidth = tg.sheetWidth; in SetGlyphMember()
452 glyph->texHeight = tg.sheetHeight; in SetGlyphMember()
520 const FontTextureGlyph& tg = *m_pFontInfo->pGlyph; in GenTextureNames() local
526 const void *const pImage = tg.sheetImage + offsetBytes; in GenTextureNames()
527 const TexFmt format = static_cast<TexFmt>(tg.sheetFormat); in GenTextureNames()
528 texObjs[i].Set(texName, this, pImage, format, tg.sheetWidth, tg.sheetHeight); in GenTextureNames()
530 offsetBytes += tg.sheetSize; in GenTextureNames()
534 nngxUpdateBuffer(tg.sheetImage, tg.sheetSize * sheetNum); in GenTextureNames()