CUGL 3.0
Cornell University Game Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cugl::scene3::VertexHasher Struct Reference

#include <CUObjModel.h>

Public Member Functions

std::size_t operator() (const VertexInfo &info) const
 

Detailed Description

This struct is a hash function for VertexInfo.

This function allows us to use VertexInfo as a key in STL containers like unordered_set and unordered_map.

Member Function Documentation

◆ operator()()

std::size_t cugl::scene3::VertexHasher::operator() ( const VertexInfo info) const
inline

Returns a hashs code for the given info

Parameters
infoThe vertex info to hash
Returns
a hashs code for the given info

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