mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 21:39:54 +02:00
This commit is contained in:
@ -286,7 +286,7 @@ CODE
|
||||
// Build and load the texture atlas into a texture
|
||||
// (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer)
|
||||
int width, height;
|
||||
unsigned char* pixels = NULL;
|
||||
unsigned char* pixels = nullptr;
|
||||
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
|
||||
|
||||
// At this point you've got the texture data and you need to upload that to your graphic system:
|
||||
|
Reference in New Issue
Block a user