template<class AllocationPolicy>
glpp::core::object::texture_atlas_slot_t class

helper class representing a binding of a texture_atlas_t object to a texture unit

This class is a RAII wrapper for the binding of all related textures of a texture_atlas_t object to texture units. It can be created by calling texture_atlas_t::bind_to_texture_slot(). Upon destruction the binding will be released and the texture unit can be reused. The texture_atlas_slot_t class will keep track of the bound texture units. Changeing the global state with plain OpenGL calls may lead to conflicts.

Public types

using const_iterator_t = typename storage_t::const_iterator
const iterator type
using storage_t = typename AllocationPolicy::slot_storage_t
storage type for individal texture slots of assiciated textures

Constructors, destructors, conversion operators

texture_atlas_slot_t(texture_atlas_slot_t&& mov) defaulted
move constructor
texture_atlas_slot_t(const texture_atlas_slot_t& cpy) deleted
copy constructor

Public functions

auto begin() const -> const_iterator_t
returns iterator to first texture slot of the range of owned texture slots
auto end() const -> const_iterator_t
returns iterator to the texture slot following the last texture slot of the range of owned texture slots
auto operator=(texture_atlas_slot_t&& mov) -> texture_atlas_slot_t& defaulted
move assignment operator
auto operator=(const texture_atlas_slot_t& cpy) -> texture_atlas_slot_t& deleted
copy assignment operator

Function documentation

template<class AllocationPolicy>
glpp::core::object::texture_atlas_slot_t<AllocationPolicy>::texture_atlas_slot_t(texture_atlas_slot_t&& mov) defaulted

move constructor

texture_atlas_slot_t is move constructible.

template<class AllocationPolicy>
glpp::core::object::texture_atlas_slot_t<AllocationPolicy>::texture_atlas_slot_t(const texture_atlas_slot_t& cpy) deleted

copy constructor

texture_atlas_slot_t is not copy constructible.

template<class AllocationPolicy>
const_iterator_t glpp::core::object::texture_atlas_slot_t<AllocationPolicy>::begin() const

returns iterator to first texture slot of the range of owned texture slots

returns iterator to first texture slot of the range of owned texture slots

template<class AllocationPolicy>
const_iterator_t glpp::core::object::texture_atlas_slot_t<AllocationPolicy>::end() const

returns iterator to the texture slot following the last texture slot of the range of owned texture slots

returns iterator to the texture slot following the last texture slot of the range of owned texture slots

template<class AllocationPolicy>
texture_atlas_slot_t& glpp::core::object::texture_atlas_slot_t<AllocationPolicy>::operator=(texture_atlas_slot_t&& mov) defaulted

move assignment operator

texture_atlas_slot_t is move assignable.

template<class AllocationPolicy>
texture_atlas_slot_t& glpp::core::object::texture_atlas_slot_t<AllocationPolicy>::operator=(const texture_atlas_slot_t& cpy) deleted

copy assignment operator

texture_atlas_slot_t is not copy assignable.