Plugins/LeapMotion/Source/LeapMotion/Private/LeapImage.cpp
UTexture2D* PrivateLeapImage::EnqueuedTexture32FromLeapImage(int32 SrcWidth, int32 SrcHeight, uint8* ImageBuffer)
{
	
	// Lock the texture so it can be modified
	if (Self->PImagePointer == nullptr)
	{
		return nullptr;
	}

	UpdateTextureRegions(Self->PImagePointer, 0, 1, &UpdateTextureRegion, 4 * SrcWidth, 4, ImageBuffer, false);
	return Self->PImagePointer;
}
//Efficiency upgrade - Use render thread to update image - Not currently working properly TODO: fix this version of image fetching
Efficiency upgrade - Use render thread to update image - Not currently working properly TODO: fix this version of image fetching
Efficiency upgrade - Use render thread to update image - Not currently working properly TODO : fix this version of image fetching
UTexture2D* PrivateLeapImage::EnqueuedTexture32FromLeapImage(int32 SrcWidth, int32 SrcHeight, uint8* ImageBuffer)
{
	if (Self->PImagePointer == nullptr)
	{
		return nullptr;
	}
	UpdateTextureRegions(Self->PImagePointer, 0, 1, &UpdateTextureRegion, 4 * SrcWidth, 4, ImageBuffer, false);
	return Self->PImagePointer;
}
UTexture2D * PrivateLeapImage :: EnqueuedTexture32FromLeapImage ( int32 SrcWidth , int32 SrcHeight , uint8 * ImageBuffer ) { if ( Self -> PImagePointer == nullptr ) { return nullptr ; } UpdateTextureRegions ( Self -> PImagePointer , 0 , 1 , & UpdateTextureRegion , 4 * SrcWidth , 4 , ImageBuffer , false ) ; return Self -> PImagePointer ; }
Efficiency upgrade - Use render thread to update image - Not currently working properly TODO: fix this version of image fetching
Efficiency upgrade - Use render thread to update image - Not currently working properly TODO : fix this version of image fetching
// Lock the texture so it can be modified