Add support for editing texture group in editor (without reimporting)

This commit is contained in:
Wojtek Figat
2021-06-18 10:49:04 +02:00
parent 2d88ed17d4
commit 3b31fd7c71
16 changed files with 141 additions and 91 deletions

View File

@@ -50,9 +50,6 @@ protected:
StreamingTexture _texture;
InitData* _customData;
private:
BinaryAsset* _parent;
public:
@@ -126,6 +123,16 @@ public:
/// Gets the total memory usage that texture may have in use (if loaded to the maximum quality). Exact value may differ due to memory alignment and resource allocation policy.
/// </summary>
API_PROPERTY() uint64 GetTotalMemoryUsage() const;
/// <summary>
/// Gets the index of the texture group used by this texture.
/// </summary>
API_PROPERTY() int32 GetTextureGroup() const;
/// <summary>
/// Sets the index of the texture group used by this texture.
/// </summary>
API_PROPERTY() void SetTextureGroup(int32 textureGroup);
public:
@@ -155,7 +162,7 @@ public:
protected:
virtual int32 calculateChunkIndex(int32 mipIndex) const;
virtual int32 CalculateChunkIndex(int32 mipIndex) const;
private: