Search Results for

    Show / Hide Table of Contents

    Class ImGUIHelpers

    Helper methods to work with the Imgui API.

    Inheritance
    object
    ImGUIHelpers
    Namespace: Evergine.UI
    Assembly: Evergine.ImGui.dll
    Syntax
    public static class ImGUIHelpers

    Methods

    DownloadTextureFromUrl(string)

    Downloads an image from a specified URL and creates a Texture object from it.

    Declaration
    public static Task<Texture> DownloadTextureFromUrl(string url)
    Parameters
    Type Name Description
    string url

    The URL of the image to download and convert to a Texture.

    Returns
    Type Description
    Task<Texture>

    A Task that represents the asynchronous operation. The task result contains the created Texture object.

    LoadTextureFromFile(string)

    Loads an image file from the local file system and creates a Texture object from it.

    Declaration
    public static Task<Texture> LoadTextureFromFile(string filepath)
    Parameters
    Type Name Description
    string filepath

    The path to the image file to load.

    Returns
    Type Description
    Task<Texture>

    A Task that represents the asynchronous operation. The task result contains the created Texture object.

    Pointer(ref Matrix4x4)

    Gets the matrix pointer to the first float.

    Declaration
    public static float* Pointer(this ref Matrix4x4 matrix)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    Matrix instance.

    Returns
    Type Description
    float*

    float* Pointer to the first float.

    Pointer(ref bool)

    Gets the byte pointer from a bool.

    Declaration
    public static byte* Pointer(this ref bool b)
    Parameters
    Type Name Description
    bool b

    Boolean instance.

    Returns
    Type Description
    byte*

    byte* pointer.

    In this article
    Back to top
    Generated by DocFX