C# Class GLDraw, Octree

Afficher le fichier Open project: Pixelstudio/Octree Class Usage Examples

Méthodes publiques

Свойство Type Description
lineMaterial Material

Protected Properties

Свойство Type Description
clippingBounds Rect
clippingEnabled bool

Méthodes publiques

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

Méthodes protégées

Méthode Description
clip_test ( float p, float q, float &u1, float &u2 ) : bool
segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool

Private Methods

Méthode Description
CubeBezier ( Vector2 s, Vector2 st, Vector2 e, Vector2 et, float t ) : Vector2

Method Details

BeginGroup() public static méthode

public static BeginGroup ( Rect position ) : void
position Rect
Résultat void

CreateMaterial() public static méthode

public static CreateMaterial ( ) : void
Résultat void

DrawBezier() public static méthode

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

DrawBezier() public static méthode

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

DrawBox() public static méthode

public static DrawBox ( Rect box, Color color, float width ) : void
box Rect
color Color
width float
Résultat void

DrawBox() public static méthode

public static DrawBox ( Vector2 topLeftCorner, Vector2 bottomRightCorner, Color color, float width ) : void
topLeftCorner Vector2
bottomRightCorner Vector2
color Color
width float
Résultat void

DrawLine() public static méthode

public static DrawLine ( Vector2 start, Vector2 end, Color color, float width ) : void
start Vector2
end Vector2
color Color
width float
Résultat void

DrawRoundedBox() public static méthode

public static DrawRoundedBox ( Rect box, float radius, Color color, float width ) : void
box Rect
radius float
color Color
width float
Résultat void

EndGroup() public static méthode

public static EndGroup ( ) : void
Résultat void

clip_test() protected static méthode

protected static clip_test ( float p, float q, float &u1, float &u2 ) : bool
p float
q float
u1 float
u2 float
Résultat bool

segment_rect_intersection() protected static méthode

protected static segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool
bounds Rect
p1 Vector2
p2 Vector2
Résultat bool

Property Details

clippingBounds protected_oe static_oe property

protected static Rect clippingBounds
Résultat Rect

clippingEnabled protected_oe static_oe property

protected static bool clippingEnabled
Résultat bool

lineMaterial public_oe static_oe property

public static Material lineMaterial
Résultat Material