class SkColorSpace; class SkMatrix; class SkVertices; struct SkISize; struct SkPoint;
class SkPatchUtils {
public: // Enums for control points based on the order specified in the constructor (clockwise). enum {
kNumCtrlPts = 12,
kNumCorners = 4,
kNumPtsCubic = 4
};
/** * Get the points corresponding to the top cubic of cubics.
*/ staticvoid GetTopCubic(const SkPoint cubics[12], SkPoint points[4]);
/** * Get the points corresponding to the bottom cubic of cubics.
*/ staticvoid GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
/** * Get the points corresponding to the left cubic of cubics.
*/ staticvoid GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
/** * Get the points corresponding to the right cubic of cubics.
*/ staticvoid GetRightCubic(const SkPoint cubics[12], SkPoint points[4]);
/** * Method that calculates a level of detail (number of subdivisions) for a patch in both axis.
*/ static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], int lodX, int lodY,
SkColorSpace* colorSpace = nullptr);
};
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.