C# 클래스 Tilengine.Window

Built-in windowing and user input
파일 보기 프로젝트 열기: megamarc/Tilengine 1 사용 예제들

공개 메소드들

메소드 설명
BeginFrame ( int frame ) : void

Begins active rendering frame

Use this method instead of Engine.BeginFrame() when using build-in windowing

Create ( string overlay, WindowFlags flags ) : Window

Creates a window for rendering

This is a singleton object: calling Init multiple times will return the same reference

CreateThreaded ( string overlay, WindowFlags flags ) : Window

Creates a multithreaded window for rendering

This is a singleton object: calling Init multiple times will return the same reference

Delay ( uint msecs ) : void

Delete ( ) : void

DrawFrame ( int time ) : void

Draws a frame to the window

This method does delegate-driven rendering

EndFrame ( ) : void

GetInput ( Input id ) : bool

Returns the state of a given input

Process ( ) : bool

Does basic window housekeeping in signgle-threaded window. Must be called for each frame in game loop

This method must be called only for single-threaded windows, created with Create() method.

WaitRedraw ( ) : void

비공개 메소드들

메소드 설명
TLN_BeginWindowFrame ( int frame ) : void
TLN_CreateWindow ( string overlay, WindowFlags flags ) : bool
TLN_CreateWindowThread ( string overlay, WindowFlags flags ) : bool
TLN_Delay ( uint msecs ) : void
TLN_DeleteWindow ( ) : void
TLN_DrawFrame ( int time ) : void
TLN_EnableBlur ( [ mode ) : void
TLN_EndWindowFrame ( ) : void
TLN_GetInput ( Input id ) : bool
TLN_GetLastInput ( ) : Input
TLN_GetTicks ( ) : uint
TLN_IsWindowActive ( ) : bool
TLN_ProcessWindow ( ) : bool
TLN_SetWindowTitle ( string title ) : void
TLN_WaitRedraw ( ) : void

메소드 상세

BeginFrame() 공개 메소드

Begins active rendering frame
Use this method instead of Engine.BeginFrame() when using build-in windowing
public BeginFrame ( int frame ) : void
frame int Timestamp value
리턴 void

Create() 공개 정적인 메소드

Creates a window for rendering
This is a singleton object: calling Init multiple times will return the same reference
public static Create ( string overlay, WindowFlags flags ) : Window
overlay string Optional path of a bmp file to overlay (for emulating RGB mask, scanlines, etc)
flags WindowFlags Combined mask of the possible creation flags
리턴 Window

CreateThreaded() 공개 정적인 메소드

Creates a multithreaded window for rendering
This is a singleton object: calling Init multiple times will return the same reference
public static CreateThreaded ( string overlay, WindowFlags flags ) : Window
overlay string Optional path of a bmp file to overlay (for emulating RGB mask, scanlines, etc)
flags WindowFlags Combined mask of the possible creation flags
리턴 Window

Delay() 공개 메소드

public Delay ( uint msecs ) : void
msecs uint
리턴 void

Delete() 공개 메소드

public Delete ( ) : void
리턴 void

DrawFrame() 공개 메소드

Draws a frame to the window
This method does delegate-driven rendering
public DrawFrame ( int time ) : void
time int Timestamp value
리턴 void

EndFrame() 공개 메소드

public EndFrame ( ) : void
리턴 void

GetInput() 공개 메소드

Returns the state of a given input
public GetInput ( Input id ) : bool
id Input Input identificator to check state
리턴 bool

Process() 공개 메소드

Does basic window housekeeping in signgle-threaded window. Must be called for each frame in game loop
This method must be called only for single-threaded windows, created with Create() method.
public Process ( ) : bool
리턴 bool

WaitRedraw() 공개 메소드

public WaitRedraw ( ) : void
리턴 void