C# 클래스 ModelViewer.Renderer.Sample

Implements core application logic of a SlimDX sample. The Sample class provides a minimal wrapper around window setup, user interaction, and OS-level details, but provides very little abstraction of the underlying DirectX functionality. The reason for this is that the purpose of a SlimDX sample is to illustrate how a particular technique might be implemented using SlimDX; providing high level rendering abstractions in the sample framework simplify obfuscates that. A sample is implemented by overriding various base class methods (those prefixed with "on").
상속: IDisposable
파일 보기 프로젝트 열기: nohbdy/ffxivmodelviewer

보호된 프로퍼티들

프로퍼티 타입 설명
EnableCamera bool
arcBall ModelViewer.ArcBall
cameraForward SlimDX.Vector3
cameraForwardDirection float
cameraPosition SlimDX.Vector3
cameraRaiseDirection float
cameraRight SlimDX.Vector3
cameraStrafeDirection float
cameraUp SlimDX.Vector3
cameraVelocity float
globalSettings ModelViewer.Renderer.GlobalRenderSettings
renderList List
sceneOffset SlimDX.Vector3
zoom float
zoomSensitivity float

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes of object resources.

Run ( ) : void

Runs the sample.

Sample ( ) : System

보호된 메소드들

메소드 설명
CreateForm ( SampleConfiguration config ) : Form
Dispose ( bool disposeManagedResources ) : void

Disposes of object resources.

InitializeDevice ( DeviceSettings9 settings ) : void

Initializes a Direct3D9 device context according to the specified settings. The base class retains ownership of the context and will dispose of it when appropriate.

OnConfigure ( ) : SampleConfiguration

In a derived class, implements logic to control the configuration of the sample via a SampleConfiguration object.

OnInitialize ( ) : void

In a derived class, implements logic to initialize the sample.

OnKeyDown ( object sender, KeyEventArgs e ) : void
OnKeyUp ( object sender, KeyEventArgs e ) : void
OnRender ( ) : void

In a derived class, implements logic to render the sample.

OnRenderBegin ( bool isScreenshot ) : void

In a derived class, implements logic that should occur before all other rendering.

OnRenderEnd ( bool isScreenshot ) : void

In a derived class, implements logic that should occur after all other rendering.

OnResourceLoad ( ) : void
OnResourceUnload ( ) : void
OnUpdate ( ) : void

In a derived class, implements logic to update any relevant sample state.

Quit ( ) : void

Quits the sample.

비공개 메소드들

메소드 설명
HandleKeyDown ( object sender, KeyEventArgs e ) : void

Handles a key down event.

HandleKeyUp ( object sender, KeyEventArgs e ) : void

Handles a key up event.

HandleMouseClick ( object sender, MouseEventArgs e ) : void

Handles a mouse click event.

HandleMouseDown ( object sender, MouseEventArgs e ) : void
HandleMouseMove ( object sender, MouseEventArgs e ) : void
HandleMouseUp ( object sender, MouseEventArgs e ) : void
HandleResize ( object sender, EventArgs e ) : void
Render ( bool isScreenshot ) : void

Renders the sample.

RenderScreenshot ( ) : void
Update ( ) : void

Updates sample state.

메소드 상세

CreateForm() 보호된 메소드

protected CreateForm ( SampleConfiguration config ) : Form
config SampleConfiguration
리턴 System.Windows.Forms.Form

Dispose() 공개 메소드

Disposes of object resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposes of object resources.
protected Dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool If true, managed resources should be /// disposed of in addition to unmanaged resources.
리턴 void

InitializeDevice() 보호된 메소드

Initializes a Direct3D9 device context according to the specified settings. The base class retains ownership of the context and will dispose of it when appropriate.
protected InitializeDevice ( DeviceSettings9 settings ) : void
settings DeviceSettings9 The settings.
리턴 void

OnConfigure() 보호된 메소드

In a derived class, implements logic to control the configuration of the sample via a SampleConfiguration object.
protected OnConfigure ( ) : SampleConfiguration
리턴 SampleConfiguration

OnInitialize() 보호된 메소드

In a derived class, implements logic to initialize the sample.
protected OnInitialize ( ) : void
리턴 void

OnKeyDown() 보호된 메소드

protected OnKeyDown ( object sender, KeyEventArgs e ) : void
sender object
e System.Windows.Forms.KeyEventArgs
리턴 void

OnKeyUp() 보호된 메소드

protected OnKeyUp ( object sender, KeyEventArgs e ) : void
sender object
e System.Windows.Forms.KeyEventArgs
리턴 void

OnRender() 보호된 메소드

In a derived class, implements logic to render the sample.
protected OnRender ( ) : void
리턴 void

OnRenderBegin() 보호된 메소드

In a derived class, implements logic that should occur before all other rendering.
protected OnRenderBegin ( bool isScreenshot ) : void
isScreenshot bool
리턴 void

OnRenderEnd() 보호된 메소드

In a derived class, implements logic that should occur after all other rendering.
protected OnRenderEnd ( bool isScreenshot ) : void
isScreenshot bool
리턴 void

OnResourceLoad() 보호된 메소드

protected OnResourceLoad ( ) : void
리턴 void

OnResourceUnload() 보호된 메소드

protected OnResourceUnload ( ) : void
리턴 void

OnUpdate() 보호된 메소드

In a derived class, implements logic to update any relevant sample state.
protected OnUpdate ( ) : void
리턴 void

Quit() 보호된 메소드

Quits the sample.
protected Quit ( ) : void
리턴 void

Run() 공개 메소드

Runs the sample.
public Run ( ) : void
리턴 void

Sample() 공개 메소드

public Sample ( ) : System
리턴 System

프로퍼티 상세

EnableCamera 보호되어 있는 프로퍼티

protected bool EnableCamera
리턴 bool

arcBall 보호되어 있는 프로퍼티

protected ModelViewer.ArcBall arcBall
리턴 ModelViewer.ArcBall

cameraForward 보호되어 있는 프로퍼티

protected SlimDX.Vector3 cameraForward
리턴 SlimDX.Vector3

cameraForwardDirection 보호되어 있는 프로퍼티

protected float cameraForwardDirection
리턴 float

cameraPosition 보호되어 있는 프로퍼티

protected SlimDX.Vector3 cameraPosition
리턴 SlimDX.Vector3

cameraRaiseDirection 보호되어 있는 프로퍼티

protected float cameraRaiseDirection
리턴 float

cameraRight 보호되어 있는 프로퍼티

protected SlimDX.Vector3 cameraRight
리턴 SlimDX.Vector3

cameraStrafeDirection 보호되어 있는 프로퍼티

protected float cameraStrafeDirection
리턴 float

cameraUp 보호되어 있는 프로퍼티

protected SlimDX.Vector3 cameraUp
리턴 SlimDX.Vector3

cameraVelocity 보호되어 있는 프로퍼티

protected float cameraVelocity
리턴 float

globalSettings 보호되어 있는 프로퍼티

protected ModelViewer.Renderer.GlobalRenderSettings globalSettings
리턴 ModelViewer.Renderer.GlobalRenderSettings

renderList 보호되어 있는 프로퍼티

protected List renderList
리턴 List

sceneOffset 보호되어 있는 프로퍼티

protected SlimDX.Vector3 sceneOffset
리턴 SlimDX.Vector3

zoom 보호되어 있는 프로퍼티

protected float zoom
리턴 float

zoomSensitivity 보호되어 있는 프로퍼티

protected float zoomSensitivity
리턴 float