Files
UnrealEngineUWP/Engine/Source/Runtime/HeadMountedDisplay/Private/HeadMountedDisplayModule.cpp
2014-03-14 14:13:41 -04:00

30 lines
811 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "HeadMountedDisplay.h"
class FHeadMountedDisplayModule : public IHeadMountedDisplayModule
{
virtual TSharedPtr< class IHeadMountedDisplay > CreateHeadMountedDisplay()
{
TSharedPtr<IHeadMountedDisplay> DummyVal = NULL;
return DummyVal;
}
};
IMPLEMENT_MODULE( FHeadMountedDisplayModule, HeadMountedDisplay );
IHeadMountedDisplay::IHeadMountedDisplay()
{
PreFullScreenRect = FSlateRect(-1.f, -1.f, -1.f, -1.f);
}
void IHeadMountedDisplay::PushPreFullScreenRect(const FSlateRect& InPreFullScreenRect)
{
PreFullScreenRect = InPreFullScreenRect;
}
void IHeadMountedDisplay::PopPreFullScreenRect(FSlateRect& OutPreFullScreenRect)
{
OutPreFullScreenRect = PreFullScreenRect;
PreFullScreenRect = FSlateRect(-1.f, -1.f, -1.f, -1.f);
}