![]() |
XII Release 0.1.0
|
Public Types | |
enum class | TextureType { Diffuse , Normal , Occlusion , Roughness , Metalness , ORM , Height , HDR , Linear } |
Public Member Functions | |
virtual void | GetImportModes (xiiStringView sAbsInputFile, xiiDynamicArray< xiiAssetDocumentGenerator::ImportMode > &out_modes) const override |
Used to fill out which import modes may be available for the given asset. | |
virtual xiiStringView | GetDocumentExtension () const override |
Returns the target asset document file extension. | |
virtual xiiStringView | GetGeneratorGroup () const override |
Allows to merge the import modes of multiple generators in the UI in one group. | |
virtual xiiStatus | Generate (xiiStringView sInputFileAbs, xiiStringView sMode, xiiDynamicArray< xiiDocument * > &out_generatedDocuments) override |
Tells the generator to create a new asset document with the chosen mode. | |
![]() | |
xiiStatus | Import (xiiStringView sInputFileAbs, xiiStringView sMode, bool bOpenDocument) |
Imports the given file with the mode. Must be a mode that the generator supports. | |
bool | SupportsFileType (xiiStringView sFile) const |
Returns whether this generator supports the given file type for import. | |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const xiiRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T> | |
XII_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Static Public Member Functions | |
static TextureType | DetermineTextureType (xiiStringView sFile) |
![]() | |
static void | GetSupportsFileTypes (xiiSet< xiiString > &out_extensions) |
Creates a list of all importable file extensions. Note that this is an expensive function so the the result should be cached. | |
static void | ImportAssets () |
Opens a file browse dialog to let the user choose which files to import. | |
static void | ImportAssets (const xiiDynamicArray< xiiString > &filesToImport) |
Opens the "Asset Import" dialog to let the user choose how to import the given files. | |
static void | CreateGenerators (xiiHybridArray< xiiAssetDocumentGenerator *, 16 > &out_generators) |
Instantiates all currently available generators. | |
static void | DestroyGenerators (const xiiHybridArray< xiiAssetDocumentGenerator *, 16 > &generators) |
Destroys the previously instantiated generators. | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
Additional Inherited Members | |
![]() | |
void | AddSupportedFileType (xiiStringView sExtension) |
|
overridevirtual |
Tells the generator to create a new asset document with the chosen mode.
Implements xiiAssetDocumentGenerator.
|
inlineoverridevirtual |
Returns the target asset document file extension.
Implements xiiAssetDocumentGenerator.
|
inlineoverridevirtual |
Allows to merge the import modes of multiple generators in the UI in one group.
Implements xiiAssetDocumentGenerator.
|
overridevirtual |
Used to fill out which import modes may be available for the given asset.
Note: sAbsInputFile may be empty, in this case it should fill out the array for "general purpose" import (any file of the supported types).
Implements xiiAssetDocumentGenerator.