forked from blender/blender
Rename some functions #25
@ -44,19 +44,6 @@ Engine::Engine(RenderEngine *bl_engine, const std::string &delegate_id) : bl_eng
|
||||
engine_ = std::make_unique<pxr::HdEngine>();
|
||||
}
|
||||
|
||||
Engine::~Engine()
|
||||
{
|
||||
/* Destructor must exists and keep deletion order */
|
||||
scene_delegate_ = nullptr;
|
||||
render_task_delegate_ = nullptr;
|
||||
free_camera_delegate_ = nullptr;
|
||||
simple_light_task_delegate_ = nullptr;
|
||||
render_index_ = nullptr;
|
||||
render_delegate_ = nullptr;
|
||||
engine_ = nullptr;
|
||||
hgi_ = nullptr;
|
||||
}
|
||||
|
||||
float Engine::renderer_percent_done()
|
||||
{
|
||||
pxr::VtDictionary render_stats = render_delegate_->GetRenderStats();
|
||||
|
@ -26,7 +26,7 @@ extern struct CLG_LogRef *LOG_EN; /* EN - Engine */
|
||||
class Engine {
|
||||
public:
|
||||
Engine(RenderEngine *bl_engine, const std::string &render_delegate_id);
|
||||
virtual ~Engine();
|
||||
virtual ~Engine() {};
|
||||
|
||||
virtual void sync(Depsgraph *depsgraph,
|
||||
bContext *context,
|
||||
@ -38,6 +38,7 @@ class Engine {
|
||||
|
||||
RenderEngine *bl_engine_;
|
||||
|
||||
/* The order is important due to deletion order */
|
||||
pxr::HdPluginRenderDelegateUniqueHandle render_delegate_;
|
||||
std::unique_ptr<pxr::HdRenderIndex> render_index_;
|
||||
std::unique_ptr<BlenderSceneDelegate> scene_delegate_;
|
||||
|
Loading…
Reference in New Issue
Block a user