C# Class OpenTkEngine.Core.Graphics

Mostrar archivo Open project: jikoriko/OpentkEngine Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
Destroy ( ) : void
DrawRect ( float x, float y, float z, float width, float height, int lineWidth, Color4 color ) : void
DrawRoundedRect ( float x, float y, float z, float width, float height, float radius, int lineWidth, Color4 color ) : void
DrawText ( string text, float x, float y, float z, Color4 color ) : void
DrawTexture ( Texture texture, Rectangle dest, float z, Rectangle source, Color4 color ) : void
DrawTexture ( Texture texture, Vector3 position, System.Vector2 size, System.Vector2 sourcePosition, System.Vector2 sourceDimension, Color4 color ) : void
DrawTexture ( Texture texture, float x, float y, float z, Color4 color ) : void
DrawTexture ( Texture texture, float x, float y, float z, float width, float height, Color4 color ) : void
DrawTexture ( Texture texture, float x, float y, float z, float width, float height, int sx, int sy, int sw, int sh, Color4 color ) : void
FillRect ( float x, float y, float z, float width, float height, Color4 color ) : void
FillRoundedRect ( float x, float y, float z, float width, float height, float radius, Color4 color ) : void
GetFont ( ) : BitmapFont
GetShader ( ) : Shader
GetTranslation ( ) : Vector3
Initialize ( ) : void
PopScreenClip ( ) : void
PopStencilDepth ( ) : void
PopWorldMatrix ( ) : void
PushScreenClip ( Rectangle clip ) : void
PushStencilDepth ( StencilOp stencilOp ) : void
PushWorldMatrix ( ) : void
RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, Color4 color ) : void
RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, int offset, Color4 color ) : void
RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, int offset, int count, Color4 color ) : void
SetClearColor ( Color4 color ) : void
SetColor ( Color4 color ) : void
SetProjection ( Rectangle client ) : void
SetRenderMode ( RenderMode mode ) : void
SetStencilOp ( StencilOp stencilOp ) : void
SetWorldMatrix ( Matrix4 matrix ) : void
SetWorldTranslation ( Vector3 translation ) : void
TranslateWorld ( Vector3 translation ) : void

Private Methods

Method Description
BindCorner ( ) : void
BindSquare ( ) : void
BindTextureCoords ( ) : void
ClearScreenClip ( ) : void
DrawCorner ( float x, float y, float z, float radius, float rotation ) : void
FillCorner ( float x, float y, float z, float radius, float rotation ) : void
RenderQuad ( float x, float y, float z, float width, float height ) : void
RenderQuad ( float x, float y, float z, float width, float height, int offset, int count ) : void
SetScreenClip ( Rectangle clip ) : void

Method Details

Clear() public static method

public static Clear ( ) : void
return void

Destroy() public static method

public static Destroy ( ) : void
return void

DrawRect() public static method

public static DrawRect ( float x, float y, float z, float width, float height, int lineWidth, Color4 color ) : void
x float
y float
z float
width float
height float
lineWidth int
color Color4
return void

DrawRoundedRect() public static method

public static DrawRoundedRect ( float x, float y, float z, float width, float height, float radius, int lineWidth, Color4 color ) : void
x float
y float
z float
width float
height float
radius float
lineWidth int
color Color4
return void

DrawText() public static method

public static DrawText ( string text, float x, float y, float z, Color4 color ) : void
text string
x float
y float
z float
color Color4
return void

DrawTexture() public static method

public static DrawTexture ( Texture texture, Rectangle dest, float z, Rectangle source, Color4 color ) : void
texture Texture
dest Rectangle
z float
source Rectangle
color Color4
return void

DrawTexture() public static method

public static DrawTexture ( Texture texture, Vector3 position, System.Vector2 size, System.Vector2 sourcePosition, System.Vector2 sourceDimension, Color4 color ) : void
texture Texture
position Vector3
size System.Vector2
sourcePosition System.Vector2
sourceDimension System.Vector2
color Color4
return void

DrawTexture() public static method

public static DrawTexture ( Texture texture, float x, float y, float z, Color4 color ) : void
texture Texture
x float
y float
z float
color Color4
return void

DrawTexture() public static method

public static DrawTexture ( Texture texture, float x, float y, float z, float width, float height, Color4 color ) : void
texture Texture
x float
y float
z float
width float
height float
color Color4
return void

DrawTexture() public static method

public static DrawTexture ( Texture texture, float x, float y, float z, float width, float height, int sx, int sy, int sw, int sh, Color4 color ) : void
texture Texture
x float
y float
z float
width float
height float
sx int
sy int
sw int
sh int
color Color4
return void

FillRect() public static method

public static FillRect ( float x, float y, float z, float width, float height, Color4 color ) : void
x float
y float
z float
width float
height float
color Color4
return void

FillRoundedRect() public static method

public static FillRoundedRect ( float x, float y, float z, float width, float height, float radius, Color4 color ) : void
x float
y float
z float
width float
height float
radius float
color Color4
return void

GetFont() public static method

public static GetFont ( ) : BitmapFont
return System.Drawing.BitmapFont

GetShader() public static method

public static GetShader ( ) : Shader
return Shader

GetTranslation() public static method

public static GetTranslation ( ) : Vector3
return Vector3

Initialize() public static method

public static Initialize ( ) : void
return void

PopScreenClip() public static method

public static PopScreenClip ( ) : void
return void

PopStencilDepth() public static method

public static PopStencilDepth ( ) : void
return void

PopWorldMatrix() public static method

public static PopWorldMatrix ( ) : void
return void

PushScreenClip() public static method

public static PushScreenClip ( Rectangle clip ) : void
clip Rectangle
return void

PushStencilDepth() public static method

public static PushStencilDepth ( StencilOp stencilOp ) : void
stencilOp StencilOp
return void

PushWorldMatrix() public static method

public static PushWorldMatrix ( ) : void
return void

RenderModelMesh() public static method

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
color Color4
return void

RenderModelMesh() public static method

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, int offset, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
offset int
color Color4
return void

RenderModelMesh() public static method

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, int offset, int count, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
offset int
count int
color Color4
return void

SetClearColor() public static method

public static SetClearColor ( Color4 color ) : void
color Color4
return void

SetColor() public static method

public static SetColor ( Color4 color ) : void
color Color4
return void

SetProjection() public static method

public static SetProjection ( Rectangle client ) : void
client Rectangle
return void

SetRenderMode() public static method

public static SetRenderMode ( RenderMode mode ) : void
mode RenderMode
return void

SetStencilOp() public static method

public static SetStencilOp ( StencilOp stencilOp ) : void
stencilOp StencilOp
return void

SetWorldMatrix() public static method

public static SetWorldMatrix ( Matrix4 matrix ) : void
matrix Matrix4
return void

SetWorldTranslation() public static method

public static SetWorldTranslation ( Vector3 translation ) : void
translation Vector3
return void

TranslateWorld() public static method

public static TranslateWorld ( Vector3 translation ) : void
translation Vector3
return void