ColorBlit

Color blitter struct

You set up the properties and pass the BlitFunc to the rasterizer.

auto cblit = AngularBlit(m_pixels,m_stride,m_height);
cblit.setColor(color);
m_rasterizer.rasterize(cblit.getBlitFunc);

Constructors

this
this(uint* pixels, int stride, int height)

Construct an color blitter. pixels - pointer to a 32 bpp pixel buffer stride - buffer width in pixels height - buffer heigth in pixels

Members

Functions

getBlitFunc
BlitFunc getBlitFunc(WindingRule rule)

returns a BlitFunc for use by the rasterizer

setColor
void setColor(uint color)

set the colour to blit

Meta