C# Class OpenTkEngine.Core.Graphics

Afficher le fichier Open project: jikoriko/OpentkEngine Class Usage Examples

Méthodes publiques

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

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

public static Clear ( ) : void
Résultat void

Destroy() public static méthode

public static Destroy ( ) : void
Résultat void

DrawRect() public static méthode

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

DrawRoundedRect() public static méthode

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

DrawText() public static méthode

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

DrawTexture() public static méthode

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

DrawTexture() public static méthode

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

DrawTexture() public static méthode

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

DrawTexture() public static méthode

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

DrawTexture() public static méthode

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

FillRect() public static méthode

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

FillRoundedRect() public static méthode

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

GetFont() public static méthode

public static GetFont ( ) : BitmapFont
Résultat System.Drawing.BitmapFont

GetShader() public static méthode

public static GetShader ( ) : Shader
Résultat Shader

GetTranslation() public static méthode

public static GetTranslation ( ) : Vector3
Résultat Vector3

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

PopScreenClip() public static méthode

public static PopScreenClip ( ) : void
Résultat void

PopStencilDepth() public static méthode

public static PopStencilDepth ( ) : void
Résultat void

PopWorldMatrix() public static méthode

public static PopWorldMatrix ( ) : void
Résultat void

PushScreenClip() public static méthode

public static PushScreenClip ( Rectangle clip ) : void
clip Rectangle
Résultat void

PushStencilDepth() public static méthode

public static PushStencilDepth ( StencilOp stencilOp ) : void
stencilOp StencilOp
Résultat void

PushWorldMatrix() public static méthode

public static PushWorldMatrix ( ) : void
Résultat void

RenderModelMesh() public static méthode

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
color Color4
Résultat void

RenderModelMesh() public static méthode

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

RenderModelMesh() public static méthode

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

SetClearColor() public static méthode

public static SetClearColor ( Color4 color ) : void
color Color4
Résultat void

SetColor() public static méthode

public static SetColor ( Color4 color ) : void
color Color4
Résultat void

SetProjection() public static méthode

public static SetProjection ( Rectangle client ) : void
client Rectangle
Résultat void

SetRenderMode() public static méthode

public static SetRenderMode ( RenderMode mode ) : void
mode RenderMode
Résultat void

SetStencilOp() public static méthode

public static SetStencilOp ( StencilOp stencilOp ) : void
stencilOp StencilOp
Résultat void

SetWorldMatrix() public static méthode

public static SetWorldMatrix ( Matrix4 matrix ) : void
matrix Matrix4
Résultat void

SetWorldTranslation() public static méthode

public static SetWorldTranslation ( Vector3 translation ) : void
translation Vector3
Résultat void

TranslateWorld() public static méthode

public static TranslateWorld ( Vector3 translation ) : void
translation Vector3
Résultat void