C# 클래스 ARCed.Controls.GraphicsDeviceService

Helper class responsible for creating and managing the GraphicsDevice. All GraphicsDeviceControl instances share the same GraphicsDeviceService, so even though there can be many controls, there will only ever be a single underlying GraphicsDevice. This implements the standard IGraphicsDeviceService interface, which provides notification events for when the device is reset or disposed.
상속: IGraphicsDeviceService
파일 보기 프로젝트 열기: borisblizzard/arcreator 1 사용 예제들

공개 메소드들

메소드 설명
AddRef ( IntPtr windowHandle, int width, int height ) : GraphicsDeviceService

Gets a reference to the singleton instance.

Release ( bool disposing ) : void

Releases a reference to the singleton instance.

ResetDevice ( int width, int height ) : void

Resets the graphics device to whichever is bigger out of the specified resolution or its current size. This behavior means the device will demand-grow to the largest of all its GraphicsDeviceControl clients.

비공개 메소드들

메소드 설명
GraphicsDeviceService ( IntPtr windowHandle, int width, int height ) : System

Constructor is private, because this is a singleton class: client controls should use the public AddRef method instead.

메소드 상세

AddRef() 공개 정적인 메소드

Gets a reference to the singleton instance.
public static AddRef ( IntPtr windowHandle, int width, int height ) : GraphicsDeviceService
windowHandle System.IntPtr
width int
height int
리턴 GraphicsDeviceService

Release() 공개 메소드

Releases a reference to the singleton instance.
public Release ( bool disposing ) : void
disposing bool
리턴 void

ResetDevice() 공개 메소드

Resets the graphics device to whichever is bigger out of the specified resolution or its current size. This behavior means the device will demand-grow to the largest of all its GraphicsDeviceControl clients.
public ResetDevice ( int width, int height ) : void
width int
height int
리턴 void