touchgfx::LCD16bpp::drawTextureMapScanLine() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::LCD16bpp::drawTextureMapScanLine()

touchgfx::LCD16bpp::drawTextureMapScanLine() method

@fn virtual void LCD16bpp::drawTextureMapScanLine(const DrawingSurface& dest, const Gradients& gradients, const Edge* leftEdge, const Edge* rightEdge, const TextureSurface& texture, const Rect& absoluteRect, const Rect& dirtyAreaAbsolute, RenderingVariant renderVariant, uint8_t alpha, uint16_t subDivisionSize); Draw scan line. Draw one horizontal line of the texture map on screen. The scan line will be drawn using perspective correct texture mapping. The appearance of the line is determined by the left and right edge and the gradients structure. The edges contain the information about the x,y,z coordinates of the left and right side respectively and also information about the u,v coordinates of the texture map used. The gradients structure contains information about how to interpolate all the values across the scan line. The data drawn should be present in the texture argument. The scan line will be drawn using the additional arguments. The scan line will be placed and clipped using the absolute and dirty rectangles The alpha will determine how the scan line should be alpha blended. The subDivisionSize will determine the size of the piecewise affine texture mapped lines.

Syntax

virtual void drawTextureMapScanLine(const DrawingSurface& dest,     const Gradients& gradients,     const Edge* leftEdge,     const Edge* rightEdge,     const TextureSurface& texture,     const Rect& absoluteRect,     const Rect& dirtyAreaAbsolute,     RenderingVariant renderVariant,     uint8_t alpha,     uint16_t subDivisionSize);

Arguments

dest

The description of where the texture is drawn - can be used to issue a draw off screen.

gradients

The gradients using in interpolation across the scan line.

leftEdge

The left edge of the scan line.

rightEdge

The right edge of the scan line.

texture

The texture.

absoluteRect

The containing rectangle in absolute coordinates.

dirtyAreaAbsolute

The dirty area in absolute coordinates.

renderVariant

The render variant - includes the algorithm and the pixel format.

alpha

The alpha.

subDivisionSize

The size of the subdivisions of the scan line. A value of 1 will give a completely perspective correct texture mapped scan line. A large value will give an affine texture mapped scan line.

References

LocationText
LCD16bpp.hpp:193
virtual void drawTextureMapScanLine(const DrawingSurface& dest, const Gradients& gradients, const Edge* leftEdge, const Edge* rightEdge, const TextureSurface& texture, const Rect& absoluteRect, const Rect& dirtyAreaAbsolute, RenderingVariant renderVariant, uint8_t alpha, uint16_t subDivisionSize);

Override Tree

Methods overriding this one
touchgfx::LCD16bpp::drawTextureMapScanLine()