2024-10-11 16:57:10 +02:00
|
|
|
/*
|
|
|
|
|
EngineCtxFacilities - Implementation of global render engine operational services
|
|
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2024, Hermann Vosseler <Ichthyostega@web.de>
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @file engine-ctx-facilities.hpp
|
|
|
|
|
** Implementation parts of render engine operational services.
|
|
|
|
|
** @warning as of 10/2024 a preliminary integration of Render-Engine underway ////////////////////////////////////////TICKET #1367
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "steam/engine/engine-ctx-facilities.hpp"
|
2024-10-12 04:17:39 +02:00
|
|
|
#include "steam/engine/tracking-heap-block-provider.hpp"
|
2024-10-11 16:57:10 +02:00
|
|
|
|
|
|
|
|
//#include <string>
|
|
|
|
|
//#include <memory>
|
|
|
|
|
//#include <functional>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace steam {
|
|
|
|
|
namespace engine{
|
|
|
|
|
|
|
|
|
|
// using std::string;
|
|
|
|
|
// using lumiera::Subsys;
|
|
|
|
|
// using std::function;
|
|
|
|
|
// using std::bind;
|
2024-10-12 04:17:39 +02:00
|
|
|
using std::make_unique;
|
2024-10-11 16:57:10 +02:00
|
|
|
// using std::ref;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace { // hidden local details of the service implementation....
|
|
|
|
|
|
|
|
|
|
} // (End) hidden service impl details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** storage for the EngineService interface object */
|
|
|
|
|
lib::Depend<EngineCtx> EngineCtx::access;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-14 04:07:47 +02:00
|
|
|
EngineCtx::~EngineCtx() { }
|
|
|
|
|
|
2024-10-11 16:57:10 +02:00
|
|
|
/** */
|
|
|
|
|
EngineCtx::EngineCtx()
|
2024-10-12 04:17:39 +02:00
|
|
|
: services_{make_unique<Facilities>()}
|
|
|
|
|
, mem {services_->getMemProvider()}
|
|
|
|
|
, cache{services_->getCacheProvider()}
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
EngineCtx::Facilities::Facilities()
|
|
|
|
|
: memProvider_{make_unique<TrackingHeapBlockProvider>()} ////////////////////////////////////////TICKET #1367 : only suitable for first prototype
|
|
|
|
|
, cacheProvider_{}
|
2024-10-11 16:57:10 +02:00
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** core operation: blah blubb....
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace steam::engine
|