C# Class CryEngine.Renderer

Afficher le fichier Open project: PoppermostProductions/CryMono

Méthodes publiques

Méthode Description
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

Method Details

CreateRenderTarget() public static méthode

public static CreateRenderTarget ( int width, int height, int flags ) : int
width int
height int
flags int
Résultat int

DestroyRenderTarget() public static méthode

public static DestroyRenderTarget ( int id ) : void
id int
Résultat void

DrawTextToScreen() public static méthode

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
Résultat void

DrawTextToScreen() public static méthode

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
Résultat void

DrawTexture() public static méthode

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)).
Résultat void

LoadTexture() public static méthode

Loads a texture into memory and generates its ID.
public static LoadTexture ( string texturePath ) : int
texturePath string The path to the texture.
Résultat int

ScreenToWorld() public static méthode

public static ScreenToWorld ( int x, int y ) : Vec3
x int
y int
Résultat Vec3

SetRenderTarget() public static méthode

public static SetRenderTarget ( int id ) : void
id int
Résultat void

UnProjectFromScreen() public static méthode

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
Résultat int