.. _program_listing_file_PrismEngine_src_textureStorage.h: Program Listing for File textureStorage.h ========================================= |exhale_lsh| :ref:`Return to documentation for file ` (``PrismEngine/src/textureStorage.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "utils.h" #include "layersMacroses.h" #include "pgcLayersObjsTemplate.h" #include "textureLoader.h" DECLARE_PGC_LAYER_INSTANCE(L1) class TextureStorage : public L1_Object { public: void createImpl(); TextureId load(std::string texturePath); std::shared_ptr get(TextureId textureId); bool remove(TextureId textureId); void cleanupImpl(); private: void updateDescriptors(); uint32_t getNextAvailableIndex(utils::Context* context); std::vector textures; std::vector freeTextureIndices; PGC::L2::TextureLoader* textureLoader; }; END_NAMESPACE_DECLARATION