Plasma Engine  2.0
Loading...
Searching...
No Matches
RmlUiAsset.h
1#pragma once
2
3#include <EditorFramework/Assets/AssetDocumentGenerator.h>
4#include <EditorFramework/Assets/SimpleAssetDocument.h>
5#include <EditorPluginRmlUi/RmlUiAsset/RmlUiAssetObjects.h>
6
8
9class plRmlUiAssetDocument : public plSimpleAssetDocument<plRmlUiAssetProperties>
10{
12
13public:
15
16protected:
17 virtual plTransformStatus InternalTransformAsset(plStreamWriter& stream, plStringView sOutputTag, const plPlatformProfile* pAssetProfile,
18 const plAssetFileHeader& AssetHeader, plBitflags<plTransformFlags> transformFlags) override;
19
21};
The thumbnail info containing the hash of the file is appended to assets. The serialized size of this...
Definition AssetDocument.h:49
Simple class to handle asset file headers (the very first bytes in all transformed asset files)
Definition AssetFileHeader.h:8
Definition PlatformProfile.h:25
Definition RmlUiAsset.h:10
virtual plTransformStatus InternalCreateThumbnail(const ThumbnailInfo &ThumbnailInfo) override
Override this function to generate a thumbnail. Only called if GetAssetFlags returns plAssetDocumentF...
Definition RmlUiAsset.cpp:111
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 RmlUiAsset.cpp:54
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
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
Definition RmlUiResource.h:23
Definition Declarations.h:114