struct::draw::drawing_attr_t

This data structure holds a real bitmap but the point and dimensions haven’t been mapped to the bitmap. The point p and dimension d are both in a universal coordinate system from 0 to draw::DrawingAttributes::scale(). For example if draw::DrawingAttributes::scale() is 1000 and p.x and p.y both are equal to 500, the top left corner of any item drawn using these attibutes will be in the center of the target bitmap (regardless of the target bitmap’s size).

sgfx::Bitmap * bitmap

A pointer to the target bitmap

drawing_point_t offset

An offset that applies a shift to any objects drawn on the bitmap

drawing_region_t region

The region on the bitmap where draw::Drawing will be drawn

sgfx::Bitmap * scratch

A pointer to the scratch bitmap used for animations (0 if not available)


X

Thanks for Coming!

Subscribe to news and updates