Agrarsense
|
#include <UnrealWindowViewportClient.h>
Public Member Functions | |
virtual void | Draw (FViewport *Viewport, FCanvas *Canvas) override |
virtual bool | InputKey (FViewport *Viewport, int32 ControllerId, FKey Key, EInputEvent Event, float AmountDepressed=1.0f, bool bGamepad=false) override |
virtual bool | InputAxis (FViewport *Viewport, int32 ControllerId, FKey Key, float Delta, float DeltaTime, int32 NumSamples=1, bool bGamepad=false) override |
virtual bool | InputGesture (FViewport *Viewport, EGestureEvent GestureType, const FVector2D &GestureDelta, bool bIsDirectionInvertedFromDevice) override |
virtual UWorld * | GetWorld () const override |
virtual void | RedrawRequested (FViewport *Viewport) override |
Public Attributes | |
TWeakObjectPtr< UTextureRenderTarget2D > | TextRenderTarget2D |
FTexture * | texture = nullptr |
int | width = 1280 |
int | height = 720 |
Custom Viewport client, where we have access to canvas on Draw function. This is the place where we issue canvas draw call to present SceneCaptureComponent Texture to custom window
Definition at line 20 of file UnrealWindowViewportClient.h.
|
overridevirtual |
FViewportClient interface
Definition at line 11 of file UnrealWindowViewportClient.cpp.
|
inlineoverridevirtual |
Definition at line 30 of file UnrealWindowViewportClient.h.
|
overridevirtual |
Definition at line 31 of file UnrealWindowViewportClient.cpp.
|
overridevirtual |
Definition at line 36 of file UnrealWindowViewportClient.cpp.
|
overridevirtual |
Definition at line 26 of file UnrealWindowViewportClient.cpp.
|
inlineoverridevirtual |
Definition at line 31 of file UnrealWindowViewportClient.h.
int FUnrealWindowViewportClient::height = 720 |
Definition at line 36 of file UnrealWindowViewportClient.h.
Referenced by Draw().
TWeakObjectPtr<UTextureRenderTarget2D> FUnrealWindowViewportClient::TextRenderTarget2D |
Definition at line 33 of file UnrealWindowViewportClient.h.
FTexture* FUnrealWindowViewportClient::texture = nullptr |
Definition at line 34 of file UnrealWindowViewportClient.h.
Referenced by Draw().
int FUnrealWindowViewportClient::width = 1280 |
Definition at line 35 of file UnrealWindowViewportClient.h.
Referenced by Draw().