Index

C/C++ Functions

dcRasterizerBezierTo

void dcRasterizerBezierTo(DT_DCRASTER dcr, DT_FLOAT x1, DT_FLOAT y1, DT_FLOAT x2, DT_FLOAT y2, DT_FLOAT x3, DT_FLOAT y3, DT_SLONG seg)

Short Description: BezierTo command

dcRasterizerBezierToFrac

void dcRasterizerBezierToFrac(DT_DCRASTER dcr, DT_SFRAC_L x1, DT_SFRAC_L y1, DT_SFRAC_L x2, DT_SFRAC_L y2, DT_SFRAC_L x3, DT_SFRAC_L y3, DT_SLONG seg)

Short Description: BezierToFrac command

dcRasterizerBezierTo2

void dcRasterizerBezierTo2(DT_DCRASTER dcr, DT_FLOAT x1, DT_FLOAT y1, DT_FLOAT x2, DT_FLOAT y2, DT_FLOAT x3, DT_FLOAT y3, DT_SLONG seg, const DT_UBYTE color1[], const DT_UBYTE color2[], const DT_UBYTE color3[])

Short Description: BezierTo2 command

dcRasterizerBezierToFrac2

void dcRasterizerBezierToFrac2(DT_DCRASTER dcr, DT_SFRAC_L x1, DT_SFRAC_L y1, DT_SFRAC_L x2, DT_SFRAC_L y2, DT_SFRAC_L x3, DT_SFRAC_L y3, DT_SLONG seg, const DT_UBYTE color1[], const DT_UBYTE color2[], const DT_UBYTE color3[])

Short Description: BezierToFrac2 command

The dcRasterizerBezierTo, dcRasterizerBezierToFrac, dcRasterizerBezierTo2 and dcRasterizerBezierToFrac2 functions instruct D-Type Direct Color Rasterizer to add a new Bézier curve segment to the current contour.

dcRasterizerBezierToFrac is identical to dcRasterizerBezierTo except that its coordinates are 24.8 signed fractional values. For more details on fractional units, see the D-Type Units section of this document.

dcRasterizerBezierTo2 is identical to dcRasterizerBezierTo except that it supports color at the curve's control and end points (with certain D-Type Rasterizers only). dcRasterizerBezierToFrac2 is identical to dcRasterizerBezierToFrac except that it supports color at the curve's control and end points (with certain D-Type Rasterizers only).

Parameters

ParameterDescription

dcr

Handle of the previously created D-Type Direct Color Rasterizer instance.

x1

X coordinate of the first control point of the new Bézier curve segment, in pixels.

y1

Y coordinate of the first control point of the new Bézier curve segment, in pixels.

x2

X coordinate of the second control point of the new Bézier curve segment, in pixels.

y2

Y coordinate of the second control point of the new Bézier curve segment, in pixels.

x3

End X coordinate of the new Bézier curve segment, in pixels.

y3

End Y coordinate of the new Bézier curve segment, in pixels.

seg

Minimum number of curve subdivisions. Higher values will result in smoother looking curves but will take more time to compute. Set to 0 to automatically calculate the optimum value.

color1

Color/transparency of the curve's first control point. Supported by D-Type Shading Rasterizer only. See color in dcRasterizerLineTo2 or dcRasterizerLineToFrac2 for details.

color2

Color/transparency of the curve's second control point. Supported by D-Type Shading Rasterizer only. See color in dcRasterizerLineTo2 or dcRasterizerLineToFrac2 for details.

color3

Color/transparency of the curve's end point. Supported by D-Type Shading Rasterizer only. See color in dcRasterizerLineTo2 or dcRasterizerLineToFrac2 for details.

 

Index