C# Класс idTech4.UI.idDeviceContext

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

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

Метод Описание
DrawCursor ( float &x, float &y, float size ) : void
DrawFilledRectangle ( float x, float y, float width, float height, Vector4 color ) : void
DrawMaterial ( float x, float y, float width, float height, idMaterial material, Vector4 color, float scaleX = 1.0f, float scaleY = 1.0f ) : void
DrawRectangle ( float x, float y, float width, float height, float size, Vector4 color ) : void
DrawStretchPicture ( float x, float y, float width, float height, float s, float t, float s2, float t2, idMaterial material ) : void
DrawText ( string text, float textScale, TextAlign textAlign, Vector4 color, idRectangle rectDraw, bool wrap, int cursor = -1, bool calcOnly = false, List breaks = null, int limit ) : int
FindFont ( string name ) : idFontFamily
GetCharacterWidth ( char c, float scale ) : int
GetTransformInformation ( Vector3 &origin, Matrix &transform ) : void
Init ( ) : void
MaxCharacterHeight ( float scale ) : int
MaxCharacterWidth ( float scale ) : int
PopClipRectangle ( ) : void
PushClipRectangle ( float x, float y, float width, float height ) : void
PushClipRectangle ( idRectangle rect ) : void
SetSize ( float width, float height ) : void
SetTransformInformation ( Vector3 origin, Matrix transform ) : void
idDeviceContext ( ) : System

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

Метод Описание
AdjustCoordinates ( float &x, float &y, float &width, float &height ) : void
Clear ( ) : void
ClipCoordinates ( float &x, float &y, float &width, float &height ) : bool
ClipCoordinates ( float &x, float &y, float &width, float &height, float &s, float &t, float &s2, float &t2 ) : bool
DrawText ( float x, float y, float scale, Vector4 color, string text, float adjust, int limit, int style, int cursor ) : int
PaintCharacter ( float x, float y, float width, float height, float scale, float s, float t, float s2, float t2, idMaterial shader ) : void
SetFontByScale ( float scale ) : void
SetupFonts ( ) : void

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

DrawCursor() публичный метод

public DrawCursor ( float &x, float &y, float size ) : void
x float
y float
size float
Результат void

DrawFilledRectangle() публичный метод

public DrawFilledRectangle ( float x, float y, float width, float height, Vector4 color ) : void
x float
y float
width float
height float
color Vector4
Результат void

DrawMaterial() публичный метод

public DrawMaterial ( float x, float y, float width, float height, idMaterial material, Vector4 color, float scaleX = 1.0f, float scaleY = 1.0f ) : void
x float
y float
width float
height float
material idTech4.Renderer.idMaterial
color Vector4
scaleX float
scaleY float
Результат void

DrawRectangle() публичный метод

public DrawRectangle ( float x, float y, float width, float height, float size, Vector4 color ) : void
x float
y float
width float
height float
size float
color Vector4
Результат void

DrawStretchPicture() публичный метод

public DrawStretchPicture ( float x, float y, float width, float height, float s, float t, float s2, float t2, idMaterial material ) : void
x float
y float
width float
height float
s float
t float
s2 float
t2 float
material idTech4.Renderer.idMaterial
Результат void

DrawText() публичный метод

public DrawText ( string text, float textScale, TextAlign textAlign, Vector4 color, idRectangle rectDraw, bool wrap, int cursor = -1, bool calcOnly = false, List breaks = null, int limit ) : int
text string
textScale float
textAlign TextAlign
color Vector4
rectDraw idRectangle
wrap bool
cursor int
calcOnly bool
breaks List
limit int
Результат int

FindFont() публичный метод

public FindFont ( string name ) : idFontFamily
name string
Результат idTech4.Renderer.idFontFamily

GetCharacterWidth() публичный метод

public GetCharacterWidth ( char c, float scale ) : int
c char
scale float
Результат int

GetTransformInformation() публичный метод

public GetTransformInformation ( Vector3 &origin, Matrix &transform ) : void
origin Vector3
transform Matrix
Результат void

Init() публичный метод

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

MaxCharacterHeight() публичный метод

public MaxCharacterHeight ( float scale ) : int
scale float
Результат int

MaxCharacterWidth() публичный метод

public MaxCharacterWidth ( float scale ) : int
scale float
Результат int

PopClipRectangle() публичный метод

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

PushClipRectangle() публичный метод

public PushClipRectangle ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
Результат void

PushClipRectangle() публичный метод

public PushClipRectangle ( idRectangle rect ) : void
rect idRectangle
Результат void

SetSize() публичный метод

public SetSize ( float width, float height ) : void
width float
height float
Результат void

SetTransformInformation() публичный метод

public SetTransformInformation ( Vector3 origin, Matrix transform ) : void
origin Vector3
transform Matrix
Результат void

idDeviceContext() публичный метод

public idDeviceContext ( ) : System
Результат System