Documentation

Render Context - Open Dev Kit Documentation

Open Dev Kit Documentation :: GUI :: Render Context

GUI.RenderContext
Handles drawing and graphical transformations within a specified GUI control using methods for various drawing operations

Functions

Constructor ( Control Control* )
Clear ( Color Color )
Clears the entire rendering area with a specified color
Draw Point ( Point 2D Vector, Color Color )
Draws a single point at the specified location with a specified color
Draw Image ( Image Image*, Area Rectangle, Color Color, Texture Area Rectangle )
Draws an image within a specified area of the render context
Draw Line ( Point 1 2D Vector, Point 2 2D Vector, Color Color )
Draws a line between two points within the render context
Draw Path ( Points 2D Vector Array, Color Color, Segmented Boolean )
Draws a path defined by an array of points within the render context, optionally segmented
Draw Polygon ( Points 2D Vector Array, Border Color Color, Fill Color Color )
Draws a polygon with both border and fill colors
Draw Unfilled Polygon ( Points 2D Vector Array, Color Color )
Draws an unfilled polygon defined only by its border
Draw Filled Polygon ( Points 2D Vector Array, Color Color )
Draws a filled polygon without a distinct border
Draw Ellipse ( Area Rectangle, Border Color Color, Fill Color Color )
Draws an ellipse with both border and fill colors, specified within a bounding rectangle
Draw Unfilled Ellipse ( Area Rectangle, Color Color )
Draws an ellipse defined only by its border within a bounding rectangle
Draw Filled Ellipse ( Area Rectangle, Color Color )
Draws a filled ellipse without a distinct border, defined within a bounding rectangle
Draw Rectangle ( Area Rectangle, Border Color Color, Fill Color Color )
Draws a rectangle with both border and fill colors
Draw Unfilled Rectangle ( Area Rectangle, Color Color )
Draws a rectangle defined only by its border
Draw Filled Rectangle ( Area Rectangle, Color Color )
Draws a filled rectangle without a distinct border
Draw Bezier ( Start 2D Vector, Control 1 2D Vector, Control 2 2D Vector, End 2D Vector, Color Color )
Draws a Bezier curve using specified start, end, and control points
Draw Text ( Text String, Area Rectangle, Color 1 Color, Color 2 Color, Font Font* )
Draws text within a specified rectangular area, using 1-2 colors, and allowing for a custom overriding font
Get Text Dimensions ( Text String, Font Font*, Wrap Width Integer ) 2D Vector
Returns the dimensions of text with the current font or a specified one
Draw Model ( Model Model*, Track Integer, Time Double, Speed Double, Repeating Method Standard Repeating Method, Tint Color Color HDR, Tint Specular Color HDR )
Draws a model based on the render context's transformations (not all renderers support this)
Duplicate Image Rectangle (Blit) ( Destination Area Rectangle, Source Area Rectangle )
Copies an image or a portion of it from a source area to a destination area
Draw 3D Path ( Points 3D Vector Array, Color Color, Segmented Boolean )
Draws a 3D path connecting multiple points in space, optionally segmented
Draw 3D Polygon ( Points 3D Vector Array, Border Color Color, Fill Color Color )
Draws a 3D polygon defined by multiple points, with border and fill colors
Draw 3D Line ( Point 1 3D Vector, Point 2 3D Vector, Color Color )
Draws a line segment between two 3D points
Draw 3D Bezier ( Start 3D Vector, Control 1 3D Vector, Control 2 3D Vector, End 3D Vector, Segments Integer, Color Color )
Draws a Bezier curve in 3D space, defined by start, end, and control points
Draw 3D Ellipse ( Center 3D Vector, Size 2D Vector, Orientation 4D Vector (Quaternion), Segments Integer, Border Color Color, Fill Color Color )
Draws an ellipse in 3D space defined by a center, size, orientation, and color properties
Draw 3D Box ( Center 3D Vector, Size 3D Vector, Orientation 4D Vector (Quaternion), Border Color Color, Fill Color Color )
Draws a 3D rectangular prism (or cube) defined by its center, size, orientation, and colors for border and fill
Draw 3D Ellipsoid ( Center 3D Vector, Size 3D Vector, Orientation 4D Vector (Quaternion), Segments Integer, Border Color Color, Fill Color Color )
Draws a 3D ellipsoid (or sphere) defined by its center, size, orientation, and colors for border and fill

Properties

Translation 3D Vector
translation vector applied to all drawn elements in this context
Scaling 3D Vector
scaling vector applied to all drawn elements
Rotation 4D Vector (Quaternion)
rotation vector applied to all drawn elements
Text Scaling 2D Vector
scaling vector specifically applied to text elements
Image Image*
image being rendered in the current context

If you think anything is missing, please feel free to: submit documentation feedback on this page