Searched refs:fontBufferSize (Results 1 – 2 of 2) sorted by relevance
| /NW4C-2.0.3/demos/font/PackedFont/sources/ |
| D | main.cpp | 214 const u32 fontBufferSize = nw::font::PackedFont::GetRequireBufferSize( in InitFont() local 216 if (fontBufferSize == 0) in InitFont() 223 void* const fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFont() 227 NW_WARNING(false, "fail to allocate memory for font buffer(%d byte).", fontBufferSize); in InitFont() 234 bSuccess = pFont->Construct(fontBuffer, fontBufferSize, readBuffer, glyphGroups); in InitFont() 252 pFileReader->GetSize(), readBufferSize, fontBufferSize); in InitFont() 310 const u32 fontBufferSize = nw::font::PackedFont::GetRequireBufferSize( in InitFontStreaming() local 312 if (fontBufferSize == 0) in InitFontStreaming() 319 void* fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFontStreaming() 323 NN_LOG("fail to allocate memory for font buffer(%d byte).", fontBufferSize); in InitFontStreaming() [all …]
|
| /NW4C-2.0.3/demos/font/ArchiveFont/sources/ |
| D | main.cpp | 250 const u32 fontBufferSize = nw::font::ArchiveFont::GetRequireBufferSize( in InitFont() local 252 if (fontBufferSize == 0) in InitFont() 258 void* const fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFont() 268 bSuccess = pFont->Construct(fontBuffer, fontBufferSize, readBuffer, glyphGroups); in InitFont() 285 pFileReader->GetSize(), readBufferSize, fontBufferSize ); in InitFont() 336 const u32 fontBufferSize = nw::font::ArchiveFont::GetRequireBufferSize( in InitFontStreaming() local 338 if (fontBufferSize == 0) in InitFontStreaming() 345 void* fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFontStreaming() 349 NW_WARNING(false, "can't alloc %d bytes", fontBufferSize); in InitFontStreaming() 357 pFont->InitStreamingConstruct(&context, fontBuffer, fontBufferSize, glyphGroups); in InitFontStreaming() [all …]
|