Navigation
API > API/Plugins > API/Plugins/MutableRuntime > API/Plugins/MutableRuntime/MuR
Inheritance Hierarchy
- Base
- RefCounted
- Resource
- Layout
References
| Module | MutableRuntime |
| Header | /Engine/Plugins/Experimental/Mutable/Source/MutableRuntime/Public/MuR/Layout.h |
| Include | #include "MuR/Layout.h" |
Syntax
class Layout : public mu::Resource
Remarks
It contains the information about what blocks are defined in a texture layout (texture coordinates set from a mesh). It is usually not necessary to use this objects, except for some advanced cases.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | FirstLODToIgnoreWarnings | ||
| TArray< FBlock > | m_blocks | ||
| UE::Math::TIntVector2< uint16 > | m_maxsize | ||
| UE::Math::TIntVector2< uint16 > | m_size | ||
| EPackStrategy | m_strategy | Packing strategy. | |
| EReductionMethod | ReductionMethod |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Layout () |
Life cycle. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~Layout () |
Forbidden. Manage with the Ptr<> template. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| LayoutPtr | Clone () |
Deep clone this layout. | |
| int32 | FindBlock
(
int32 id |
Find a block by id. | |
| void | GetBlock
(
int index, |
Return a block of the layout. "Position" here means the lower-left corner of the block. | |
| int32 | Return the number of blocks in this layout. | ||
| void | GetBlockOptions
(
int index, |
Returns the reduction priority of a block. | |
| EReductionMethod | Returns the block reduction method. | ||
| FIntPoint | GetGridSize () |
Get the resolution of the grid where the blocks are defined. | |
| int32 | Get the LOD where the unassigned vertices warnings starts to be ignored. | ||
| EPackStrategy | Set the texture layout packing strategy. | ||
| void | GetMaxGridSize
(
int* pSizeX, |
Get the maximum resolution of the grid where the blocks are defined. | |
| bool | |||
| bool | Return true if the layout is a single block filling all area. | ||
| void | Serialise
(
OutputArchive& arch |
||
| void | Serialise
(
const Layout* p, |
Serialisation. | |
| void | SetBlock
(
int index, |
Set a block of the layout. "Position" here means the lower-left corner of the block. | |
| void | SetBlockCount
(
int32 |
Set the number of blocks in this layout. | |
| void | SetBlockOptions
(
int index, |
Set the reduction options of a block | |
| void | SetBlockReductionMethod
(
EReductionMethod Method |
Set the block reduction method a the Fixed_Layout strategy. | |
| void | SetGridSize
(
int sizeX, |
Get the resolution of the grid where the blocks are defined. It must be bigger than 0 on each axis. | |
| void | SetIgnoreLODWarnings
(
int32 LOD |
Set at which LOD the unassigned vertices warnings will star to be ignored. | |
| void | SetLayoutPackingStrategy
(
EPackStrategy _strategy |
Set the texture layout packing strategy By default the texture layout packing strategy is set to resizable layout | |
| void | SetMaxGridSize
(
int sizeX, |
Get the maximum resolution of the grid where the blocks are defined. | |
| LayoutPtr | StaticUnserialise
(
InputArchive& arch |
||
| void | Unserialise
(
InputArchive& arch |
Overridden from Resource
| Type | Name | Description | |
|---|---|---|---|
| int32 | GetDataSize () |
Return the size in bytes of all the LODs of the image. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const Layout& other |
Full compare. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FBlock |