This overview explains the basics about creating, rendering and destroying paths. Refer to the API reference for more path functions. The User Guide chapter Using the 2D Toolkit explains the Rt2d toolkit in more detail.
|
Rt2dPathClose is used to add a line segment to the specified path that joins the current point with the first point defined for this path. This operation thus forces the path to define a closed 2D region. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathCopy is used to duplicate the definition of the source path and store the result in the destination path. Note that the destination path is emptied before the copy is performed, therefore, the source and destination path arguments must not point to the same path. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathCreate is used to create a new path. The path is initially empty and locked but may be constructed using any combination of the available primitive line drawing procedures. A path may be closed or open, connected or disjoint (that is, have multiple boundaries), depending on how it has been constructed. The path should be unlocked after editing and before rendering it. Note that the current point for a newly created path is undefined. To establish an initial current point use the function Rt2dPathMoveto. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathCreateMorphResultPath is used to create a result path for a morphing operation. The created path will be used as a result for morph animation, allowing to apply geometrics modification of the path without the need to keep it locked
|
|
Rt2dPathCurveto is used to add a curved line segment to the specified path. The curve is defined by the four control points of a cubic Bezier whose positions are given by the current point and the points passed to this function (in that order). After this function has executed, the current point is equal to the last position specified here. Note that positions are defined in absolute coordinates. Use the function Rt2dPathRCurveto to specify coordinates relative to the current point. Also note that the positions are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathDestroy is used to destroy the specified path. All paths created by an application must be destroyed before the application closes down. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathEmpty is used to delete all data describing the specified path without actually destroying it. This leaves the path empty and ready for a new path description to be constructed. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathFill is used to fill the specified path using the colors and texture coordinates of the given brush. The path must be closed for this function to work properly. The fill color for each point within the path is determined by bilinear interpolation of the colors of the brush assuming they represent the colors of the four corners of the path's bounding-box. Hence, the fill color depends on the relative distance of each interior point from the corner points of the path's bounding-box. If the brush also specifies texture coordinates and a texture image, the path is filled with the image assuming that the bounding-box corners have the texture coordinates of the brush. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathFlatten is used to convert the specified path to use only straight line segments. For the curved portions of the path, the degree of flattening may be controlled with a factor specified using the function Rt2dDeviceSetFlat, which has a default value of 0.5. This factor specifies the maximum pixel error that is tolerated as the curves are tessellated. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathGetBBox is used to determine the parameters of an axis-aligned bounding-box that completely encloses the specified path. The box determined by this function is the box before the CTM has transformed the path. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathInset is used to scale the specified path such that the new path is parallel to the original at every point. The perpendicular distance between the new and old paths is given by the inset; positive values result in a new path contained inside the original and vice versa. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathLineto is used to add a straight line segment to the specified path that extends from the current point to a point with the given coordinates. After this function has executed the current point is equal to the point with the specified position. Note that positions are defined in absolute coordinates. Use the function Rt2dPathRLineto to specify coordinates relative to the current point. Also note that the positions are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathLock is used to lock a new path. This should be done before any modification append to the path. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathMorph is used to apply a morphing animation to two path. the result of this operation will be stored in a result path, created using Rt2dPathCreateMorphResultPath. An alpha value, indicating the degree of morphing between the source and the destination path should be provided.
|
|
Rt2dPathMoveto is used to define the current point for the specified path using the given coordinates. Note that positions are defined in absolute coordinates and are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathOval is used to add an outline oval to the specified path that has the given position, width and height. Note that positions are defined in absolute coordinates and are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathRCurveto is used to add a curved line segment to the specified path. The curve is defined by the four control points of a cubic Bezier whose positions are given by the current point and the points passed to this function (in that order). After this function has executed, the current point is equal to the last position specified here. Note that positions are defined using coordinates relative to the currrent point. Use the function Rt2dPathCurveto to specify absolute coordinates. Also note that the positions are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathRect is used to add an outline rectangle to the specified path that has the given position, width and height. Note that positions are defined in absolute coordinates and are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathRLineto is used to add a straight line segment to the specified path that extends from the current point to a point with the given coordinates. After this function has executed the current point is equal to the point with the specified position. Note that positions are defined using coordinates relative to the currrent point. Use the function Rt2dPathLineto to specify absolute coordinates. Also note that the positions are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathRoundRect is used to add an outline rectangle with rounded corners to the specified path that has the given position, width, height and radius of curvature of the corners. The radius must be greater than zero. Note that positions are defined in absolute coordinates and are subject to the current transformation matrix (CTM). The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathStreamGetSize is used to determine the size in bytes of the binary representation of the given path. This is used in the binary chunk header to indicate the size of the chunk. The size does include the size of the chunk header.
|
|
Rt2dPathStreamRead is used to read a path object from the specified binary stream. Note that prior to this function call a path chunk must be found in the stream using the RwStreamFindChunk API function. The sequence to locate and read a path from a binary stream is as follows: RwStream *stream; Rt2dPath *newPath; stream = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMREAD, "mybinary.xxx"); if( stream ) { if( RwStreamFindChunk(stream, rwID_2DPATH, NULL, NULL) ) { newPath = Rt2dPathStreamRead(stream); } RwStreamClose(stream, NULL); }
|
|
Rt2dPathStreamWrite is used to write the specified path to the given binary stream. Note that the stream will have been opened prior to this function call.
|
|
Rt2dPathStroke is used to paint the specified path using the given brush. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
|
Rt2dPathUnlock is used to unlock a previously locked path. This should be done after any modification append to the path, not doing so can highly degrade performences. The include file rt2d.h and the library file rt2d.lib are required to use this function.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |