C# Class FSO.Common.Utils.PPXDepthEngine

Show file Open project: RHY3756547/FreeSO

Public Methods

Method Description
CreateRenderTarget ( GraphicsDevice device, int numberLevels, int multisample, SurfaceFormat surface, int width, int height, DepthFormat dformat ) : RenderTarget2D
DrawBackbuffer ( ) : void
InitGD ( GraphicsDevice gd ) : void
InitScreenTargets ( GraphicsDevice gd ) : void
RenderPPXDepth ( Effect effect, bool forceDepth, RenderPPXProcedureDelegate proc ) : void
SetPPXTarget ( RenderTarget2D color, RenderTarget2D depth, bool clear ) : void

Method Details

CreateRenderTarget() public static method

public static CreateRenderTarget ( GraphicsDevice device, int numberLevels, int multisample, SurfaceFormat surface, int width, int height, DepthFormat dformat ) : RenderTarget2D
device GraphicsDevice
numberLevels int
multisample int
surface SurfaceFormat
width int
height int
dformat DepthFormat
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

DrawBackbuffer() public static method

public static DrawBackbuffer ( ) : void
return void

InitGD() public static method

public static InitGD ( GraphicsDevice gd ) : void
gd GraphicsDevice
return void

InitScreenTargets() public static method

public static InitScreenTargets ( GraphicsDevice gd ) : void
gd GraphicsDevice
return void

RenderPPXDepth() public static method

public static RenderPPXDepth ( Effect effect, bool forceDepth, RenderPPXProcedureDelegate proc ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
forceDepth bool
proc RenderPPXProcedureDelegate
return void

SetPPXTarget() public static method

public static SetPPXTarget ( RenderTarget2D color, RenderTarget2D depth, bool clear ) : void
color Microsoft.Xna.Framework.Graphics.RenderTarget2D
depth Microsoft.Xna.Framework.Graphics.RenderTarget2D
clear bool
return void