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

Inherits NativeObject.

Inherited by TaleWorlds.Engine.SceneView, TaleWorlds.Engine.TextureView, TaleWorlds.Engine.ThumbnailCreatorView, TaleWorlds.Engine.TwoDimensionView, and TaleWorlds.Engine.VideoPlayerView.

Public Types

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
}
 

Public Member Functions

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)
 

Member Enumeration Documentation

◆ TextureSaveFormat

Enumerator
TextureTypeUnknown 
TextureTypeBmp 
TextureTypeJpg 
TextureTypePng 
TextureTypeDds 
TextureTypeTif 
TextureTypePsd 
TextureTypeRaw 

◆ PostfxConfig

Enumerator
pfx_config_bloom 
pfx_config_sunshafts 
pfx_config_motionblur 
pfx_config_dof 
pfx_config_tsao 
pfx_config_fxaa 
pfx_config_smaa 
pfx_config_temporal_smaa 
pfx_config_temporal_resolve 
pfx_config_temporal_filter 
pfx_config_contour 
pfx_config_ssr 
pfx_config_sssss 
pfx_config_streaks 
pfx_config_lens_flares 
pfx_config_chromatic_aberration 
pfx_config_vignette 
pfx_config_sharpen 
pfx_config_grain 
pfx_config_temporal_shadow 
pfx_config_editor_scene 
pfx_config_custom1 
pfx_config_custom2 
pfx_config_custom3 
pfx_config_custom4 
pfx_config_hexagon_vignette 
pfx_config_screen_rt_injection 
pfx_config_high_dof 
pfx_lower_bound 
pfx_upper_bound 

◆ ViewRenderOptions

Enumerator
ClearColor 
ClearDepth 

Member Function Documentation

◆ SetScale()

void TaleWorlds.Engine.View.SetScale ( Vec2  scale)

◆ SetOffset()

void TaleWorlds.Engine.View.SetOffset ( Vec2  offset)

◆ SetRenderOrder()

void TaleWorlds.Engine.View.SetRenderOrder ( int  value)

◆ SetRenderOption()

void TaleWorlds.Engine.View.SetRenderOption ( ViewRenderOptions  optionEnum,
bool  value 
)

◆ SetRenderTarget()

void TaleWorlds.Engine.View.SetRenderTarget ( Texture  texture)

◆ SetDepthTarget()

void TaleWorlds.Engine.View.SetDepthTarget ( Texture  texture)

◆ DontClearBackground()

void TaleWorlds.Engine.View.DontClearBackground ( )

◆ SetClearColor()

void TaleWorlds.Engine.View.SetClearColor ( uint  rgba)

◆ SetEnable()

void TaleWorlds.Engine.View.SetEnable ( bool  value)

◆ SetRenderOnDemand()

void TaleWorlds.Engine.View.SetRenderOnDemand ( bool  value)

◆ SetAutoDepthTargetCreation()

void TaleWorlds.Engine.View.SetAutoDepthTargetCreation ( bool  value)

◆ SetSaveFinalResultToDisk()

void TaleWorlds.Engine.View.SetSaveFinalResultToDisk ( bool  value)

◆ SetFileNameToSaveResult()

void TaleWorlds.Engine.View.SetFileNameToSaveResult ( string  name)

◆ SetFileTypeToSave()

void TaleWorlds.Engine.View.SetFileTypeToSave ( TextureSaveFormat  format)

◆ SetFilePathToSaveResult()

void TaleWorlds.Engine.View.SetFilePathToSaveResult ( string  name)