C# Класс Tilengine.Window

Built-in windowing and user input
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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