C# Class CryEngine.Renderer

Show file Open project: PoppermostProductions/CryMono

Public Methods

Method 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 method

public static CreateRenderTarget ( int width, int height, int flags ) : int
width int
height int
flags int
return int

DestroyRenderTarget() public static method

public static DestroyRenderTarget ( int id ) : void
id int
return void

DrawTextToScreen() public static method

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
return void

DrawTextToScreen() public static method

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
return void

DrawTexture() public static method

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)).
return void

LoadTexture() public static method

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

ScreenToWorld() public static method

public static ScreenToWorld ( int x, int y ) : Vec3
x int
y int
return Vec3

SetRenderTarget() public static method

public static SetRenderTarget ( int id ) : void
id int
return void

UnProjectFromScreen() public static method

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
return int