C# 클래스 ModelViewer.Renderer.DefaultVisual

Provides a default visual representation of an element, to be used when no element-specific visual representation is available.
상속: IElementVisual
파일 보기 프로젝트 열기: nohbdy/ffxivmodelviewer 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Measure() 공개 메소드

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.
리턴 Vector2

Render() 공개 메소드

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.
리턴 void