GLTextureMappingFunc class
#include <nCine/Graphics/GL/GLHashMap.h>
Maps OpenGL texture targets to bucket indices.
Mapping function for GLHashMap that turns texture targets (GL_TEXTURE_2D, GL_TEXTURE_3D, ...) into contiguous indices.
Public static variables
-
static const std::
uint32_t Size - Number of distinct texture targets, i.e. the required bucket count.
Public functions
-
auto operator()(key_
t key) const -> std:: uint32_t - Returns the bucket index for a texture target.