C# Класс CryEngine.Renderer

Показать файл Открыть проект

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

Метод Описание
CreateRenderTarget ( int width, int height, int flags ) : int
DestroyRenderTarget ( int id ) : void
DrawTextToScreen ( float x, float y, float fontSize, CryEngine.Color color, bool centered, string text ) : void
DrawTextToScreen ( float x, float y, float fontSize, CryEngine.Color color, string text ) : void
DrawTexture ( int x, int y, int width, int height, int textureId ) : void

Draws a texture to the screen for one frame.

LoadTexture ( string texturePath ) : int

Loads a texture into memory and generates its ID.

ScreenToWorld ( int x, int y ) : Vec3
SetRenderTarget ( int id ) : void
UnProjectFromScreen ( float sx, float sy, float sz, float &px, float &py, float &pz ) : int

Описание методов

CreateRenderTarget() публичный статический Метод

public static CreateRenderTarget ( int width, int height, int flags ) : int
width int
height int
flags int
Результат int

DestroyRenderTarget() публичный статический Метод

public static DestroyRenderTarget ( int id ) : void
id int
Результат void

DrawTextToScreen() публичный статический Метод

public static DrawTextToScreen ( float x, float y, float fontSize, CryEngine.Color color, bool centered, string text ) : void
x float
y float
fontSize float
color CryEngine.Color
centered bool
text string
Результат void

DrawTextToScreen() публичный статический Метод

public static DrawTextToScreen ( float x, float y, float fontSize, CryEngine.Color color, string text ) : void
x float
y float
fontSize float
color CryEngine.Color
text string
Результат void

DrawTexture() публичный статический Метод

Draws a texture to the screen for one frame.
public static DrawTexture ( int x, int y, int width, int height, int textureId ) : void
x int The x position on the screen, relative to the top-left corner.
y int The y position on the screen, relative to the top-left corner.
width int The width to render the texture at.
height int The height to render the texture at.
textureId int The ID of the texture (obtained using Renderer.LoadTexture(path)).
Результат void

LoadTexture() публичный статический Метод

Loads a texture into memory and generates its ID.
public static LoadTexture ( string texturePath ) : int
texturePath string The path to the texture.
Результат int

ScreenToWorld() публичный статический Метод

public static ScreenToWorld ( int x, int y ) : Vec3
x int
y int
Результат Vec3

SetRenderTarget() публичный статический Метод

public static SetRenderTarget ( int id ) : void
id int
Результат void

UnProjectFromScreen() публичный статический Метод

public static UnProjectFromScreen ( float sx, float sy, float sz, float &px, float &py, float &pz ) : int
sx float
sy float
sz float
px float
py float
pz float
Результат int