You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
734 B
26 lines
734 B
#ifndef __SPINE_ATLAS_ATTACHMENT_LOADER_EXT_H
|
|
#define __SPINE_ATLAS_ATTACHMENT_LOADER_EXT_H
|
|
|
|
#include "mesh-type-define.h"
|
|
#include "spine/spine.h"
|
|
|
|
class AttachmentVertices {
|
|
public:
|
|
AttachmentVertices(int verticesCount, uint16_t *triangles, int trianglesCount, uint32_t textureId);
|
|
virtual ~AttachmentVertices();
|
|
AttachmentVertices *copy();
|
|
Triangles *_triangles = nullptr;
|
|
uint32_t _textureId = 0;
|
|
};
|
|
|
|
class AtlasAttachmentLoaderExtension : public spine::AtlasAttachmentLoader {
|
|
public:
|
|
AtlasAttachmentLoaderExtension(spine::Atlas *atlas);
|
|
virtual ~AtlasAttachmentLoaderExtension();
|
|
virtual void configureAttachment(spine::Attachment *attachment);
|
|
|
|
private:
|
|
spine::Atlas *_atlasCache;
|
|
};
|
|
|
|
#endif |