[BUG T3D 1.0] GuiInspectorTypeImageFileName don`t get DDS as image file for load
by Luis Anton Rebollo · in Torque 3D Professional · 10/03/2009 (6:05 am) · 2 replies
Somes gui controls define their bitmap field as GuiInspectorTypeImageFileName, and then file inspector not get dds as a valid image file.
About the author
I'm working on a port of Torque3D to OpenGL and Linux/SteamOS
#2
Good catch. Will make the inspector add .dds to the list.
The codebase still has a very unfortunate split between GBitmap (which can load PNG, JPG, etc) and DDSFile (which loads dds files). These are two separate and incompatible classes so any code that wants to allow dds files to be used needs to explicitly provide a separate codepath for DDSFile. There should really be an abstract baseclass here so that code can transparently work with the two classes.
So far, GuiInspectorTypeImageFileName exclusively queries GBitmap for file extensions. However, a quick scan over the codebase shows that all users of TypeImageFilename appear to use them as texture files which works with both GBitmap and DDSFile.
10/03/2009 (11:51 am)
Good catch. Will make the inspector add .dds to the list.
The codebase still has a very unfortunate split between GBitmap (which can load PNG, JPG, etc) and DDSFile (which loads dds files). These are two separate and incompatible classes so any code that wants to allow dds files to be used needs to explicitly provide a separate codepath for DDSFile. There should really be an abstract baseclass here so that code can transparently work with the two classes.
So far, GuiInspectorTypeImageFileName exclusively queries GBitmap for file extensions. However, a quick scan over the codebase shows that all users of TypeImageFilename appear to use them as texture files which works with both GBitmap and DDSFile.
Associate Steve Acaster
[YorkshireRifles.com]