RenderTarget* AssetManager::LoadRenderTargets(const std::string& textName) { std::string fullPath = GetAbsolutePathOfFile(textName); //check if file exists if (!boost::filesystem::exists(boost::filesystem::path(fullPath))) throw std::exception("Render Target does not exist"); RenderTarget* pRenderTarget = new RenderTarget(); // Default values - will be resized later unsigned textureWidth = Engine::getInstance()->GetVRWnd()->GetWindowWidth(); unsigned textureHeight = Engine::getInstance()->GetVRWnd()->GetWindowHeight(); pRenderTarget->InitRenderTarget(textureWidth, textureHeight, Renderer::getInstance()->GetFrameBufferFormat()); return pRenderTarget; }