void _spRegionAttachment_dispose (spAttachment* attachment) { spRegionAttachment* self = SUB_CAST(spRegionAttachment, attachment); _spAttachment_deinit(attachment); FREE(self); }
void _spBoundingBoxAttachment_dispose (spAttachment* attachment) { spBoundingBoxAttachment* self = SUB_CAST(spBoundingBoxAttachment, attachment); _spAttachment_deinit(attachment); FREE(self->vertices); FREE(self); }
void _spMeshAttachment_dispose (spAttachment* attachment) { spMeshAttachment* self = SUB_CAST(spMeshAttachment, attachment); _spAttachment_deinit(attachment); FREE(self->path); FREE(self->vertices); FREE(self->regionUVs); FREE(self->uvs); FREE(self->triangles); FREE(self->edges); FREE(self); }
void _spSkinnedMeshAttachment_dispose (spAttachment* attachment) { spSkinnedMeshAttachment* self = SUB_CAST(spSkinnedMeshAttachment, attachment); _spAttachment_deinit(attachment); FREE(self->path); FREE(self->bones); FREE(self->weights); FREE(self->regionUVs); FREE(self->uvs); FREE(self->triangles); FREE(self->edges); FREE(self); }
void _spMeshAttachment_dispose (spAttachment* attachment) { spMeshAttachment* self = SUB_CAST(spMeshAttachment, attachment); FREE(self->path); FREE(self->uvs); if (!self->parentMesh) { _spVertexAttachment_deinit(SUPER(self)); FREE(self->regionUVs); FREE(self->triangles); FREE(self->edges); } else _spAttachment_deinit(attachment); FREE(self); }
void _spVertexAttachment_deinit (spVertexAttachment* attachment) { _spAttachment_deinit(SUPER(attachment)); FREE(attachment->bones); FREE(attachment->vertices); }