C# 클래스 CryEngine.Renderer

파일 보기 프로젝트 열기: PoppermostProductions/CryMono

공개 메소드들

메소드 설명
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