Function tess2_sys::tessTesselate [] [src]

pub unsafe extern "C" fn tessTesselate(
    tess: *mut TESStesselator,
    windingRule: TessWindingRule,
    elementType: TessElementType,
    polySize: c_int,
    vertexSize: c_int,
    normal: *const TESSreal
) -> c_int

Tesselates stored paths

Arguments

  • windingRule - see OpenGL tesselation docs for more
  • elementType - specifies output type
  • polySize - maximum number of vertices per generated polygon
  • vertexSize - numer of coordinates per vertex, can be 2 or 3
  • normal - the normal of the input contours, if null the normal is calculated automatically.

First call to this function invalidates internal input buffers, so every call to tessAddContour after calling tessTesselate is not affected by previous data