30int db_loadSkeleton(uintptr_t skeletonPtr,
int skeletonLen, uintptr_t atlasPtr,
int atlasLen);
46int db_fadeInAnimation(
int instanceId,
const char* name,
float fadeSeconds,
int playTimes);
50void db_setColor(
int instanceId,
float r,
float g,
float b,
float a);
63void db_getMeshBatchData(
int instanceId,
int batchIndex, uintptr_t outVerticesPtr, uintptr_t outIndicesPtr,
64 uintptr_t outTextureIdPtr, uintptr_t outBlendModePtr);
66void db_getBounds(
int instanceId, uintptr_t outXPtr, uintptr_t outYPtr, uintptr_t outWPtr, uintptr_t outHPtr);
void db_stopAnimation(int instanceId, const char *name)
int db_getBonePoses(int instanceId, uintptr_t outPtr, int capacity)
void db_update(int instanceId, float dt)
void db_setColor(int instanceId, float r, float g, float b, float a)
int db_runtimeVersion()
5 — the DragonBones data format this runtime reads, for the SDK's version gate.
const char * db_getArmatures(int handle)
["armatureA","armatureB"] — a DragonBones file names more than one.
void db_setTimeScale(int instanceId, float scale)
int db_getMeshBatchCount(int instanceId)
void db_unloadSkeleton(int handle)
int db_getMeshBatchVertexCount(int instanceId, int batchIndex)
const char * db_getAtlasImageName(int handle)
The image this file's atlas expects, so the caller knows what to upload.
int db_loadSkeleton(uintptr_t skeletonPtr, int skeletonLen, uintptr_t atlasPtr, int atlasLen)
const char * db_getBones(int instanceId)
int db_getMeshBatchIndexCount(int instanceId, int batchIndex)
int db_createInstance(int skeletonHandle, const char *armatureName)
const char * db_getAnimations(int instanceId)
void db_getMeshBatchData(int instanceId, int batchIndex, uintptr_t outVerticesPtr, uintptr_t outIndicesPtr, uintptr_t outTextureIdPtr, uintptr_t outBlendModePtr)
int db_playAnimation(int instanceId, const char *name, int playTimes)
playTimes: -1 keeps what the data says, 0 loops, n plays n times.
void db_destroyInstance(int instanceId)
void db_setAtlasTexture(int handle, uint32_t textureId)
void db_getBounds(int instanceId, uintptr_t outXPtr, uintptr_t outYPtr, uintptr_t outWPtr, uintptr_t outHPtr)
int db_fadeInAnimation(int instanceId, const char *name, float fadeSeconds, int playTimes)
Where Spine would set a mix duration: DragonBones fades at the moment of play.
const char * db_getLastError()