Lines Matching refs:glyph
233 Glyph glyph; in Print() local
234 m_pFont->GetGlyph(&glyph, code); in Print()
236 CharWidths &widths = glyph.widths; in Print()
253 PrintGlyph(m_CursorPos.x + left, glyph); in Print()
263 CharWriter::DrawGlyph(const Glyph& glyph) in DrawGlyph() argument
265 NN_POINTER_ASSERT(&glyph); in DrawGlyph()
266 PrintGlyph(m_CursorPos.x, glyph); in DrawGlyph()
267 m_CursorPos.x += glyph.widths.glyphWidth * m_Scale.x; in DrawGlyph()
279 const Glyph& glyph in PrintGlyph() argument
282 NN_POINTER_ASSERT(&glyph); in PrintGlyph()
283 NW_FONT_MIN_ASSERT(glyph.texWidth, 1); in PrintGlyph()
284 NW_FONT_MIN_ASSERT(glyph.texHeight, 1); in PrintGlyph()
288 const f32 texLeft = 1.0f * glyph.cellX / glyph.texWidth; in PrintGlyph()
289 const f32 texRight = 1.0f * (glyph.cellX + glyph.widths.glyphWidth) in PrintGlyph()
290 / glyph.texWidth; in PrintGlyph()
294 const f32 texTop = 1.0f * (glyph.texHeight - glyph.cellY) / glyph.texHeight; in PrintGlyph()
295 const f32 texBottom = 1.0f * (glyph.texHeight - (glyph.cellY + glyph.height)) in PrintGlyph()
296 / glyph.texHeight; in PrintGlyph()
300 const f32 width = glyph.widths.glyphWidth * m_Scale.x; in PrintGlyph()
301 const f32 height = - glyph.height * m_Scale.y; in PrintGlyph()
337 NN_NULL_ASSERT(glyph.pTextureObject); in PrintGlyph()
338 pCharAttrs->pTexObj = glyph.pTextureObject; in PrintGlyph()
343 const f32 posRight = posLeft + glyph.widths.glyphWidth * m_Scale.x; in PrintGlyph()
346 const f32 posBottom = y + glyph.height * m_Scale.y; in PrintGlyph()
348 const f32 posTop = y + glyph.height * m_Scale.y; in PrintGlyph()
399 LoadTexture(glyph); in PrintGlyph()
429 CharWriter::LoadTexture(const Glyph& glyph) in LoadTexture() argument
431 NN_POINTER_ASSERT(&glyph); in LoadTexture()
436 if (NULL == glyph.pTextureObject) in LoadTexture()
439 doLoad = m_pTextWriterResource->SetLoadingTexture(glyph.pTexture); in LoadTexture()
443 texName = glyph.pTextureObject->GetName(); in LoadTexture()
447 const_cast<internal::TextureObject*>(glyph.pTextureObject)->SetName(texName); in LoadTexture()
452 doLoad = 0 != glyph.isSheetUpdated; // 強制ロード in LoadTexture()
464 glyph.texWidth, in LoadTexture()
465 glyph.texHeight, in LoadTexture()
466 glyph.texFormat, in LoadTexture()
467 glyph.pTexture, in LoadTexture()