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 ) : |
||
SetRenderTarget ( int id ) : void | ||
UnProjectFromScreen ( float sx, float sy, float sz, float &px, float &py, float &pz ) : int |
public static CreateRenderTarget ( int width, int height, int flags ) : int | ||
width | int | |
height | int | |
flags | int | |
return | int |
public static DestroyRenderTarget ( int id ) : void | ||
id | int | |
return | void |
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 |
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 |
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 |
public static LoadTexture ( string texturePath ) : int | ||
texturePath | string | The path to the texture. |
return | int |
public static ScreenToWorld ( int x, int y ) : |
||
x | int | |
y | int | |
return |
public static SetRenderTarget ( int id ) : void | ||
id | int | |
return | void |
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 |