Skip to content

Replace BMPInfo with GenericTexture and optimize Bitmap.ToTexture() #321

@pkr-sadx

Description

@pkr-sadx

Request Information

The BMPInfo class used to convert Bitmaps to textures for 3D editors can be replaced with GenericTexture from TextureLib. The GenericTexture class has fields for texture names and preview bitmaps so it could be used as a drop-in replacement. This will remove an extra conversion step as well as allow access to specific texture properties, such as palettes, in Material Editor and possibly other tools.

In addition to the Bitmap.ToTexture() method, a ToTexture() method could be added to GenericTexture.

For further optimization, the returned Texture could be created with the matching pixel format of the original texture as opposed to converting everything to A8R8G8B8.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions