You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
28 lines
785 B
C++
28 lines
785 B
C++
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "SparseVolumeTextureModule.h"
|
||
|
|
|
||
|
|
#include "SparseVolumeTextureOpenVDB.h"
|
||
|
|
|
||
|
|
#define LOCTEXT_NAMESPACE "SparseVolumeTextureModule"
|
||
|
|
|
||
|
|
IMPLEMENT_MODULE(FSparseVolumeTextureModule, SparseVolumeTexture);
|
||
|
|
|
||
|
|
void FSparseVolumeTextureModule::StartupModule()
|
||
|
|
{
|
||
|
|
IAssetTools& AssetTools = FModuleManager::LoadModuleChecked<FAssetToolsModule>(TEXT("AssetTools")).Get();
|
||
|
|
AssetTypeActionsForSparseVolumeTexture = MakeShareable(new FAssetTypeActions_SparseVolumeTexture);
|
||
|
|
AssetTools.RegisterAssetTypeActions(AssetTypeActionsForSparseVolumeTexture.ToSharedRef());
|
||
|
|
|
||
|
|
#if PLATFORM_WINDOWS
|
||
|
|
// Global registration of the vdb types.
|
||
|
|
openvdb::initialize();
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
void FSparseVolumeTextureModule::ShutdownModule()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
#undef LOCTEXT_NAMESPACE
|