C# Class VoxelTerrain.FrameworkForm

Simplifies usage of SlimDX.
Inheritance: RenderForm
Afficher le fichier Open project: barograf/VoxelTerrain

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
LoadTexture ( string path ) : ShaderResourceView

Loads texture from file.

SetRasterizerState ( ) : void

Sets rasterizer state.

ShowFrame ( ) : void

Shows frame on the screen.

Private Methods

Méthode 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 méthode

Checks keyboard and mouse input.
public CheckInput ( double deltaTime ) : void
deltaTime double
Résultat void

ClearScreen() public méthode

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

DisposeFramework() public méthode

Removes all unmanaged objects loaded by SlimDX.
public DisposeFramework ( ) : void
Résultat void

FrameworkForm() public méthode

Default constructor.
public FrameworkForm ( ) : System
Résultat System

FrameworkForm() public méthode

Initializes SlimDX and input devices.
public FrameworkForm ( string caption ) : System
caption string Window caption string.
Résultat System

Initialize() public méthode

Initializes application.
public Initialize ( ) : void
Résultat void

LoadTexture() protected méthode

Loads texture from file.
protected LoadTexture ( string path ) : ShaderResourceView
path string File path.
Résultat ShaderResourceView

RenderFrame() public méthode

Renders frame on the screen.
public RenderFrame ( double deltaTime ) : void
deltaTime double
Résultat void

SetBackBufferRenderTarget() public méthode

Sets original render target conntected with back buffer.
public SetBackBufferRenderTarget ( ) : void
Résultat void

SetFillMode() public méthode

Sets rendering fill mode.
public SetFillMode ( FillMode fillMode ) : void
fillMode FillMode Desired fill mode.
Résultat void

SetRasterizerState() protected méthode

Sets rasterizer state.
protected SetRasterizerState ( ) : void
Résultat void

ShowFrame() protected méthode

Shows frame on the screen.
protected ShowFrame ( ) : void
Résultat void

UpdateFrame() public méthode

Updates frame logic.
public UpdateFrame ( double deltaTime ) : void
deltaTime double
Résultat void

Property Details

backBufferTexture protected_oe property

Back buffer texture object.
protected Texture2D backBufferTexture
Résultat Texture2D

camera protected_oe property

Camera object.
protected Camera,VoxelTerrain camera
Résultat Camera

depthStencilView protected_oe property

Depth stencil view object.
protected DepthStencilView depthStencilView
Résultat DepthStencilView

depthTexture protected_oe property

Depth texture object.
protected Texture2D depthTexture
Résultat Texture2D

fillMode protected_oe property

Rendering fill mode.
protected FillMode fillMode
Résultat FillMode

graphicsDevice protected_oe property

Virtual adapter used to perform rendering.
protected Device,SlimDX.Direct3D11 graphicsDevice
Résultat SlimDX.Direct3D11.Device

keyboard protected_oe property

Keyboard object.
protected Keyboard keyboard
Résultat Keyboard

mouse protected_oe property

Mouse object.
protected Mouse,System.IO mouse
Résultat System.IO.Mouse

postProcess protected_oe property

Post process object.
protected PostProcess,VoxelTerrain postProcess
Résultat PostProcess

quadRenderer protected_oe property

Quad renderer object.
protected QuadRenderer,VoxelTerrain quadRenderer
Résultat QuadRenderer

renderTargetView protected_oe property

Render target view object.
protected RenderTargetView renderTargetView
Résultat RenderTargetView

swapChain protected_oe property

Swap chain object.
protected SwapChain swapChain
Résultat SwapChain

textures protected_oe property

List of textures.
protected List textures
Résultat List