MCPcopy Create free account
hub / github.com/Tencent/tgfx / LinearCode

Function LinearCode

src/pdf/PDFGradientShader.cpp:356–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void LinearCode(const GradientInfo& info, const Matrix& /*perspectiveRemover*/,
357 const std::shared_ptr<MemoryWriteStream>& function) {
358 function->writeText("{");
359
360 function->writeText("pop\n"); // Just ditch the y value.
361 TileModeCode(TileMode::Clamp, function);
362 GradientFunctionCode(info, function);
363 function->writeText("}");
364}
365
366void RadialCode(const GradientInfo& info, const Matrix& /*perspectiveRemover*/,
367 const std::shared_ptr<MemoryWriteStream>& function) {

Callers 1

MakeFunctionShaderFunction · 0.85

Calls 3

TileModeCodeFunction · 0.85
GradientFunctionCodeFunction · 0.85
writeTextMethod · 0.80

Tested by

no test coverage detected