M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.SceneView Class Reference

Inherits TaleWorlds.Engine.View.

Inherited by TaleWorlds.Engine.TableauView.

Public Member Functions

void SetScene (Scene scene)
 
void SetAcceptGlobalDebugRenderObjects (bool value)
 
void SetRenderWithPostfx (bool value)
 
void SetPostfxConfigParams (int value)
 
void SetForceShaderCompilation (bool value)
 
bool CheckSceneReadyToRender ()
 
void SetCamera (Camera camera)
 
void SetResolutionScaling (bool value)
 
void SetPostfxFromConfig ()
 
Vec2 WorldPointToScreenPoint (Vec3 position)
 
Vec2 ScreenPointToViewportPoint (Vec2 position)
 
bool ProjectedMousePositionOnGround (out Vec3 groundPosition, out Vec3 groundNormal, bool mouseVisible, BodyFlags excludeBodyOwnerFlags, bool checkOccludedSurface)
 
void TranslateMouse (ref Vec3 worldMouseNear, ref Vec3 worldMouseFar, float maxDistance=-1)
 
void SetSceneUsesSkybox (bool value)
 
void SetSceneUsesShadows (bool value)
 
void SetSceneUsesContour (bool value)
 
void DoNotClear (bool value)
 
void AddClearTask (bool clearOnlySceneview=false)
 
bool ReadyToRender ()
 
void SetClearAndDisableAfterSucessfullRender (bool value)
 
void SetClearGbuffer (bool value)
 
void SetShadowmapResolutionMultiplier (float value)
 
void SetPointlightResolutionMultiplier (float value)
 
void SetCleanScreenUntilLoadingDone (bool value)
 
void ClearAll (bool clearScene, bool removeTerrain)
 
void SetFocusedShadowmap (bool enable, ref Vec3 center, float radius)
 
Scene GetScene ()
 
bool RayCastForClosestEntityOrTerrain (Vec3 sourcePoint, Vec3 targetPoint, out float collisionDistance, out Vec3 closestPoint, float rayThickness=0.01f, BodyFlags excludeBodyFlags=BodyFlags.CommonFocusRayCastExcludeFlags)
 
- Public Member Functions inherited from TaleWorlds.Engine.View
void SetScale (Vec2 scale)
 
void SetOffset (Vec2 offset)
 
void SetRenderOrder (int value)
 
void SetRenderOption (ViewRenderOptions optionEnum, bool value)
 
void SetRenderTarget (Texture texture)
 
void SetDepthTarget (Texture texture)
 
void DontClearBackground ()
 
void SetClearColor (uint rgba)
 
void SetEnable (bool value)
 
void SetRenderOnDemand (bool value)
 
void SetAutoDepthTargetCreation (bool value)
 
void SetSaveFinalResultToDisk (bool value)
 
void SetFileNameToSaveResult (string name)
 
void SetFileTypeToSave (TextureSaveFormat format)
 
void SetFilePathToSaveResult (string name)
 

Static Public Member Functions

static SceneView CreateSceneView ()
 

Additional Inherited Members

- Public Types inherited from TaleWorlds.Engine.View
enum  TextureSaveFormat {
  TextureTypeUnknown ,
  TextureTypeBmp ,
  TextureTypeJpg ,
  TextureTypePng ,
  TextureTypeDds ,
  TextureTypeTif ,
  TextureTypePsd ,
  TextureTypeRaw
}
 
enum  PostfxConfig : uint {
  pfx_config_bloom = 0x00000001 ,
  pfx_config_sunshafts = 0x00000002 ,
  pfx_config_motionblur = 0x00000004 ,
  pfx_config_dof = 0x00000008 ,
  pfx_config_tsao = 0x00000010 ,
  pfx_config_fxaa = 0x00000040 ,
  pfx_config_smaa = 0x00000080 ,
  pfx_config_temporal_smaa = 0x00000100 ,
  pfx_config_temporal_resolve = 0x00000200 ,
  pfx_config_temporal_filter = 0x00000400 ,
  pfx_config_contour = 0x00000800 ,
  pfx_config_ssr = 0x00001000 ,
  pfx_config_sssss = 0x00002000 ,
  pfx_config_streaks = 0x00004000 ,
  pfx_config_lens_flares = 0x00008000 ,
  pfx_config_chromatic_aberration = 0x00010000 ,
  pfx_config_vignette = 0x00020000 ,
  pfx_config_sharpen = 0x00040000 ,
  pfx_config_grain = 0x00080000 ,
  pfx_config_temporal_shadow = 0x00100000 ,
  pfx_config_editor_scene = 0x00200000 ,
  pfx_config_custom1 = 0x01000000 ,
  pfx_config_custom2 = 0x02000000 ,
  pfx_config_custom3 = 0x04000000 ,
  pfx_config_custom4 = 0x08000000 ,
  pfx_config_hexagon_vignette = 0x10000000 ,
  pfx_config_screen_rt_injection = 0x20000000 ,
  pfx_config_high_dof = 0x40000000 ,
  pfx_lower_bound = pfx_config_bloom ,
  pfx_upper_bound = pfx_config_screen_rt_injection
}
 
