drawImage
Draws an image using a supplied array texture, associated layer indices, and a list of source and target rectangles.
This method utilizes the specified drawing context and style to render the image data from the array texture to specific locations and sizes defined by the target rectangles. It assumes a one-to-one mapping between layers and the source-target rectangles to properly process each layer.
Parameters
The drawing context containing matrices and parameters necessary for rendering.
The style specifications to apply during rendering, including shading and state settings.
The array texture containing the image data to be drawn.
A list of layer indices corresponding to the layers of the array texture to render.
A list of pairs of source rectangles (within the array texture) and target rectangles (on the canvas) used during rendering.
Draws an image from a ColorBuffer
onto a specified rectangular area on the canvas.
Parameters
The drawing context containing transformation matrices and rendering parameters.
The style settings to apply during rendering, such as shading and state configurations.
The ColorBuffer
that contains the image data to be drawn.
The x-coordinate of the top-left corner of the target rectangle on the canvas.
The y-coordinate of the top-left corner of the target rectangle on the canvas.
The width of the target rectangle where the image will be drawn.
The height of the target rectangle where the image will be drawn.
Draws an image from an ArrayTexture
onto a specified rectangular area on the canvas.
Parameters
The drawing context containing transformation matrices and rendering parameters.
The style settings to apply during rendering, such as shading and state configurations.
The array texture that contains the image data to be drawn.
The index of the layer in the array texture to render.
The x-coordinate of the top-left corner of the target rectangle on the canvas.
The y-coordinate of the top-left corner of the target rectangle on the canvas.
The width of the target rectangle where the image will be drawn.
The height of the target rectangle where the image will be drawn.