touchgfx::LCD::drawTextureMapTriangle() method
@fn void LCD::drawTextureMapTriangle(const DrawingSurface& dest, const Point3D* vertices, const TextureSurface& texture, const Rect& absoluteRect, const Rect& dirtyAreaAbsolute, RenderingVariant renderVariant, uint8_t alpha = 255, uint16_t subDivisionSize = 12); Texture map triangle. Draw a perspective correct texture mapped triangle. The vertices describes the surface, the x,y,z coordinates and the u,v coordinates of the texture. The texture contains the image data to be drawn The triangle line will be placed and clipped using the absolute and dirty rectangles The alpha will determine how the triangle should be alpha blended. The subDivisionSize will determine the size of the piecewise affine texture mapped portions of the triangle.
Arguments
dest
The description of where the texture is drawn - can be used to issue a draw off screen.
vertices
The vertices of the triangle.
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. Default = 255.
subDivisionSize
the size of the subdivisions of the scan line. Default = 12.