Nameless Engine
Loading...
Searching...
No Matches
ne::MeshNodesThatUseThisMaterial Struct Reference

#include <Material.h>

Public Member Functions

size_t getTotalSize () const
 
bool isMeshNodeAdded (MeshNode *pMeshNode)
 

Public Attributes

std::unordered_map< MeshNode *, std::vector< MeshIndexBufferInfo > > visibleMeshNodes
 
std::unordered_map< MeshNode *, std::vector< MeshIndexBufferInfo > > invisibleMeshNodes
 

Detailed Description

Groups mesh nodes by visibility.

Member Function Documentation

◆ getTotalSize()

size_t ne::MeshNodesThatUseThisMaterial::getTotalSize ( ) const
inline

Returns total number of visible and invisible mesh nodes that use this material.

Returns
Total number of nodes that use this material.

◆ isMeshNodeAdded()

bool ne::MeshNodesThatUseThisMaterial::isMeshNodeAdded ( MeshNode pMeshNode)
inline

Tells whether the specified node is already added to be considered.

Parameters
pMeshNodeMesh node to check.
Returns
Whether the node is added or not.

Member Data Documentation

◆ invisibleMeshNodes

std::unordered_map<MeshNode*, std::vector<MeshIndexBufferInfo> > ne::MeshNodesThatUseThisMaterial::invisibleMeshNodes

Stores pairs of "invisible mesh node" - "index buffers of that mesh that use this material".

◆ visibleMeshNodes

std::unordered_map<MeshNode*, std::vector<MeshIndexBufferInfo> > ne::MeshNodesThatUseThisMaterial::visibleMeshNodes

Stores pairs of "visible mesh node" - "index buffers of that mesh that use this material".


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