C# Класс GLDraw, Octree

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

Открытые свойства

Свойство Тип Описание
lineMaterial Material

Защищенные свойства (Protected)

Свойство Тип Описание
clippingBounds Rect
clippingEnabled bool

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

Метод Описание
BeginGroup ( Rect position ) : void
CreateMaterial ( ) : void
DrawBezier ( Vector2 start, Vector2 startTangent, Vector2 end, Vector2 endTangent, Color color, float width ) : void
DrawBezier ( Vector2 start, Vector2 startTangent, Vector2 end, Vector2 endTangent, Color color, float width, int segments ) : void
DrawBox ( Rect box, Color color, float width ) : void
DrawBox ( Vector2 topLeftCorner, Vector2 bottomRightCorner, Color color, float width ) : void
DrawLine ( Vector2 start, Vector2 end, Color color, float width ) : void
DrawRoundedBox ( Rect box, float radius, Color color, float width ) : void
EndGroup ( ) : void

Защищенные методы

Метод Описание
clip_test ( float p, float q, float &u1, float &u2 ) : bool
segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool

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

Метод Описание
CubeBezier ( Vector2 s, Vector2 st, Vector2 e, Vector2 et, float t ) : Vector2

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

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

public static BeginGroup ( Rect position ) : void
position Rect
Результат void

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

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

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

public static DrawBezier ( Vector2 start, Vector2 startTangent, Vector2 end, Vector2 endTangent, Color color, float width ) : void
start Vector2
startTangent Vector2
end Vector2
endTangent Vector2
color Color
width float
Результат void

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

public static DrawBezier ( Vector2 start, Vector2 startTangent, Vector2 end, Vector2 endTangent, Color color, float width, int segments ) : void
start Vector2
startTangent Vector2
end Vector2
endTangent Vector2
color Color
width float
segments int
Результат void

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

public static DrawBox ( Rect box, Color color, float width ) : void
box Rect
color Color
width float
Результат void

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

public static DrawBox ( Vector2 topLeftCorner, Vector2 bottomRightCorner, Color color, float width ) : void
topLeftCorner Vector2
bottomRightCorner Vector2
color Color
width float
Результат void

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

public static DrawLine ( Vector2 start, Vector2 end, Color color, float width ) : void
start Vector2
end Vector2
color Color
width float
Результат void

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

public static DrawRoundedBox ( Rect box, float radius, Color color, float width ) : void
box Rect
radius float
color Color
width float
Результат void

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

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

clip_test() защищенный статический Метод

protected static clip_test ( float p, float q, float &u1, float &u2 ) : bool
p float
q float
u1 float
u2 float
Результат bool

segment_rect_intersection() защищенный статический Метод

protected static segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool
bounds Rect
p1 Vector2
p2 Vector2
Результат bool

Описание свойств

clippingBounds защищенное статическое свойство

protected static Rect clippingBounds
Результат Rect

clippingEnabled защищенное статическое свойство

protected static bool clippingEnabled
Результат bool

lineMaterial публичное статическое свойство

public static Material lineMaterial
Результат Material