engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FMeshAttributeArraySetBase类 参考abstract

This is the base class for an attribute array set. 更多...

#include <MeshAttributeArray.h>

+ 类 FMeshAttributeArraySetBase 继承关系图:

Public 成员函数

FORCEINLINE FMeshAttributeArraySetBase (const uint32 InType, const EMeshAttributeFlags InFlags, const int32 InNumberOfElements)
 Constructor
 
FORCEINLINE EMeshAttributeFlags GetFlags () const
 Get the flags for this attribute array set
 
FORCEINLINE int32 GetNumElements () const
 Return number of elements each attribute index has
 
FORCEINLINE uint32 GetType () const
 Get the type index of this attribute array set
 
template<typename T >
FORCEINLINE bool HasType () const
 Determine whether this attribute array set is of the given type
 
FORCEINLINE void SetFlags (const EMeshAttributeFlags InFlags)
 Set the flags for this attribute array set
 
virtual ~FMeshAttributeArraySetBase ()=default
 Virtual interface
 

Protected 属性

EMeshAttributeFlags Flags
 Implementation-defined attribute name flags
 
int32 NumElements
 Number of elements in each index
 
uint32 Type
 Type of the attribute array (based on the tuple element index from AttributeTypes)
 

详细描述

This is the base class for an attribute array set.

An attribute array set is a container which holds attribute arrays, one per attribute index. Many attributes have only one index, while others (such as texture coordinates) may want to define many.

All attribute array set instances will be of derived types; this type exists for polymorphism purposes, so that they can be managed by a generic TUniquePtr<FMeshAttributeArraySetBase>.

In general, we avoid accessing them via virtual dispatch by insisting that their type be passed as a template parameter in the accessor. This can be checked against the Type field to ensure that we are accessing an instance by its correct type.


该类的文档由以下文件生成: