Skip to main content
Version: 20 Mar 2024

MLOcclusionMesh

Module: Occlusion

Structure for occlusion mesh data. More...

#include <ml_occlusion.h>

Public Attributes

TypeName
uint32_tversion
MLTimetimestamp
uint32_tindex_count
uint32_tvertex_count
MLVec3f *vertex
Pointer to the vertex buffer. All vertices are placed w.r.t. world origin.
uint32_t *index
Pointer to index buffer. In the index buffer each value is the index of a vertex in the vertex buffer. Three indices define one triangle. For example, the first triangle will have the vertices: vertex[index[0]], vertex[index[1]], vertex[index[2]]. Index order is CW.

Detailed Description

struct MLOcclusionMesh;

Structure for occlusion mesh data.

API Level:

  • 28

Public Attributes Documentation

version

uint32_t version;

Struct version.


timestamp

MLTime timestamp;

The timestamp when data was generated.


index_count

uint32_t index_count;

The number of indices in index buffer.


vertex_count

uint32_t vertex_count;

The number of vertices in vertex buffer.


vertex

MLVec3f * vertex;

Pointer to the vertex buffer. All vertices are placed w.r.t. world origin.


index

uint32_t * index;

Pointer to index buffer. In the index buffer each value is the index of a vertex in the vertex buffer. Three indices define one triangle. For example, the first triangle will have the vertices: vertex[index[0]], vertex[index[1]], vertex[index[2]]. Index order is CW.