#include <stdlib.h>
#include <string.h>
#include <spine/Skeleton.h>
#include <spine/RegionAttachment.h>
#include <spine/Animation.h>
#include <spine/Atlas.h>
#include <spine/AttachmentLoader.h>
Namespaces | |
spine | |
Constant Groups | |
spine | |
Macros | |
#define | MALLOC(TYPE, COUNT) ((TYPE*)_malloc(sizeof(TYPE) * COUNT)) |
#define | CALLOC(TYPE, COUNT) ((TYPE*)_calloc(1, sizeof(TYPE) * COUNT)) |
#define | NEW(TYPE) CALLOC(TYPE,1) |
#define | SUPER(VALUE) (&VALUE->super) |
#define | SUPER_CAST(TYPE, VALUE) ((TYPE*)VALUE) |
#define | SUB_CAST(TYPE, VALUE) ((TYPE*)VALUE) |
#define | CONST_CAST(TYPE, VALUE) (*(TYPE*)&VALUE) |
#define | VTABLE(TYPE, VALUE) ((_##TYPE##Vtable*)((TYPE*)VALUE)->vtable) |
#define | FREE(VALUE) _free((void*)VALUE) |
#define | MALLOC_STR(TO, FROM) strcpy(CONST_CAST(char*, TO) = (char*)malloc(strlen(FROM) + 1), FROM) |
Functions | |
void | (AtlasPage *self, const char *path) |
var | ( var self, var path) |
local | ( local self, local path) |
void | (AtlasPage *self) |
char * | (const char *path, int *length) |
void * | (size_t size) |
void * | (size_t num, size_t size) |
void | (void *ptr) |
void | (void *(*_malloc)(size_t size)) |
void | (void(*_free)(void *ptr)) |
char * | (const char *path, int *length) |
void | (AttachmentLoader *self, void(*dispose)(AttachmentLoader *self), Attachment *(*newAttachment)(AttachmentLoader *self, Skin *skin, AttachmentType type, const char *name)) |
void | (AttachmentLoader *self) |
local | ( local self) |
void | (AttachmentLoader *self, const char *error1, const char *error2) |
var | ( var self, var error1, var error2) |
local | ( local self, local error1, local error2) |
void | (AttachmentLoader *self, AttachmentType type) |
void | (Attachment *self, const char *name, AttachmentType type, void(*dispose)(Attachment *self)) |
void | (Attachment *self) |
void | (Timeline *self, void(*dispose)(Timeline *self), void(*apply)(const Timeline *self, Skeleton *skeleton, float time, float alpha)) |
void | (Timeline *self) |
void | (CurveTimeline *self, int frameCount, void(*dispose)(Timeline *self), void(*apply)(const Timeline *self, Skeleton *skeleton, float time, float alpha)) |
var | ( var self, var frameCount, var self, var skeleton, var time) |
local | ( local self, local frameCount, local self, local skeleton, local time) |
void | (CurveTimeline *self) |
#define CALLOC | ( | TYPE, | |
COUNT | |||
) | ((TYPE*)_calloc(1, sizeof(TYPE) * COUNT)) |
var CALLOC | ( | var, | |
var | |||
) | ((TYPE*)_calloc(1, sizeof(TYPE) * COUNT)) |
local CALLOC | ( | local, | |
local | |||
) | ((TYPE*)_calloc(1, sizeof(TYPE) * COUNT)) |
#define CONST_CAST | ( | TYPE, | |
VALUE | |||
) | (*(TYPE*)&VALUE) |
var CONST_CAST | ( | var, | |
var | |||
) | (*(TYPE*)&VALUE) |
local CONST_CAST | ( | local, | |
local | |||
) | (*(TYPE*)&VALUE) |
#define FREE | ( | VALUE) | _free((void*)VALUE) |
var FREE | ( | var) | _free((void*)VALUE) |
local FREE | ( | local) | _free((void*)VALUE) |
#define MALLOC | ( | TYPE, | |
COUNT | |||
) | ((TYPE*)_malloc(sizeof(TYPE) * COUNT)) |
var MALLOC | ( | var, | |
var | |||
) | ((TYPE*)_malloc(sizeof(TYPE) * COUNT)) |
local MALLOC | ( | local, | |
local | |||
) | ((TYPE*)_malloc(sizeof(TYPE) * COUNT)) |
#define MALLOC_STR | ( | TO, | |
FROM | |||
) | strcpy(CONST_CAST(char*, TO) = (char*)malloc(strlen(FROM) + 1), FROM) |
var MALLOC_STR | ( | var, | |
var | |||
) | strcpy(CONST_CAST(char*, TO) = (char*)malloc(strlen(FROM) + 1), FROM) |
local MALLOC_STR | ( | local, | |
local | |||
) | strcpy(CONST_CAST(char*, TO) = (char*)malloc(strlen(FROM) + 1), FROM) |
#define NEW | ( | TYPE) | CALLOC(TYPE,1) |
var NEW | ( | var) | CALLOC(TYPE,1) |
local NEW | ( | local) | CALLOC(TYPE,1) |
#define SUB_CAST | ( | TYPE, | |
VALUE | |||
) | ((TYPE*)VALUE) |
var SUB_CAST | ( | var, | |
var | |||
) | ((TYPE*)VALUE) |
local SUB_CAST | ( | local, | |
local | |||
) | ((TYPE*)VALUE) |
#define SUPER | ( | VALUE) | (&VALUE->super) |
var SUPER | ( | var) | (&VALUE->super) |
local SUPER | ( | local) | (&VALUE->super) |
#define SUPER_CAST | ( | TYPE, | |
VALUE | |||
) | ((TYPE*)VALUE) |
var SUPER_CAST | ( | var, | |
var | |||
) | ((TYPE*)VALUE) |
local SUPER_CAST | ( | local, | |
local | |||
) | ((TYPE*)VALUE) |
#define VTABLE | ( | TYPE, | |
VALUE | |||
) | ((_##TYPE##Vtable*)((TYPE*)VALUE)->vtable) |
var VTABLE | ( | var, | |
var | |||
) | ((_##TYPE##Vtable*)((TYPE*)VALUE)->vtable) |
local VTABLE | ( | local, | |
local | |||
) | ((_##TYPE##Vtable*)((TYPE*)VALUE)->vtable) |