C# Класс OpenTkEngine.Core.Graphics

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Clear() публичный статический Метод

public static Clear ( ) : void
Результат void

Destroy() публичный статический Метод

public static Destroy ( ) : void
Результат void

DrawRect() публичный статический Метод

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
Результат void

DrawRoundedRect() публичный статический Метод

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
Результат void

DrawText() публичный статический Метод

public static DrawText ( string text, float x, float y, float z, Color4 color ) : void
text string
x float
y float
z float
color Color4
Результат void

DrawTexture() публичный статический Метод

public static DrawTexture ( Texture texture, Rectangle dest, float z, Rectangle source, Color4 color ) : void
texture Texture
dest Rectangle
z float
source Rectangle
color Color4
Результат void

DrawTexture() публичный статический Метод

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
Результат void

DrawTexture() публичный статический Метод

public static DrawTexture ( Texture texture, float x, float y, float z, Color4 color ) : void
texture Texture
x float
y float
z float
color Color4
Результат void

DrawTexture() публичный статический Метод

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
Результат void

DrawTexture() публичный статический Метод

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
Результат void

FillRect() публичный статический Метод

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
Результат void

FillRoundedRect() публичный статический Метод

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
Результат void

GetFont() публичный статический Метод

public static GetFont ( ) : BitmapFont
Результат System.Drawing.BitmapFont

GetShader() публичный статический Метод

public static GetShader ( ) : Shader
Результат Shader

GetTranslation() публичный статический Метод

public static GetTranslation ( ) : Vector3
Результат Vector3

Initialize() публичный статический Метод

public static Initialize ( ) : void
Результат void

PopScreenClip() публичный статический Метод

public static PopScreenClip ( ) : void
Результат void

PopStencilDepth() публичный статический Метод

public static PopStencilDepth ( ) : void
Результат void

PopWorldMatrix() публичный статический Метод

public static PopWorldMatrix ( ) : void
Результат void

PushScreenClip() публичный статический Метод

public static PushScreenClip ( Rectangle clip ) : void
clip Rectangle
Результат void

PushStencilDepth() публичный статический Метод

public static PushStencilDepth ( StencilOp stencilOp ) : void
stencilOp StencilOp
Результат void

PushWorldMatrix() публичный статический Метод

public static PushWorldMatrix ( ) : void
Результат void

RenderModelMesh() публичный статический Метод

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
color Color4
Результат void

RenderModelMesh() публичный статический Метод

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, int offset, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
offset int
color Color4
Результат void

RenderModelMesh() публичный статический Метод

public static RenderModelMesh ( ModelMesh mesh, Matrix4 matrix, int offset, int count, Color4 color ) : void
mesh ModelMesh
matrix Matrix4
offset int
count int
color Color4
Результат void

SetClearColor() публичный статический Метод

public static SetClearColor ( Color4 color ) : void
color Color4
Результат void

SetColor() публичный статический Метод

public static SetColor ( Color4 color ) : void
color Color4
Результат void

SetProjection() публичный статический Метод

public static SetProjection ( Rectangle client ) : void
client Rectangle
Результат void

SetRenderMode() публичный статический Метод

public static SetRenderMode ( RenderMode mode ) : void
mode RenderMode
Результат void

SetStencilOp() публичный статический Метод

public static SetStencilOp ( StencilOp stencilOp ) : void
stencilOp StencilOp
Результат void

SetWorldMatrix() публичный статический Метод

public static SetWorldMatrix ( Matrix4 matrix ) : void
matrix Matrix4
Результат void

SetWorldTranslation() публичный статический Метод

public static SetWorldTranslation ( Vector3 translation ) : void
translation Vector3
Результат void

TranslateWorld() публичный статический Метод

public static TranslateWorld ( Vector3 translation ) : void
translation Vector3
Результат void