| 420 | } |
| 421 | |
| 422 | void GuiImpl::compileFonts() |
| 423 | { |
| 424 | uint8_t* pFontData; |
| 425 | int32_t width, height; |
| 426 | |
| 427 | // Initialize font data |
| 428 | ImGui::GetIO().Fonts->GetTexDataAsAlpha8(&pFontData, &width, &height); |
| 429 | ref<Texture> pTexture = mpDevice->createTexture2D(width, height, ResourceFormat::R8Unorm, 1, 1, pFontData); |
| 430 | mpProgramVars->setTexture("gFont", pTexture); |
| 431 | } |
| 432 | |
| 433 | bool GuiImpl::addCheckboxes(const char label[], bool* pData, uint32_t numCheckboxes, bool sameLine) |
| 434 | { |
no test coverage detected