C# Class GLDraw, Octree

Show file Open project: Pixelstudio/Octree Class Usage Examples

Public Properties

Property Type Description
lineMaterial Material

Protected Properties

Property Type Description
clippingBounds Rect
clippingEnabled bool

Public Methods

Method 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

Protected Methods

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

Private Methods

Method Description
CubeBezier ( Vector2 s, Vector2 st, Vector2 e, Vector2 et, float t ) : Vector2

Method Details

BeginGroup() public static method

public static BeginGroup ( Rect position ) : void
position Rect
return void

CreateMaterial() public static method

public static CreateMaterial ( ) : void
return void

DrawBezier() public static method

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
return void

DrawBezier() public static method

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
return void

DrawBox() public static method

public static DrawBox ( Rect box, Color color, float width ) : void
box Rect
color Color
width float
return void

DrawBox() public static method

public static DrawBox ( Vector2 topLeftCorner, Vector2 bottomRightCorner, Color color, float width ) : void
topLeftCorner Vector2
bottomRightCorner Vector2
color Color
width float
return void

DrawLine() public static method

public static DrawLine ( Vector2 start, Vector2 end, Color color, float width ) : void
start Vector2
end Vector2
color Color
width float
return void

DrawRoundedBox() public static method

public static DrawRoundedBox ( Rect box, float radius, Color color, float width ) : void
box Rect
radius float
color Color
width float
return void

EndGroup() public static method

public static EndGroup ( ) : void
return void

clip_test() protected static method

protected static clip_test ( float p, float q, float &u1, float &u2 ) : bool
p float
q float
u1 float
u2 float
return bool

segment_rect_intersection() protected static method

protected static segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool
bounds Rect
p1 Vector2
p2 Vector2
return bool

Property Details

clippingBounds protected static property

protected static Rect clippingBounds
return Rect

clippingEnabled protected static property

protected static bool clippingEnabled
return bool

lineMaterial public static property

public static Material lineMaterial
return Material