Engine.GameViewportClient
- Extends
- Object
- Modifiers
- within Engine transient native Inherits ( FViewportClient ) Inherits ( FExec ) config ( Engine )
A game viewport (FViewport) is a high-level abstract interface for the
platform specific rendering, audio, and input subsystems.
GameViewportClient is the engine's interface to a game viewport.
Exactly one GameViewportClient is created for each instance of the game. The
only case (so far) where you might have a single instance of Engine, but
multiple instances of the game (and thus multiple GameViewportClients) is when
you have more than one PIE window running.
Responsibilities:
propagating input events to the global interactions list
Copyright 1998-2011 Epic Games, Inc. All Rights Reserved.
Core.Object
|
+-- Engine.GameViewportClient
Direct Known Subclasses:
UDKGameViewportClient
Inherited Contants from Core.Object |
AspectRatio16x9, AspectRatio4x3, AspectRatio5x4, DegToRad, DegToUnrRot, INDEX_NONE, InvAspectRatio16x9, InvAspectRatio4x3, InvAspectRatio5x4, MaxInt, Pi, RadToDeg, RadToUnrRot, UnrRotToDeg, UnrRotToRad |
Inherited Variables from Core.Object |
Class, HashNext, HashOuterNext, Linker, LinkerIndex, Name, NetIndex, ObjectArchetype, ObjectFlags, ObjectInternalInteger, Outer, StateFrame, VfTableObject |
Enumerations Summary |
ESafeZoneType eSZ_TOP,
eSZ_BOTTOM,
eSZ_LEFT,
eSZ_RIGHT,
|
ESplitScreenType eSST_NONE,
eSST_2P_HORIZONTAL,
eSST_2P_VERTICAL,
eSST_3P_FAVOR_TOP,
eSST_3P_FAVOR_BOTTOM,
eSST_4P,
|
Inherited Structures from Core.Object |
Array_Mirror, BitArray_Mirror, BoneAtom, Box, BoxSphereBounds, Color, Cylinder, double, FColorVertexBuffer_Mirror, Guid, IndirectArray_Mirror, InlinePointerArray_Mirror, InterpCurveFloat, InterpCurveLinearColor, InterpCurvePointFloat, InterpCurvePointLinearColor, InterpCurvePointQuat, InterpCurvePointTwoVectors, InterpCurvePointVector, InterpCurvePointVector2D, InterpCurveQuat, InterpCurveTwoVectors, InterpCurveVector, InterpCurveVector2D, IntPoint, LinearColor, Map_Mirror, Matrix, MultiMap_Mirror, OctreeElementId, Plane, pointer, Quat, qword, RawDistribution, RenderCommandFence, RenderCommandFence_Mirror, Rotator, Set_Mirror, SHVector, SHVectorRGB, SparseArray_Mirror, TAlphaBlend, ThreadSafeCounter, TPOV, TwoVectors, UntypedBulkData_Mirror, Vector, Vector2D, Vector4 |
Delegates Summary |
 | bool | HandleInputAxis (int ControllerId, name Key, float Delta, float DeltaTime, bool bGamepad) |
 | bool | HandleInputChar (int ControllerId, string Unicode) |
 | bool | HandleInputKey (int ControllerId, name Key, EInputEvent EventType, float AmountDepressed, optional bool bGamepad) |
Functions Summary |
 | int | AddLocalPlayer (LocalPlayer NewPlayer ))
|
 | | BecomePrimaryPlayer (int PlayerIndex))
|
 | bool | CalculateDeadZoneForAllSides (LocalPlayer LPlayer, Canvas Canvas, out float fTopSafeZone, out float fBottomSafeZone, out float fLeftSafeZone, out float fRightSafeZone, optional bool bUseMaxPercent ))
|
 | | CalculateSafeZoneValues (out float out_Horizontal, out float out_Vertical, canvas Canvas, int LocalPlayerIndex, bool bUseMaxPercent ))
|
 | | ClearProgressMessages ()))
|
 | string | ConsoleCommand (string Command)
|
 | int | ConvertLocalPlayerToGamePlayerIndex (LocalPlayer LPlayer ))
|
 | bool | CreateInitialPlayer (out string OutError ))
|
 | LocalPlayer | CreatePlayer (int ControllerId, out string OutError, bool bSpawnActor))
|
 | | DebugCreatePlayer (int ControllerId))
|
 | | DebugRemovePlayer (int ControllerId))
|
 | | DebugSetUISystemEnabled (bool bOldUISystemActive, bool bGFxUISystemActive)
