C# Class ModelViewer.Renderer.DefaultVisual

Provides a default visual representation of an element, to be used when no element-specific visual representation is available.
Inheritance: IElementVisual
Afficher le fichier Open project: nohbdy/ffxivmodelviewer Class Usage Examples

Méthodes publiques

Méthode Description
Measure ( UserInterfaceRenderer renderer, Element element ) : Vector2

Measures the element, returning the size (in pixels) it would occupy if rendered with the specified renderer.

Render ( UserInterfaceRenderer renderer, Element element, int x, int y, int width, int height ) : void

Renders the element using the specified renderer.

Method Details

Measure() public méthode

Measures the element, returning the size (in pixels) it would occupy if rendered with the specified renderer.
public Measure ( UserInterfaceRenderer renderer, Element element ) : Vector2
renderer UserInterfaceRenderer The renderer.
element Element The element.
Résultat Vector2

Render() public méthode

Renders the element using the specified renderer.
public Render ( UserInterfaceRenderer renderer, Element element, int x, int y, int width, int height ) : void
renderer UserInterfaceRenderer The renderer.
element Element The element.
x int The X coordinate (in pixels) of the upper left corner of the region the element should be rendered to.
y int The Y coordinate (in pixels) of the upper left corner of the region the element should be rendered to.
width int The width (in pixels) of the region the element should be rendered to.
height int The height (in pixels) of the region the element should be rendered to.
Résultat void