Skip to content

1.92.0: Constructor wrapper for ImTextureRef from ImTextureID currently missing? #99

@floooh

Description

@floooh

I'm currently porting my backend and code over to 1.92.0 and it seems like there's a constructor wrapper missing for building an ImTextureRef from a ImTextureID.

Currently I need to do something like this (using an ig prefix):

igImage((ImTextureRef){ ._TexID = tex_id}, ...);

...or maybe (not sure if it makes sense, but would be convenient):

Since the C++ API is backward compatible and can continue to be called with a ImTextureID (which will then automatically construct a ImTextureRef... maybe it makes sense to keep the C shim backward compatible by taking a ImTextureID since this seems to be the most common usage, and have a separate igImage_ImTextureRef(...) function which takes an ImTextureRef (since this seems to be a special case)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions