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.
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.