mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 02:58:44 +08:00
29 lines
738 B
C++
29 lines
738 B
C++
#include "atlas.h"
|
|
#include <spine/spine.h>
|
|
|
|
using namespace spine;
|
|
|
|
void spine_atlas_dispose(spine_atlas self) {
|
|
delete (Atlas *) self;
|
|
}
|
|
|
|
void spine_atlas_flip_v(spine_atlas self) {
|
|
Atlas *_self = (Atlas *) self;
|
|
_self->flipV();
|
|
}
|
|
|
|
/*@null*/ spine_atlas_region spine_atlas_find_region(spine_atlas self, const char *name) {
|
|
Atlas *_self = (Atlas *) self;
|
|
return (spine_atlas_region) _self->findRegion(String(name));
|
|
}
|
|
|
|
spine_array_atlas_page spine_atlas_get_pages(spine_atlas self) {
|
|
Atlas *_self = (Atlas *) self;
|
|
return (spine_array_atlas_page) &_self->getPages();
|
|
}
|
|
|
|
spine_array_atlas_region spine_atlas_get_regions(spine_atlas self) {
|
|
Atlas *_self = (Atlas *) self;
|
|
return (spine_array_atlas_region) &_self->getRegions();
|
|
}
|