#include <nCine/Graphics/GL/GLHashMap.h>
template<std:: uint32_t S, class MappingFunc>
GLHashMap class
Naive fixed-size hashmap of OpenGL targets to object ids.
Stores one object id per bucket, where MappingFunc maps an OpenGL target (the key) to a bucket index. Used to cache the currently bound object id for each target. The number of buckets S must match the range of the mapping function.
Constructors, destructors, conversion operators
Public functions
-
auto operator[](key_
t key) -> value_ t& - Returns the bucket for a target, mapping the key through the mapping function.