SelectionRenderer::SelectionRenderer() :mCore(nullptr) { HMaterial selectionMat = BuiltinEditorResources::instance().createSelectionMat(); mCore.store(bs_new<SelectionRendererCore>(SelectionRendererCore::PrivatelyConstuct()), std::memory_order_release); gCoreAccessor().queueCommand(std::bind(&SelectionRenderer::initializeCore, this, selectionMat->getCore())); }
SelectionRenderer::SelectionRenderer() { HMaterial selectionMat = BuiltinEditorResources::instance().createSelectionMat(); mRenderer = RendererExtension::create<ct::SelectionRendererCore>(selectionMat->getCore()); }