|
 | | DisplayProgressMessage (Canvas Canvas))
|
 | | DrawTitleSafeArea (canvas Canvas ))
|
 | | DrawTransition (Canvas Canvas))
|
 | | DrawTransitionMessage (Canvas Canvas, tring Message))
|
 | LocalPlayer | FindPlayerByControllerId (int ControllerId))
|
 | | FixupOwnerReferences ()
|
 | | GameSessionEnded ()))
|
 | class<UIInteraction> | GetCustomInteractionClass (int InIndex)
|
 | int | GetNumCustomInteractions ()
|
 | | GetPixelSizeOfScreen (out float out_Width, out float out_Height, canvas Canvas, int LocalPlayerIndex ))
|
 | LocalPlayer | GetPlayerOwner (int PlayerIndex)
|
 | ESplitScreenType | GetSplitscreenConfiguration ()))
|
 | | GetSubtitleRegion (out vector2D MinPos, out vector2D MaxPos))
|
 | | GetViewportSize (out Vector2D out_ViewportSize)
|
 | bool | HasBottomSafeZone (int LocalPlayerIndex ))
|
 | bool | HasLeftSafeZone (int LocalPlayerIndex ))
|
 | bool | HasRightSafeZone (int LocalPlayerIndex ))
|
 | bool | HasTopSafeZone (int LocalPlayerIndex ))
|
 | bool | Init (out string OutError))
|
 | int | InsertInteraction (Interaction NewInteraction, optional int InIndex = -1 ))
|
 | bool | IsFullScreenViewport ()
|
 | | LayoutPlayers ()))
|
 | | NotifyConnectionError (EProgressMessageType MessageType, optional string Message=Localize("Errors", "ConnectionFailed""ConnectionFailed", "Engine")"Engine"), optional string Title=Localize("Errors", "ConnectionFailed_Title""ConnectionFailed_Title", "Engine") ))
|
 | | NotifyPlayerAdded (int PlayerIndex, LocalPlayer AddedPlayer ))
|
 | | NotifyPlayerRemoved (int PlayerIndex, LocalPlayer RemovedPlayer ))
|
 | | OnPrimaryPlayerSwitch (LocalPlayer OldPrimaryPlayer, LocalPlayer NewPrimaryPlayer)
|
 | | PostRender (Canvas Canvas))
|
 | int | RemoveLocalPlayer (LocalPlayer ExistingPlayer ))
|
 | bool | RemovePlayer (LocalPlayer ExPlayer))
|
 | | SetConsoleTarget (int PlayerIndex))
|
 | | SetCustomInteractionObject (Interaction InInteraction)
|
 | | SetProgressMessage (EProgressMessageType MessageType, string Message, optional string Title, optional bool bIgnoreFutureNetworkMessages))
|
 | | SetProgressTime (float T))
|
 | | SetSplit (int mode ))
|
 | | SetSplitscreenConfiguration (ESplitScreenType SplitType ))
|
 | bool | ShouldForceFullscreenViewport () con)
|
 | | ShowTitleSafeArea ()))
|
 | | SSSwapControllers ()))
|
 | | Tick (float DeltaTime)
|
 | | UpdateActiveSplitscreenType ()))
|
Inherited Functions from Core.Object |
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, Asc, Asin, Atan, Atan2, BeginState, ByteToFloat, Caps, Chr, Clamp, ClampLength, ClampRotAxis, ClampRotAxisFromBase, ClampRotAxisFromRange, ClassIsChildOf, ClockwiseFrom, ColorToLinearColor, ContinuedState, Cos, Cross, DebugBreak, Disable, Dot, DumpStateStack, DynamicLoadObject, Enable, EndState, EvalInterpCurveFloat, EvalInterpCurveVector, EvalInterpCurveVector2D, Exp, FCeil, FClamp, FCubicInterp, FFloor, FindDeltaAngle, FindObject, FInterpConstantTo, FInterpEaseIn, FInterpEaseInOut, FInterpEaseOut, FInterpTo, float, FloatToByte, FMax, FMin, FPctByRange, FRand, GetAngularDegreesFromRadians, GetAngularDistance, GetAngularFromDotDist, GetAxes, GetBuildChangelistNumber, GetDotDistance, GetEngineVersion, GetEnum, GetFuncName, GetHeadingAngle, GetMappedRangeValue, GetPackageName, GetPerObjectConfigSections, GetRangePctByValue, GetRangeValueByPct, GetRightMost, GetRotatorAxis, GetScriptTrace, GetStateName, GetSystemTime, GetUnAxes, GotoState, InCylinder, InStr, InverseTransformNormal, InverseTransformVector, IsA, IsChildState, IsInState, IsPendingKill, IsUTracing, IsZero, JoinArray, Left, Len, Lerp, LerpColor, Localize, Locs, Loge, LogInternal, MakeColor, MakeLinearColor, MakeRotationMatrix, MakeRotationTranslationMatrix, MakeRotator, MatrixGetAxis, MatrixGetOrigin, MatrixGetRotator, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, NormalizeRotAxis, NoZDot, OrthoRotation, ParseLocalizedPropertyPath, ParseStringIntoArray, PathName, PausedState, PointDistToLine, PointDistToPlane, PointDistToSegment, PointProjectToPlane, PoppedState, PopState, ProjectOnTo, PushedState, PushState, QuatDot, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatSlerp, QuatToRotator, Rand, RDiff, Repl, Right, RInterpTo, RLerp, RotRand, Round, RSize, RSmerp, RTransform, SaveConfig, SClampRotAxis, ScriptTrace, SetUTracing, Sin, Split, SplitString, Sqrt, Square, StaticSaveConfig, Tan, TimeStamp, ToHex, TransformNormal, TransformVector, TransformVectorByRotation, UnwindHeading, vect2d, VInterpTo, VLerp, VRand, VRandCone, VRandCone2, VSize, VSize2D, VSizeSq, VSizeSq2D, VSmerp, WarnInternal, ^, ^^, |, ||, ~, ~= |
var config bool bDebugNoGFxUI;
bDisableWorldRendering Source code
var bool bDisableWorldRendering;
bDisplayingUIMouseCursor Source code
var transient bool bDisplayingUIMouseCursor;
bIsPlayInEditorViewport Source code
var transient bool bIsPlayInEditorViewport;
bOverrideDiffuseAndSpecular Source code
var transient bool bOverrideDiffuseAndSpecular;
bShowSystemMouseCursor Source code
var transient bool bShowSystemMouseCursor;
var bool bShowTitleSafeZone;
bUIMouseCaptureOverride Source code
var transient bool bUIMouseCaptureOverride;
bUseHardwareCursorWhenWindowed Source code
var config bool bUseHardwareCursorWhenWindowed;
var localized string ConnectingMessage;
DesiredSplitscreenType Source code
var init protected array<
Interaction> GlobalInteractions;
var localized string LoadingMessage;
var localized string PausedMessage;
var localized string PrecachingMessage;
var float ProgressFadeTime;
var string ProgressMessage[2];
var float ProgressTimeOut;
var localized string SavingMessage;
var native const
pointer ScaleformInteraction;
enum
ESplitScreenType
{
eSST_NONE,
eSST_2P_HORIZONTAL,
eSST_2P_VERTICAL,
eSST_3P_FAVOR_TOP,
eSST_3P_FAVOR_BOTTOM,
eSST_4P,
};
ExportShowFlags_Mirror Source code
PerPlayerSplitscreenData Source code
struct
TitleSafeZoneArea
{
var float MaxPercentX;
var float MaxPercentY;
var float RecommendedPercentX;
var float RecommendedPercentY;
};
delegate bool HandleInputAxis ( int ControllerId, name Key, float Delta, float DeltaTime, bool bGamepad )
delegate bool HandleInputChar ( int ControllerId, string Unicode )
delegate
bool HandleInputKey (
int ControllerId,
name Key,
EInputEvent EventType,
float AmountDepressed, optional
bool bGamepad )
private final function
int AddLocalPlayer (
LocalPlayer NewPlayer ) )
function BecomePrimaryPlayer ( int PlayerIndex) )
CalculateDeadZoneForAllSides Source code
final function
bool CalculateDeadZoneForAllSides (
LocalPlayer LPlayer,
Canvas Canvas, out
float fTopSafeZone, out
float fBottomSafeZone, out
float fLeftSafeZone, out
float fRightSafeZone, optional
bool bUseMaxPercent ) )
CalculateSafeZoneValues Source code
final function CalculateSafeZoneValues ( out
float out_Horizontal, out
float out_Vertical,
canvas Canvas,
int LocalPlayerIndex,
bool bUseMaxPercent ) )
exec function ClearProgressMessages ( ) )
native function string ConsoleCommand ( string Command )
ConvertLocalPlayerToGamePlayerIndex Source code
final function
int ConvertLocalPlayerToGamePlayerIndex (
LocalPlayer LPlayer ) )
function bool CreateInitialPlayer ( out string OutError ) )
event
LocalPlayer CreatePlayer (
int ControllerId, out
string OutError,
bool bSpawnActor) )
exec function DebugCreatePlayer ( int ControllerId) )
exec function DebugRemovePlayer ( int ControllerId) )
DebugSetUISystemEnabled Source code
native function DebugSetUISystemEnabled ( bool bOldUISystemActive, bool bGFxUISystemActive )
DisplayProgressMessage Source code
function DrawTransitionMessage (
Canvas Canvas,
string Message) )
FindPlayerByControllerId Source code
final event
LocalPlayer FindPlayerByControllerId (
int ControllerId) )
native final function FixupOwnerReferences ( )
event GameSessionEnded ( ) )
GetCustomInteractionClass Source code
native function
class<
UIInteraction> GetCustomInteractionClass (
int InIndex )
GetNumCustomInteractions Source code
native function int GetNumCustomInteractions ( )
final function GetPixelSizeOfScreen ( out
float out_Width, out
float out_Height,
canvas Canvas,
int LocalPlayerIndex ) )
native final function
LocalPlayer GetPlayerOwner (
int PlayerIndex )
GetSplitscreenConfiguration Source code
native final function GetViewportSize ( out
Vector2D out_ViewportSize )
final function bool HasBottomSafeZone ( int LocalPlayerIndex ) )
final function bool HasLeftSafeZone ( int LocalPlayerIndex ) )
final function bool HasRightSafeZone ( int LocalPlayerIndex ) )
final function bool HasTopSafeZone ( int LocalPlayerIndex ) )
event bool Init ( out string OutError) )
event
int InsertInteraction (
Interaction NewInteraction, optional
int InIndex = -
1 ) )
native final function bool IsFullScreenViewport ( )
event LayoutPlayers ( ) )
function NotifyConnectionError ( EProgressMessageType MessageType, optional string Message=Localize("Errors", "ConnectionFailed", "Engine"), optional string Title=Localize("Errors", "ConnectionFailed_Title", "Engine") ) )
final function NotifyPlayerAdded (
int PlayerIndex,
LocalPlayer AddedPlayer ) )
final function NotifyPlayerRemoved (
int PlayerIndex,
LocalPlayer RemovedPlayer ) )
private final function
int RemoveLocalPlayer (
LocalPlayer ExistingPlayer ) )
exec function SetConsoleTarget ( int PlayerIndex) )
SetCustomInteractionObject Source code
native function SetCustomInteractionObject (
Interaction InInteraction )
event SetProgressMessage ( EProgressMessageType MessageType, string Message, optional string Title, optional bool bIgnoreFutureNetworkMessages) )
exec event SetProgressTime ( float T) )
exec function SetSplit ( int mode ) )
SetSplitscreenConfiguration Source code
ShouldForceFullscreenViewport Source code
native final const function bool ShouldForceFullscreenViewport ( ) con )
exec function ShowTitleSafeArea ( ) )
exec function SSSwapControllers ( ) )
event Tick ( float DeltaTime )
UpdateActiveSplitscreenType Source code
function UpdateActiveSplitscreenType ( ) )
defaultproperties
{
UIControllerClass=class'Engine.UIInteraction'
TitleSafeZone=(MaxPercentX=0.9,MaxPercentY=0.9,RecommendedPercentX=0.8,RecommendedPercentY=0.8)
Default2PSplitType=eSST_2P_HORIZONTAL
Default3PSplitType=eSST_3P_FAVOR_TOP
DesiredSplitscreenType=eSST_NONE
bIsPlayInEditorViewport=False
bShowSystemMouseCursor=False
ProgressFadeTime=1.0
ProgressTimeOut=8.0
SplitscreenInfo(eSST_None)= (PlayerData=((SizeX=1.0f,SizeY=1.0f,OriginX=0.0f,OriginY=0.0f)))
SplitscreenInfo(eSST_2P_HORIZONTAL)={(PlayerData=(
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f))
)}
SplitscreenInfo(eSST_2P_VERTICAL)={(PlayerData=(
(SizeX=0.5f,SizeY=1.0f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=1.0f,OriginX=0.5f,OriginY=0.0))
)}
SplitscreenInfo(eSST_3P_FAVOR_TOP)={(PlayerData=(
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.5f))
)}
SplitscreenInfo(eSST_3P_FAVOR_BOTTOM)={(PlayerData=(
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.0f),
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f))
)}
SplitscreenInfo(eSST_4P)={(PlayerData=(
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.5f))
)}
}
|
Creation time: ti 22-3-2011 19:56:49.780 - Created with
UnCodeX