Skip to content

Instantly share code, notes, and snippets.

View austinbhale's full-sized avatar
😎
ah

Austin Hale austinbhale

😎
ah
View GitHub Profile
@PreyK
PreyK / OpenCV.Build.cs
Created March 5, 2019 10:27
Modified build script of https://github.com/Brandon-Wilson/OpenCV-Plugin to work un newer unreal versions
// 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/")); }
@getnamo
getnamo / Examples.cpp
Last active June 9, 2023 04:52
Long Running Async Lambdas, lock-free (UE4)
//Convenience Wrapper functions
//Using TaskGraph
FGraphEventRef RunLambdaOnGameThread(TFunction< void()> InFunction)
{
return FFunctionGraphTask::CreateAndDispatchWhenReady(InFunction, TStatId(), nullptr, ENamedThreads::GameThread);
}
FGraphEventRef RunLambdaOnAnyThread(TFunction< void()> InFunction)
{