API reference
Preparing search index…

ImGui.ImFontAtlas_Build

  • Build the font atlas and its texture data.

    Parameters

    self

    ImFontAtlas handle on which this method operates.

    Returns

    boolean

    True if the font atlas was built successfully; false reports a build failure.

    Builds the atlas pixel data. FontAtlas_GetTexDataAsAlpha8(self) and FontAtlas_GetTexDataAsRGBA32(self) call this automatically when needed.

    • Upload the pixels to graphics memory, then store the texture handle with ImFontAtlas_SetTexID(self, textureId).
    • Row pitch is Width * BytesPerPixel; supported output formats use 1 or 4 bytes per pixel.
    • RGBA32 is provided for compatibility and convenience. Unless custom colored data is written, such as through the custom-rectangle API, its RGB channels are white and account for roughly 75% of the memory and bandwidth.
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0