parent
662d2b3464
commit
fcb0a2a46a
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* UI overlay class using ImGui
|
* UI overlay class using ImGui
|
||||||
*
|
*
|
||||||
|
|
@ -72,7 +73,8 @@ namespace vks
|
||||||
delete[] fontAsset;
|
delete[] fontAsset;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
io.Fonts->AddFontFromFileTTF("./../data/Roboto-Medium.ttf", 16.0f);
|
const std::string filename = getAssetPath() + "Roboto-Medium.ttf";
|
||||||
|
io.Fonts->AddFontFromFileTTF(filename.c_str(), 16.0f);
|
||||||
#endif
|
#endif
|
||||||
io.Fonts->GetTexDataAsRGBA32(&fontData, &texWidth, &texHeight);
|
io.Fonts->GetTexDataAsRGBA32(&fontData, &texWidth, &texHeight);
|
||||||
VkDeviceSize uploadSize = texWidth*texHeight * 4 * sizeof(char);
|
VkDeviceSize uploadSize = texWidth*texHeight * 4 * sizeof(char);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue