9 auto it = textures_.find(
id);
10 if(it != textures_.end())
15 return textures_[std::string(
id)];
20 const auto& tex = tex_safe_get(
id);
21 assert(tex !=
nullptr &&
"Trying to get non existent element");
28 auto it = textures_.find(
id);
29 if(it != textures_.end())
41 auto it = textures_.find(
id);
42 if(it != textures_.end())
50 auto it = fbos_.find(
id);
56 return fbos_[std::string(
id)];
61 const auto& fbo = fbo_safe_get(
id);
62 assert(fbo !=
nullptr &&
"Trying to get non existent element");
68 auto it = fbos_.find(
id);
80 auto it = fbos_.find(
id);
89 auto it = data_.find(
id);
95 return data_.emplace(std::string(
id), default_val).first->second;
100 auto it = data_.find(
id);
101 if(it != data_.end())
std::shared_ptr< texture > ptr
auto fbo_safe_get(const hpp::string_view &id) const -> const frame_buffer::ptr &
void tex_remove(const hpp::string_view &id)
auto data_get(const hpp::string_view &id, uint32_t default_val=0) const -> uint32_t
auto fbo_get_or_emplace(const hpp::string_view &id) -> frame_buffer::ptr &
auto fbo_get(const hpp::string_view &id) const -> const frame_buffer::ptr &
auto tex_get(const hpp::string_view &id) const -> const texture::ptr &
auto tex_safe_get(const hpp::string_view &id) const -> const texture::ptr &
void fbo_remove(const hpp::string_view &id)
auto tex_get_or_emplace(const hpp::string_view &id) -> texture::ptr &
auto data_get_or_emplace(const hpp::string_view &id, uint32_t default_val=0) -> uint32_t &