28 #ifndef BERSERK_RESMESH_HPP
29 #define BERSERK_RESMESH_HPP
95 std::vector<SubMesh> mSubMeshes;
#define BRK_NS_END
Definition: Config.hpp:48
#define BRK_API
Definition: Config.hpp:32
std::uint32_t uint32
Definition: Typedefs.hpp:44
Texture import options.
Definition: ResMesh.hpp:50
BRK_API ~ResMeshImportOptions() override=default
BRK_API ResMeshImportOptions()=default
bool indexed
Definition: ResMesh.hpp:59
bool flipUVs
Definition: ResMesh.hpp:57
MeshFormat meshFormat
Definition: ResMesh.hpp:55
bool triangulate
Definition: ResMesh.hpp:58
3d mesh geometry for rendering
Definition: ResMesh.hpp:66
BRK_API void AddSubMesh(const StringName &name, RHIPrimitivesType primitivesType, const Aabbf &aabb, uint32 baseVertex, RHIIndexType indexType, uint32 indicesCount, const Ref< Data > &indexData)
Definition: ResMesh.cpp:56
BRK_API ResMesh()=default
BRK_API void SetAabb(const Aabbf &aabb)
Definition: ResMesh.cpp:73
BRK_API void CreateFromArrays(MeshFormat format, uint32 verticesCount, const MeshArrays &arrays)
Definition: ResMesh.cpp:42
BRK_API const StringName & GetResourceType() const override
Definition: ResMesh.cpp:33
BRK_API ~ResMesh() override=default
BRK_API const Ref< Mesh > & GetMesh() const
Definition: ResMesh.hpp:90
BRK_API void CreateFromData(MeshFormat format, uint32 verticesCount, const Ref< Data > &vertexData, const Ref< Data > &attributeData, const Ref< Data > &skinningData)
Definition: ResMesh.cpp:49
static BRK_API const StringName & GetResourceTypeStatic()
Definition: ResMesh.cpp:37
BRK_API const std::vector< SubMesh > & GetSubMeshes() const
Definition: ResMesh.hpp:91
Base class for import options to import specific resource.
Definition: ResourceImporter.hpp:48
Base class for any engine resource object.
Definition: Resource.hpp:48
Cached shared utf-8 string id.
Definition: StringName.hpp:61
RHIIndexType
Definition: RHIDefs.hpp:57
RHIPrimitivesType
Definition: RHIDefs.hpp:220
Definition: GLDevice.cpp:46
Struct describing mesh data per attribute.
Definition: Mesh.hpp:105
Single sub-mesh info.
Definition: ResMesh.hpp:69
RHIPrimitivesType primitivesType
Definition: ResMesh.hpp:74
uint32 baseVertex
Definition: ResMesh.hpp:70
uint32 verticesCount
Definition: ResMesh.hpp:71
RHIIndexType indexType
Definition: ResMesh.hpp:73
Aabbf aabb
Definition: ResMesh.hpp:76
uint32 indicesCount
Definition: ResMesh.hpp:72
Ref< ResMaterial > material
Definition: ResMesh.hpp:75