ImageDrawer
The ImageDrawer class is responsible for rendering 2D images and texture layers onto a drawing surface. It supports rendering images using vertex and instance attributes, enabling efficient handling of multiple render operations. The class utilizes vertex and instance buffers, shaders, and configurable parameters for rendering images within specific geometric regions.
The class integrates with the rendering system and operates on ColorBuffer
and ArrayTexture
data sources. It supports rendering multiple rectangles or single instances with dynamic resizing of instance attributes based on the number of render requests.
Functions
Draws an image using a supplied array texture, associated layer indices, and a list of source and target rectangles.
Draws an image from a ColorBuffer
onto a specified rectangular area on the canvas.
Draws an image from an ArrayTexture
onto a specified rectangular area on the canvas.