Regenerate string colors when the user changes their string colors in the GUI. Needed to have real-time textures.
| 57 | /// Needed to have real-time textures. |
| 58 | /// </summary> |
| 59 | void UpdateStringTextures(IDirect3DDevice9* pDevice) { |
| 60 | if (generateTexture) { |
| 61 | D3D::GenerateTextures(pDevice, D3D::Strings); |
| 62 | |
| 63 | generateTexture = false; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | void Init(IDirect3DDevice9* pDevice, LONG_PTR WndProc) { |
| 68 | if (ImGuiInit) { |