This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some copyright should be here... | |
//modified to work with unreal 4.21 | |
using UnrealBuildTool; | |
using System.IO; | |
public class OpenCV : ModuleRules | |
{ | |
private string ThirdPartyPath | |
{ | |
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../../../ThirdParty/")); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Convenience Wrapper functions | |
//Using TaskGraph | |
FGraphEventRef RunLambdaOnGameThread(TFunction< void()> InFunction) | |
{ | |
return FFunctionGraphTask::CreateAndDispatchWhenReady(InFunction, TStatId(), nullptr, ENamedThreads::GameThread); | |
} | |
FGraphEventRef RunLambdaOnAnyThread(TFunction< void()> InFunction) | |
{ |