C# Class VoxelTerrain.FrameworkForm

Simplifies usage of SlimDX.
Inheritance: RenderForm
显示文件 Open project: barograf/VoxelTerrain

Protected Properties

Property Type Description
backBufferTexture Texture2D
camera Camera
depthStencilView DepthStencilView
depthTexture Texture2D
fillMode FillMode
graphicsDevice SlimDX.Direct3D11.Device
keyboard Keyboard
mouse System.IO.Mouse
postProcess PostProcess
quadRenderer QuadRenderer
renderTargetView RenderTargetView
swapChain SwapChain
textures List

Public Methods

Method Description
CheckInput ( double deltaTime ) : void

Checks keyboard and mouse input.

ClearScreen ( SlimDX.Color4 color ) : void

Clears render target and depth views with specified color.

DisposeFramework ( ) : void

Removes all unmanaged objects loaded by SlimDX.

FrameworkForm ( ) : System

Default constructor.

FrameworkForm ( string caption ) : System

Initializes SlimDX and input devices.

Initialize ( ) : void

Initializes application.

RenderFrame ( double deltaTime ) : void

Renders frame on the screen.

SetBackBufferRenderTarget ( ) : void

Sets original render target conntected with back buffer.

SetFillMode ( FillMode fillMode ) : void

Sets rendering fill mode.

UpdateFrame ( double deltaTime ) : void

Updates frame logic.

Protected Methods

Method Description
LoadTexture ( string path ) : ShaderResourceView

Loads texture from file.

SetRasterizerState ( ) : void

Sets rasterizer state.

ShowFrame ( ) : void

Shows frame on the screen.

Private Methods

Method Description
InitializeOutputMerger ( ) : void

Initializes various graphics device resources.

MakeScreenshot ( string directory ) : void

Makes screenshot and saves it in specified directory.

SetDepthStencilView ( ) : void

Sets depth stencil view.

Method Details

CheckInput() public method

Checks keyboard and mouse input.
public CheckInput ( double deltaTime ) : void
deltaTime double
return void

ClearScreen() public method

Clears render target and depth views with specified color.
public ClearScreen ( SlimDX.Color4 color ) : void
color SlimDX.Color4 Clear color.
return void

DisposeFramework() public method

Removes all unmanaged objects loaded by SlimDX.
public DisposeFramework ( ) : void
return void

FrameworkForm() public method

Default constructor.
public FrameworkForm ( ) : System
return System

FrameworkForm() public method

Initializes SlimDX and input devices.
public FrameworkForm ( string caption ) : System
caption string Window caption string.
return System

Initialize() public method

Initializes application.
public Initialize ( ) : void
return void

LoadTexture() protected method

Loads texture from file.
protected LoadTexture ( string path ) : ShaderResourceView
path string File path.
return ShaderResourceView

RenderFrame() public method

Renders frame on the screen.
public RenderFrame ( double deltaTime ) : void
deltaTime double
return void

SetBackBufferRenderTarget() public method

Sets original render target conntected with back buffer.
public SetBackBufferRenderTarget ( ) : void
return void

SetFillMode() public method

Sets rendering fill mode.
public SetFillMode ( FillMode fillMode ) : void
fillMode FillMode Desired fill mode.
return void

SetRasterizerState() protected method

Sets rasterizer state.
protected SetRasterizerState ( ) : void
return void

ShowFrame() protected method

Shows frame on the screen.
protected ShowFrame ( ) : void
return void

UpdateFrame() public method

Updates frame logic.
public UpdateFrame ( double deltaTime ) : void
deltaTime double
return void

Property Details

backBufferTexture protected_oe property

Back buffer texture object.
protected Texture2D backBufferTexture
return Texture2D

camera protected_oe property

Camera object.
protected Camera,VoxelTerrain camera
return Camera

depthStencilView protected_oe property

Depth stencil view object.
protected DepthStencilView depthStencilView
return DepthStencilView

depthTexture protected_oe property

Depth texture object.
protected Texture2D depthTexture
return Texture2D

fillMode protected_oe property

Rendering fill mode.
protected FillMode fillMode
return FillMode

graphicsDevice protected_oe property

Virtual adapter used to perform rendering.
protected Device,SlimDX.Direct3D11 graphicsDevice
return SlimDX.Direct3D11.Device

keyboard protected_oe property

Keyboard object.
protected Keyboard keyboard
return Keyboard

mouse protected_oe property

Mouse object.
protected Mouse,System.IO mouse
return System.IO.Mouse

postProcess protected_oe property

Post process object.
protected PostProcess,VoxelTerrain postProcess
return PostProcess

quadRenderer protected_oe property

Quad renderer object.
protected QuadRenderer,VoxelTerrain quadRenderer
return QuadRenderer

renderTargetView protected_oe property

Render target view object.
protected RenderTargetView renderTargetView
return RenderTargetView

swapChain protected_oe property

Swap chain object.
protected SwapChain swapChain
return SwapChain

textures protected_oe property

List of textures.
protected List textures
return List