Files
UnrealEngineUWP/Engine/Source/Programs/TextureShare/TextureShareSDK/Public/TextureShareContainers.h
aurel cordonnier e88b487b29 nDisplay: Fixed TextureSharing regression
#jira UE-120154
#author Peter.Tarasenko
#rb Vitalii Boiko


#ushell-cherrypick of 17053559 by vitalii.boiko

#ROBOMERGE-OWNER: aurel.cordonnier
#ROBOMERGE-AUTHOR: vitalii.boiko
#ROBOMERGE-SOURCE: CL 17053492 in //UE4/Release-4.27/... via CL 17053535 via CL 17056918
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v850-17047176)
#ROBOMERGE-CONFLICT from-shelf

[CL 17058314 by aurel cordonnier in ue5-release-engine-test branch]
2021-08-04 15:59:00 -04:00

77 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#ifndef TEXTURE_SHARE_SDK_DLL
// Unsigned base types.
typedef unsigned char uint8; // 8-bit unsigned.
typedef unsigned int uint32; // 32-bit unsigned.
#endif
#include "TextureShareCoreGenericContainers.h"
struct FTextureShareSDKVector
{
public:
/** Vector's X component. */
float X;
/** Vector's Y component. */
float Y;
/** Vector's Z component. */
float Z;
};
struct FTextureShareSDKRotator
{
public:
/** Rotation around the right axis (around Y axis), Looking up and down (0=Straight Ahead, +Up, -Down) */
float Pitch;
/** Rotation around the up axis (around Z axis), Running in circles 0=East, +North, -South. */
float Yaw;
/** Rotation around the forward axis (around X axis), Tilting your head, 0=Straight, +Clockwise, -CCW. */
float Roll;
};
struct FTextureShareSDKMatrix
{
public:
union
{
float M[4][4];
};
};
struct FTextureShareSDKAdditionalData
{
// Frame info
uint32 FrameNumber;
// Projection matrix
FTextureShareSDKMatrix PrjMatrix;
// View info
FTextureShareSDKMatrix ViewMatrix;
FTextureShareSDKVector ViewLocation;
FTextureShareSDKRotator ViewRotation;
FTextureShareSDKVector ViewScale;
//@todo: add more frame data
};
struct FTextureShareSDKCustomProjectionData
{
// Projection matrix
FTextureShareSDKMatrix PrjMatrix;
FTextureShareSDKVector ViewLocation;
FTextureShareSDKRotator ViewRotation;
FTextureShareSDKVector ViewScale;
};