C# Class ModelViewer.Renderer.UserInterfaceRenderer

Provides baseline functionality for rendering a user interface.
Inheritance: IDisposable
Mostrar archivo Open project: nohbdy/ffxivmodelviewer Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes of object resources.

Render ( UserInterface userInterface ) : void

Renders the specified user interface.

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.

RenderRectangle ( int x, int y, int width, int height, SlimDX.Color4 color ) : void

Renders a rectangle.

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

Renders a string.

Method Details

Dispose() public method

Disposes of object resources.
public Dispose ( ) : void
return void

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 abstract method

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

Render() public method

Renders the specified user interface.
public Render ( UserInterface userInterface ) : void
userInterface UserInterface The user interface to render.
return void