Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::mesh::preparation_data Struct Reference

#include <mesh.h>

Public Types

enum  flags { source_contains_normal = 0x1 , source_contains_binormal = 0x2 , source_contains_tangent = 0x4 }
 

Public Attributes

uint8_t * vertex_source {nullptr}
 Whether the source data is owned by this object.
 
bool owns_source {false}
 The format of the vertex data currently being used to prepare the mesh.
 
gfx::vertex_layout source_format
 Records the location in the vertex buffer that each vertex has been placed during data insertion.
 
std::vector< uint32_t > vertex_records
 Final vertex buffer currently being prepared.
 
byte_array_t vertex_data
 Additional descriptive information about the vertices.
 
byte_array_t vertex_flags
 Stores the current face/triangle data.
 
triangle_array_t triangle_data
 Total number of triangles currently stored.
 
uint32_t triangle_count {0}
 Total number of vertices currently stored.
 
uint32_t vertex_count {0}
 Prepared substs information.
 
std::vector< submeshsubmeshes
 Whether to compute vertex normals.
 
bool compute_normals {false}
 Whether to compute vertex binormals.
 
bool compute_binormals {false}
 Whether to compute vertex tangents.
 
bool compute_tangents {false}
 Whether to compute vertex barycentric coordinates.
 
bool compute_barycentric {false}
 
bool check_for_degenerates {false}
 
bool compute_per_triangle_material_data {false}
 

Detailed Description

Definition at line 839 of file mesh.h.

Member Enumeration Documentation

◆ flags

Enumerator
source_contains_normal 
source_contains_binormal 
source_contains_tangent 

Definition at line 841 of file mesh.h.

Member Data Documentation

◆ check_for_degenerates

bool unravel::mesh::preparation_data::check_for_degenerates {false}

Definition at line 877 of file mesh.h.

◆ compute_barycentric

bool unravel::mesh::preparation_data::compute_barycentric {false}

Definition at line 875 of file mesh.h.

◆ compute_binormals

bool unravel::mesh::preparation_data::compute_binormals {false}

Whether to compute vertex tangents.

Definition at line 871 of file mesh.h.

◆ compute_normals

bool unravel::mesh::preparation_data::compute_normals {false}

Whether to compute vertex binormals.

Definition at line 869 of file mesh.h.

◆ compute_per_triangle_material_data

bool unravel::mesh::preparation_data::compute_per_triangle_material_data {false}

Definition at line 879 of file mesh.h.

◆ compute_tangents

bool unravel::mesh::preparation_data::compute_tangents {false}

Whether to compute vertex barycentric coordinates.

Definition at line 873 of file mesh.h.

◆ owns_source

bool unravel::mesh::preparation_data::owns_source {false}

The format of the vertex data currently being used to prepare the mesh.

Definition at line 851 of file mesh.h.

◆ source_format

gfx::vertex_layout unravel::mesh::preparation_data::source_format

Records the location in the vertex buffer that each vertex has been placed during data insertion.

Definition at line 853 of file mesh.h.

◆ submeshes

std::vector<submesh> unravel::mesh::preparation_data::submeshes

Whether to compute vertex normals.

Definition at line 867 of file mesh.h.

◆ triangle_count

uint32_t unravel::mesh::preparation_data::triangle_count {0}

Total number of vertices currently stored.

Definition at line 863 of file mesh.h.

◆ triangle_data

triangle_array_t unravel::mesh::preparation_data::triangle_data

Total number of triangles currently stored.

Definition at line 861 of file mesh.h.

◆ vertex_count

uint32_t unravel::mesh::preparation_data::vertex_count {0}

Prepared substs information.

Definition at line 865 of file mesh.h.

◆ vertex_data

byte_array_t unravel::mesh::preparation_data::vertex_data

Additional descriptive information about the vertices.

Definition at line 857 of file mesh.h.

◆ vertex_flags

byte_array_t unravel::mesh::preparation_data::vertex_flags

Stores the current face/triangle data.

Definition at line 859 of file mesh.h.

◆ vertex_records

std::vector<uint32_t> unravel::mesh::preparation_data::vertex_records

Final vertex buffer currently being prepared.

Definition at line 855 of file mesh.h.

◆ vertex_source

uint8_t* unravel::mesh::preparation_data::vertex_source {nullptr}

Whether the source data is owned by this object.

Definition at line 849 of file mesh.h.


The documentation for this struct was generated from the following file: