Table of Contents

Class SceneView

Namespace
TaleWorlds.Engine
Assembly
TaleWorlds.Engine.dll
[EngineClass("rglScene_view")]
public class SceneView : View
Inheritance
SceneView
Derived
Inherited Members

Methods

AddClearTask(bool)

public void AddClearTask(bool clearOnlySceneview = false)

Parameters

clearOnlySceneview bool

CheckSceneReadyToRender()

public bool CheckSceneReadyToRender()

Returns

bool

ClearAll(bool, bool)

public void ClearAll(bool clearScene, bool removeTerrain)

Parameters

clearScene bool
removeTerrain bool

CreateSceneView()

public static SceneView CreateSceneView()

Returns

SceneView

DoNotClear(bool)

public void DoNotClear(bool value)

Parameters

value bool

GetScene()

public Scene GetScene()

Returns

Scene

ProjectedMousePositionOnGround(out Vec3, out Vec3, bool, BodyFlags, bool)

public bool ProjectedMousePositionOnGround(out Vec3 groundPosition, out Vec3 groundNormal, bool mouseVisible, BodyFlags excludeBodyOwnerFlags, bool checkOccludedSurface)

Parameters

groundPosition Vec3
groundNormal Vec3
mouseVisible bool
excludeBodyOwnerFlags BodyFlags
checkOccludedSurface bool

Returns

bool

RayCastForClosestEntityOrTerrain(Vec3, Vec3, out float, out Vec3, float, BodyFlags)

public bool RayCastForClosestEntityOrTerrain(Vec3 sourcePoint, Vec3 targetPoint, out float collisionDistance, out Vec3 closestPoint, float rayThickness = 0.01, BodyFlags excludeBodyFlags = BodyFlags.CommonFocusRayCastExcludeFlags)

Parameters

sourcePoint Vec3
targetPoint Vec3
collisionDistance float
closestPoint Vec3
rayThickness float
excludeBodyFlags BodyFlags

Returns

bool

ReadyToRender()

public bool ReadyToRender()

Returns

bool

ScreenPointToViewportPoint(Vec2)

public Vec2 ScreenPointToViewportPoint(Vec2 position)

Parameters

position Vec2

Returns

Vec2

SetAcceptGlobalDebugRenderObjects(bool)

public void SetAcceptGlobalDebugRenderObjects(bool value)

Parameters

value bool

SetCamera(Camera)

public void SetCamera(Camera camera)

Parameters

camera Camera

SetCleanScreenUntilLoadingDone(bool)

public void SetCleanScreenUntilLoadingDone(bool value)

Parameters

value bool

SetClearAndDisableAfterSucessfullRender(bool)

public void SetClearAndDisableAfterSucessfullRender(bool value)

Parameters

value bool

SetClearGbuffer(bool)

public void SetClearGbuffer(bool value)

Parameters

value bool

SetFocusedShadowmap(bool, ref Vec3, float)

public void SetFocusedShadowmap(bool enable, ref Vec3 center, float radius)

Parameters

enable bool
center Vec3
radius float

SetForceShaderCompilation(bool)

public void SetForceShaderCompilation(bool value)

Parameters

value bool

SetPointlightResolutionMultiplier(float)

public void SetPointlightResolutionMultiplier(float value)

Parameters

value float

SetPostfxConfigParams(int)

public void SetPostfxConfigParams(int value)

Parameters

value int

SetPostfxFromConfig()

public void SetPostfxFromConfig()

SetRenderWithPostfx(bool)

public void SetRenderWithPostfx(bool value)

Parameters

value bool

SetResolutionScaling(bool)

public void SetResolutionScaling(bool value)

Parameters

value bool

SetScene(Scene)

public void SetScene(Scene scene)

Parameters

scene Scene

SetSceneUsesContour(bool)

public void SetSceneUsesContour(bool value)

Parameters

value bool

SetSceneUsesShadows(bool)

public void SetSceneUsesShadows(bool value)

Parameters

value bool

SetSceneUsesSkybox(bool)

public void SetSceneUsesSkybox(bool value)

Parameters

value bool

SetShadowmapResolutionMultiplier(float)

public void SetShadowmapResolutionMultiplier(float value)

Parameters

value float

TranslateMouse(ref Vec3, ref Vec3, float)

public void TranslateMouse(ref Vec3 worldMouseNear, ref Vec3 worldMouseFar, float maxDistance = -1)

Parameters

worldMouseNear Vec3
worldMouseFar Vec3
maxDistance float

WorldPointToScreenPoint(Vec3)

public Vec2 WorldPointToScreenPoint(Vec3 position)

Parameters

position Vec3

Returns

Vec2

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).