SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches
SRL::Types::Mesh Struct Reference

Detailed Description

3D managed mesh data

#include <srl_mesh.hpp>

Inheritance diagram for SRL::Types::Mesh:
SRL::Types::MeshData SRL::SGL::SglType< MeshData, PDATA >

Public Member Functions

constexpr Mesh ()
 Construct a new empty mesh object.
 Mesh (const size_t &vertexCount, const size_t &faceCount)
 Construct a new empty mesh object and initialize its arrays.
 Mesh (const size_t &vertexCount, SRL::Math::Types::Vector3D *vertices, const size_t &faceCount, Polygon *faces, Attribute *attributes)
 Construct a new mesh object from existing data.
 ~Mesh ()
 Destroy the Mesh object.
Meshoperator= (Mesh &&other) noexcept
 Move assignment operator.
const PDATA * SglConstPtr () const
 Get pointer to SGL type.
PDATA * SglPtr ()
 Get pointer to SGL type.

Public Attributes

AttributeAttributes = nullptr
 Face attributes.
size_t FaceCount = 0
 Number of faces.
PolygonFaces = nullptr
 Mesh faces.
size_t VertexCount = 0
 Number of vertices of the mesh.
SRL::Math::Types::Vector3DVertices = nullptr
 Vertices of the mesh.