C# Class ModelViewer.Renderer.UserInterfaceRenderer9

Provides functionality to render a user interface using Direct3D9.
Inheritance: UserInterfaceRenderer
Mostra file Open project: nohbdy/ffxivmodelviewer Class Usage Examples

Public Methods

Method Description
UserInterfaceRenderer9 ( Device device, int width, int height ) : System

Initializes a new instance of the UserInterfaceRenderer9 class.

Protected Methods

Method Description
Dispose ( bool disposeManagedResources ) : void

Disposes of object resources.

Flush ( ) : void

In a derived class, implements logic to flush all pending rendering commands.

Private Methods

Method Description
MeasureString ( string text ) : System.Vector2

Computes the metrics for a string if it were to be rendered with this renderer.

RenderLine ( int x0, int y0, SlimDX.Color4 color0, int x1, int y1, SlimDX.Color4 color1 ) : void

Renders a line.

RenderString ( string text, int x, int y, SlimDX.Color4 color ) : void

Renders a string.

Method Details

Dispose() protected method

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

Flush() protected method

In a derived class, implements logic to flush all pending rendering commands.
protected Flush ( ) : void
return void

UserInterfaceRenderer9() public method

Initializes a new instance of the UserInterfaceRenderer9 class.
public UserInterfaceRenderer9 ( Device device, int width, int height ) : System
device Device The device.
width int The width of the renderable area.
height int The height of the renderable area.
return System