Agrarsense
UnrealWindowViewport.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Core.h"
10#include "Engine/World.h"
11#include "Widgets/SCompoundWidget.h"
13#include "Slate/SceneViewport.h"
14#include "Widgets/SViewport.h"
15#include "Widgets/Input/SComboBox.h"
16#include "Widgets/DeclarativeSyntaxSupport.h"
17#include "Layout/Geometry.h"
18
22class SUnrealWindowViewport : public SCompoundWidget
23{
24
25public:
26
28 SLATE_END_ARGS()
29
30public:
31
32 void Construct(const FArguments& InArgs);
33
35 TSharedPtr<FSceneViewport> SceneViewport;
36 TSharedPtr<SViewport> Viewport;
37
38 bool DrawToScreen = true;
39
40public:
41
42 virtual void Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override;
43
44};
void Construct(const FArguments &InArgs)
virtual void Tick(const FGeometry &AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override
TSharedPtr< FSceneViewport > SceneViewport
TSharedPtr< FUnrealWindowViewportClient > ViewportClient
SLATE_BEGIN_ARGS(SUnrealWindowViewport)
TSharedPtr< SViewport > Viewport