RegionAttachment* RegionAttachment_create (const char* name) { RegionAttachment* self = NEW(RegionAttachment); self->scaleX = 1; self->scaleY = 1; _Attachment_init(SUPER(self), name, ATTACHMENT_REGION, _Attachment_deinit); return self; }
void _RegionAttachment_init (RegionAttachment* self, const char* name) { self->scaleX = 1; self->scaleY = 1; _Attachment_init(&self->super, name, ATTACHMENT_REGION); }
BoundingBoxAttachment* BoundingBoxAttachment_create (const char* name) { BoundingBoxAttachment* self = NEW(BoundingBoxAttachment); _Attachment_init(SUPER(self), name, ATTACHMENT_BOUNDING_BOX, _Attachment_deinit); return self; }