nCine::GLBufferObjectMappingFunc class

Maps OpenGL buffer object targets to bucket indices.

Mapping function for GLHashMap that turns buffer object targets (GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, ...) into contiguous indices.

Public static variables

static const std::uint32_t Size
Number of distinct buffer object targets, i.e. the required bucket count.

Public functions

auto operator()(key_t key) const -> std::uint32_t
Returns the bucket index for a buffer object target.