3#include <EditorFramework/Assets/AssetDocumentGenerator.h>
4#include <EditorFramework/Assets/SimpleAssetDocument.h>
5#include <EditorPluginAssets/TextureAsset/TextureAssetObjects.h>
11 using StorageType = plUInt8;
36 plInt32 m_iTextureLod;
37 bool m_bIsRenderTarget =
false;
40 virtual void InitializeAfterLoading(
bool bFirstTimeCreation)
override;
59 enum class TextureType
77 static TextureType DetermineTextureType(
plStringView sFile);
Provides functionality for importing files as asset documents.
Definition AssetDocumentGenerator.h:23
Definition AssetDocumentInfo.h:7
Definition DynamicArray.h:81
Definition SimpleAssetDocument.h:23
Interface for binary out (write) streams.
Definition Stream.h:107
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Definition TextureAsset.h:52
virtual void GetImportModes(plStringView sAbsInputFile, plDynamicArray< plAssetDocumentGenerator::ImportMode > &out_modes) const override
Used to fill out which import modes may be available for the given asset.
Definition TextureAsset.cpp:590
virtual plStringView GetDocumentExtension() const override
Returns the target asset document file extension.
Definition TextureAsset.h:73
virtual plStringView GetGeneratorGroup() const override
Allows to merge the import modes of multiple generators in the UI in one group.
Definition TextureAsset.h:74
virtual plStatus Generate(plStringView sInputFileAbs, plStringView sMode, plDynamicArray< plDocument * > &out_generatedDocuments) override
Tells the generator to create a new asset document with the chosen mode.
Definition TextureAsset.cpp:763
Definition TextureAsset.h:28
virtual void UpdateAssetDocumentInfo(plAssetDocumentInfo *pInfo) const override
Override this to add custom data (e.g. additional file dependencies) to the info struct.
Definition TextureAsset.cpp:350
virtual plTransformStatus InternalTransformAsset(plStreamWriter &stream, plStringView sOutputTag, const plPlatformProfile *pAssetProfile, const plAssetFileHeader &AssetHeader, plBitflags< plTransformFlags > transformFlags) override
Override this and write the transformed file for the given szOutputTag into the given stream.
Definition TextureAsset.h:41
Definition TextureAssetManager.h:8
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
An plResult with an additional message for the reason of failure.
Definition Status.h:12
Definition TextureAsset.h:10