Index

CDTRasterizerV8

Init

1 bool Init(const DT_MDC* memory_surface, DT_SLONG raster_intersect = 0, DT_ID_SLONG raster_id = 0, DT_DASYS das = DV_NULL, DT_UWORD flags = 0)

2 bool Init(const DT_MDC& memory_surface, DT_SLONG raster_intersect = 0, DT_ID_SLONG raster_id = 0, DT_DASYS das = DV_NULL, DT_UWORD flags = 0)

This method fully initializes the CDTRasterizerV8 object.

If the initialization was successful, applications can subsequently call the scene construction methods (MoveTo, MoveToFrac, LineTo, LineToFrac, BSplineTo, BSplineToFrac, BezierTo, BezierToFrac, MultiSegment, MultiSegmentFrac) to add output to the current scene. Once the entire scene has been constructed, applications can render it by calling DoOutput.

Parameters

ParameterDescription

memory_surface

References the DT_MDC structure that describes the memory surface to which the scene will be rendered.

raster_intersect

Initial value for maximum number of intersections in a single scan line. Set to 0 to use the default value.

raster_id

Version of CDTRasterizerV8 to initialize:

D-Type Direct Color Rasterizer

  • 0 = Ultra-Fast RGBA Rasterizer
  • 1 = No-Overlap RGBA Rasterizer
  • 2 = Reference RGBA Rasterizer
  • 3 = Alpha-Blend RGBA Rasterizer
  • 4 = CDTRasterizerAlphaTrueRGBA_V1_SC
  • 5 = CDTRasterizerAlphaXtraRGBA_V1_SC

D-Type Shading Rasterizer

  • 10 = CDTRasterizerAlphaTrueCREF_T1 0
  • 11 = CDTRasterizerAlphaTrueCREF_T1 1
  • 12 = CDTRasterizerAlphaTrueCREF_T1 2
  • 13 = CDTRasterizerAlphaTrueRGBA_Gouraud 1
  • 14 = CDTRasterizerAlphaTrueRGBA_Gouraud 2
  • 15 = CDTRasterizerAlphaEasyRGBA_Gouraud
  • 16 = CDTRasterizerAlphaTrueCREF_T1 3
  • 17 = CDTRasterizerAlphaTrueCREF_T1 4

D-Type Grayscale Rasterizer / D-Type B&W Rasterizer

  • 50 = Ultra-Fast Grayscale Rasterizer
  • 51 = Perfect Grayscale Rasterizer
  • 52 = Universal Rasterizer — Grayscale
  • 53 = Universal Rasterizer — Black & White
  • 54 = Extreme Grayscale Rasterizer

das

Handle of D-Type's Asynchronous System which supplies multiple worker threads for parallel rendering. Set to DV_NULL for synchronous rendering.

flags

Internal use. Must be set to 0.

Return Value

If the initialization was successful, the return value is true. Otherwise, the method returns false.


 

Index