enum  ViewRenderOptions : int {
  ClearColor = 0 ,
  ClearDepth
}
 

Member Function Documentation

◆ CreateSceneView()

static SceneView TaleWorlds.Engine.SceneView.CreateSceneView ( )
static

◆ SetScene()

void TaleWorlds.Engine.SceneView.SetScene ( Scene  scene)

◆ SetAcceptGlobalDebugRenderObjects()

void TaleWorlds.Engine.SceneView.SetAcceptGlobalDebugRenderObjects ( bool  value)

◆ SetRenderWithPostfx()

void TaleWorlds.Engine.SceneView.SetRenderWithPostfx ( bool  value)

◆ SetPostfxConfigParams()

void TaleWorlds.Engine.SceneView.SetPostfxConfigParams ( int  value)

◆ SetForceShaderCompilation()

void TaleWorlds.Engine.SceneView.SetForceShaderCompilation ( bool  value)

◆ CheckSceneReadyToRender()

bool TaleWorlds.Engine.SceneView.CheckSceneReadyToRender ( )

◆ SetCamera()

void TaleWorlds.Engine.SceneView.SetCamera ( Camera  camera)

◆ SetResolutionScaling()

void TaleWorlds.Engine.SceneView.SetResolutionScaling ( bool  value)

◆ SetPostfxFromConfig()

void TaleWorlds.Engine.SceneView.SetPostfxFromConfig ( )

◆ WorldPointToScreenPoint()

Vec2 TaleWorlds.Engine.SceneView.WorldPointToScreenPoint ( Vec3  position)

◆ ScreenPointToViewportPoint()

Vec2 TaleWorlds.Engine.SceneView.ScreenPointToViewportPoint ( Vec2  position)

◆ ProjectedMousePositionOnGround()

bool TaleWorlds.Engine.SceneView.ProjectedMousePositionOnGround ( out Vec3  groundPosition,
out Vec3  groundNormal,
bool  mouseVisible,
BodyFlags  excludeBodyOwnerFlags,
bool  checkOccludedSurface 
)

◆ TranslateMouse()

void TaleWorlds.Engine.SceneView.TranslateMouse ( ref Vec3  worldMouseNear,
ref Vec3  worldMouseFar,
float  maxDistance = -1 
)

◆ SetSceneUsesSkybox()

void TaleWorlds.Engine.SceneView.SetSceneUsesSkybox ( bool  value)

◆ SetSceneUsesShadows()

void TaleWorlds.Engine.SceneView.SetSceneUsesShadows ( bool  value)

◆ SetSceneUsesContour()

void TaleWorlds.Engine.SceneView.SetSceneUsesContour ( bool  value)

◆ DoNotClear()

void TaleWorlds.Engine.SceneView.DoNotClear ( bool  value)

◆ AddClearTask()

void TaleWorlds.Engine.SceneView.AddClearTask ( bool  clearOnlySceneview = false)

◆ ReadyToRender()

bool TaleWorlds.Engine.SceneView.ReadyToRender ( )

◆ SetClearAndDisableAfterSucessfullRender()

void TaleWorlds.Engine.SceneView.SetClearAndDisableAfterSucessfullRender ( bool  value)

◆ SetClearGbuffer()

void TaleWorlds.Engine.SceneView.SetClearGbuffer ( bool  value)

◆ SetShadowmapResolutionMultiplier()

void TaleWorlds.Engine.SceneView.SetShadowmapResolutionMultiplier ( float  value)

◆ SetPointlightResolutionMultiplier()

void TaleWorlds.Engine.SceneView.SetPointlightResolutionMultiplier ( float  value)

◆ SetCleanScreenUntilLoadingDone()

void TaleWorlds.Engine.SceneView.SetCleanScreenUntilLoadingDone ( bool  value)

◆ ClearAll()

void TaleWorlds.Engine.SceneView.ClearAll ( bool  clearScene,
bool  removeTerrain 
)

◆ SetFocusedShadowmap()

void TaleWorlds.Engine.SceneView.SetFocusedShadowmap ( bool  enable,
ref Vec3  center,
float  radius 
)

◆ GetScene()

Scene TaleWorlds.Engine.SceneView.GetScene ( )

◆ RayCastForClosestEntityOrTerrain()

bool TaleWorlds.Engine.SceneView.RayCastForClosestEntityOrTerrain ( Vec3  sourcePoint,
Vec3  targetPoint,
out float  collisionDistance,
out Vec3  closestPoint,
float  rayThickness = 0::01f,
BodyFlags  excludeBodyFlags = BodyFlags::CommonFocusRayCastExcludeFlags 
)