diff --git a/spine-c/codegen/spine-cpp-types.json b/spine-c/codegen/spine-cpp-types.json index e512e9b88..b78e9f8eb 100644 --- a/spine-c/codegen/spine-cpp-types.json +++ b/spine-c/codegen/spine-cpp-types.json @@ -1884,7 +1884,7 @@ } ], "loc": { - "line": 41, + "line": 43, "col": 7 } }, @@ -1918,7 +1918,7 @@ } ], "loc": { - "line": 65, + "line": 67, "col": 7 } }, @@ -1937,7 +1937,7 @@ } ], "loc": { - "line": 77, + "line": 79, "col": 7 } }, @@ -1945,7 +1945,7 @@ "name": "AtlasPage", "kind": "class", "loc": { - "line": 83, + "line": 85, "col": 15 }, "superTypes": [ @@ -2043,13 +2043,23 @@ "name": "AtlasRegion", "kind": "class", "loc": { - "line": 109, + "line": 111, "col": 15 }, "superTypes": [ "TextureRegion" ], "members": [ + { + "kind": "method", + "name": "getRTTI", + "returnType": "const RTTI &", + "parameters": [], + "isStatic": false, + "isVirtual": true, + "isPure": false, + "isConst": false + }, { "kind": "constructor", "name": "AtlasRegion", @@ -2111,6 +2121,86 @@ "isPure": false, "isConst": false }, + { + "kind": "method", + "name": "getOffsetX", + "returnType": "float", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getOffsetY", + "returnType": "float", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getPackedWidth", + "returnType": "int", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getPackedHeight", + "returnType": "int", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getOriginalWidth", + "returnType": "int", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getOriginalHeight", + "returnType": "int", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getRotate", + "returnType": "bool", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "getDegrees", + "returnType": "int", + "parameters": [], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, { "kind": "method", "name": "getSplits", @@ -2226,6 +2316,126 @@ "isPure": false, "isConst": false }, + { + "kind": "method", + "name": "setOffsetX", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "float" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setOffsetY", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "float" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setPackedWidth", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "int" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setPackedHeight", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "int" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setOriginalWidth", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "int" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setOriginalHeight", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "int" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setRotate", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "bool" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, + { + "kind": "method", + "name": "setDegrees", + "returnType": "void", + "parameters": [ + { + "name": "value", + "type": "int" + } + ], + "isStatic": false, + "isVirtual": false, + "isPure": false, + "isConst": false + }, { "kind": "method", "name": "setSplits", @@ -2394,87 +2604,6 @@ "isConst": false, "fromSupertype": "TextureRegion" }, - { - "kind": "method", - "name": "getDegrees", - "returnType": "int", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "setDegrees", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "int" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "getOffsetX", - "returnType": "float", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "setOffsetX", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "float" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "getOffsetY", - "returnType": "float", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "setOffsetY", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "float" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, { "kind": "method", "name": "getRegionWidth", @@ -2528,60 +2657,6 @@ "isPure": false, "isConst": false, "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "getOriginalWidth", - "returnType": "int", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "setOriginalWidth", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "int" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "getOriginalHeight", - "returnType": "int", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" - }, - { - "kind": "method", - "name": "setOriginalHeight", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "int" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false, - "fromSupertype": "TextureRegion" } ], "isAbstract": false, @@ -2592,7 +2667,7 @@ "name": "Atlas", "kind": "class", "loc": { - "line": 146, + "line": 175, "col": 15 }, "superTypes": [ @@ -23512,7 +23587,7 @@ "name": "RegionAttachment", "kind": "class", "loc": { - "line": 48, + "line": 46, "col": 15 }, "superTypes": [ @@ -32584,13 +32659,23 @@ "name": "TextureRegion", "kind": "class", "loc": { - "line": 36, + "line": 37, "col": 15 }, "superTypes": [ "SpineObject" ], "members": [ + { + "kind": "method", + "name": "getRTTI", + "returnType": "const RTTI &", + "parameters": [], + "isStatic": false, + "isVirtual": true, + "isPure": false, + "isConst": false + }, { "kind": "constructor", "name": "TextureRegion", @@ -32702,81 +32787,6 @@ "isPure": false, "isConst": false }, - { - "kind": "method", - "name": "getDegrees", - "returnType": "int", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "setDegrees", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "int" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "getOffsetX", - "returnType": "float", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "setOffsetX", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "float" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "getOffsetY", - "returnType": "float", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "setOffsetY", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "float" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, { "kind": "method", "name": "getRegionWidth", @@ -32826,56 +32836,6 @@ "isVirtual": false, "isPure": false, "isConst": false - }, - { - "kind": "method", - "name": "getOriginalWidth", - "returnType": "int", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "setOriginalWidth", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "int" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "getOriginalHeight", - "returnType": "int", - "parameters": [], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false - }, - { - "kind": "method", - "name": "setOriginalHeight", - "returnType": "void", - "parameters": [ - { - "name": "value", - "type": "int" - } - ], - "isStatic": false, - "isVirtual": false, - "isPure": false, - "isConst": false } ], "isAbstract": false, diff --git a/spine-c/codegen/src/types.ts b/spine-c/codegen/src/types.ts index 385cfc977..e53269e9b 100644 --- a/spine-c/codegen/src/types.ts +++ b/spine-c/codegen/src/types.ts @@ -193,7 +193,7 @@ export function toCTypeName(cppType: string, knownTypeNames: Set): strin // Special type: String if (normalizedType === 'String' || normalizedType === 'const String' || normalizedType === 'String&' || normalizedType === 'const String&') { - return 'const char*'; + return 'const char *'; } // Special Type: PropertyId is a typedef @@ -232,9 +232,9 @@ export function toCTypeName(cppType: string, knownTypeNames: Set): strin if (pointerMatch) { const baseType = pointerMatch[1].trim(); - // Primitive pointers stay as-is + // Primitive pointers stay as-is, but ensure space before * if (isPrimitive(baseType)) { - return normalizedType; + return `${baseType} *`; } // Class pointers become opaque types @@ -250,7 +250,7 @@ export function toCTypeName(cppType: string, knownTypeNames: Set): strin // Non-const references to primitives become pointers (output parameters) if (!isConst && isPrimitive(baseType)) { - return `${baseType}*`; + return `${baseType} *`; } // Const references and class references - recurse without the reference diff --git a/spine-c/src/generated/animation.cpp b/spine-c/src/generated/animation.cpp index 798803096..2b662a422 100644 --- a/spine-c/src/generated/animation.cpp +++ b/spine-c/src/generated/animation.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_animation spine_animation_create(const char* name, spine_array_timeline timelines, float duration) { +spine_animation spine_animation_create(const char * name, spine_array_timeline timelines, float duration) { return (spine_animation) new (__FILE__, __LINE__) Animation(String(name), *((Array*)timelines), duration); } @@ -35,7 +35,7 @@ void spine_animation_apply(spine_animation self, spine_skeleton skeleton, float ((Animation*)self)->apply(*((Skeleton*)skeleton), lastTime, time, loop, (Array *)pEvents, alpha, (MixBlend)blend, (MixDirection)direction, appliedPose); } -const char* spine_animation_get_name(spine_animation self) { +const char * spine_animation_get_name(spine_animation self) { return ((Animation*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/animation.h b/spine-c/src/generated/animation.h index db01cf2cd..96eaf2e27 100644 --- a/spine-c/src/generated/animation.h +++ b/spine-c/src/generated/animation.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_animation spine_animation_create(const char* name, spine_array_timeline timelines, float duration); +SPINE_C_API spine_animation spine_animation_create(const char * name, spine_array_timeline timelines, float duration); SPINE_C_API void spine_animation_dispose(spine_animation self); @@ -18,7 +18,7 @@ SPINE_C_API bool spine_animation_has_timeline(spine_animation self, spine_array_ SPINE_C_API float spine_animation_get_duration(spine_animation self); SPINE_C_API void spine_animation_set_duration(spine_animation self, float inValue); SPINE_C_API void spine_animation_apply(spine_animation self, spine_skeleton skeleton, float lastTime, float time, bool loop, spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); -SPINE_C_API const char* spine_animation_get_name(spine_animation self); +SPINE_C_API const char * spine_animation_get_name(spine_animation self); SPINE_C_API spine_array_int spine_animation_get_bones(spine_animation self); SPINE_C_API int spine_animation_search_1(spine_array_float values, float target); SPINE_C_API int spine_animation_search_2(spine_array_float values, float target, int step); diff --git a/spine-c/src/generated/animation_state.cpp b/spine-c/src/generated/animation_state.cpp index e35b7082e..d3a998470 100644 --- a/spine-c/src/generated/animation_state.cpp +++ b/spine-c/src/generated/animation_state.cpp @@ -27,7 +27,7 @@ void spine_animation_state_clear_track(spine_animation_state self, size_t trackI ((AnimationState*)self)->clearTrack(trackIndex); } -spine_track_entry spine_animation_state_set_animation_1(spine_animation_state self, size_t trackIndex, const char* animationName, bool loop) { +spine_track_entry spine_animation_state_set_animation_1(spine_animation_state self, size_t trackIndex, const char * animationName, bool loop) { return (spine_track_entry)((AnimationState*)self)->setAnimation(trackIndex, String(animationName), loop); } @@ -35,7 +35,7 @@ spine_track_entry spine_animation_state_set_animation_2(spine_animation_state se return (spine_track_entry)((AnimationState*)self)->setAnimation(trackIndex, (Animation *)animation, loop); } -spine_track_entry spine_animation_state_add_animation_1(spine_animation_state self, size_t trackIndex, const char* animationName, bool loop, float delay) { +spine_track_entry spine_animation_state_add_animation_1(spine_animation_state self, size_t trackIndex, const char * animationName, bool loop, float delay) { return (spine_track_entry)((AnimationState*)self)->addAnimation(trackIndex, String(animationName), loop, delay); } diff --git a/spine-c/src/generated/animation_state.h b/spine-c/src/generated/animation_state.h index 70443705c..bf3db0ecb 100644 --- a/spine-c/src/generated/animation_state.h +++ b/spine-c/src/generated/animation_state.h @@ -16,9 +16,9 @@ SPINE_C_API void spine_animation_state_update(spine_animation_state self, float SPINE_C_API bool spine_animation_state_apply(spine_animation_state self, spine_skeleton skeleton); SPINE_C_API void spine_animation_state_clear_tracks(spine_animation_state self); SPINE_C_API void spine_animation_state_clear_track(spine_animation_state self, size_t trackIndex); -SPINE_C_API spine_track_entry spine_animation_state_set_animation_1(spine_animation_state self, size_t trackIndex, const char* animationName, bool loop); +SPINE_C_API spine_track_entry spine_animation_state_set_animation_1(spine_animation_state self, size_t trackIndex, const char * animationName, bool loop); SPINE_C_API spine_track_entry spine_animation_state_set_animation_2(spine_animation_state self, size_t trackIndex, spine_animation animation, bool loop); -SPINE_C_API spine_track_entry spine_animation_state_add_animation_1(spine_animation_state self, size_t trackIndex, const char* animationName, bool loop, float delay); +SPINE_C_API spine_track_entry spine_animation_state_add_animation_1(spine_animation_state self, size_t trackIndex, const char * animationName, bool loop, float delay); SPINE_C_API spine_track_entry spine_animation_state_add_animation_2(spine_animation_state self, size_t trackIndex, spine_animation animation, bool loop, float delay); SPINE_C_API spine_track_entry spine_animation_state_set_empty_animation(spine_animation_state self, size_t trackIndex, float mixDuration); SPINE_C_API spine_track_entry spine_animation_state_add_empty_animation(spine_animation_state self, size_t trackIndex, float mixDuration, float delay); diff --git a/spine-c/src/generated/animation_state_data.cpp b/spine-c/src/generated/animation_state_data.cpp index 2c16eebe0..6ba4e3d83 100644 --- a/spine-c/src/generated/animation_state_data.cpp +++ b/spine-c/src/generated/animation_state_data.cpp @@ -23,7 +23,7 @@ void spine_animation_state_data_set_default_mix(spine_animation_state_data self, ((AnimationStateData*)self)->setDefaultMix(inValue); } -void spine_animation_state_data_set_mix_1(spine_animation_state_data self, const char* fromName, const char* toName, float duration) { +void spine_animation_state_data_set_mix_1(spine_animation_state_data self, const char * fromName, const char * toName, float duration) { ((AnimationStateData*)self)->setMix(String(fromName), String(toName), duration); } diff --git a/spine-c/src/generated/animation_state_data.h b/spine-c/src/generated/animation_state_data.h index 1e55ceb58..73dde1a0c 100644 --- a/spine-c/src/generated/animation_state_data.h +++ b/spine-c/src/generated/animation_state_data.h @@ -15,7 +15,7 @@ SPINE_C_API void spine_animation_state_data_dispose(spine_animation_state_data s SPINE_C_API spine_skeleton_data spine_animation_state_data_get_skeleton_data(spine_animation_state_data self); SPINE_C_API float spine_animation_state_data_get_default_mix(spine_animation_state_data self); SPINE_C_API void spine_animation_state_data_set_default_mix(spine_animation_state_data self, float inValue); -SPINE_C_API void spine_animation_state_data_set_mix_1(spine_animation_state_data self, const char* fromName, const char* toName, float duration); +SPINE_C_API void spine_animation_state_data_set_mix_1(spine_animation_state_data self, const char * fromName, const char * toName, float duration); SPINE_C_API void spine_animation_state_data_set_mix_2(spine_animation_state_data self, spine_animation from, spine_animation to, float duration); SPINE_C_API float spine_animation_state_data_get_mix(spine_animation_state_data self, spine_animation from, spine_animation to); SPINE_C_API void spine_animation_state_data_clear(spine_animation_state_data self); diff --git a/spine-c/src/generated/atlas.cpp b/spine-c/src/generated/atlas.cpp index dc43a1170..d711e4395 100644 --- a/spine-c/src/generated/atlas.cpp +++ b/spine-c/src/generated/atlas.cpp @@ -11,7 +11,7 @@ void spine_atlas_flip_v(spine_atlas self) { ((Atlas*)self)->flipV(); } -spine_atlas_region spine_atlas_find_region(spine_atlas self, const char* name) { +spine_atlas_region spine_atlas_find_region(spine_atlas self, const char * name) { return (spine_atlas_region)((Atlas*)self)->findRegion(String(name)); } diff --git a/spine-c/src/generated/atlas.h b/spine-c/src/generated/atlas.h index 646220152..a9cd92375 100644 --- a/spine-c/src/generated/atlas.h +++ b/spine-c/src/generated/atlas.h @@ -11,7 +11,7 @@ extern "C" { SPINE_C_API void spine_atlas_dispose(spine_atlas self); SPINE_C_API void spine_atlas_flip_v(spine_atlas self); -SPINE_C_API spine_atlas_region spine_atlas_find_region(spine_atlas self, const char* name); +SPINE_C_API spine_atlas_region spine_atlas_find_region(spine_atlas self, const char * name); SPINE_C_API spine_array_atlas_page spine_atlas_get_pages(spine_atlas self); SPINE_C_API spine_array_atlas_region spine_atlas_get_regions(spine_atlas self); diff --git a/spine-c/src/generated/atlas_attachment_loader.cpp b/spine-c/src/generated/atlas_attachment_loader.cpp index f3ca81276..761a66aa4 100644 --- a/spine-c/src/generated/atlas_attachment_loader.cpp +++ b/spine-c/src/generated/atlas_attachment_loader.cpp @@ -11,30 +11,30 @@ void spine_atlas_attachment_loader_dispose(spine_atlas_attachment_loader self) { delete (AtlasAttachmentLoader*)self; } -spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence) { +spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence) { return (spine_region_attachment)((AtlasAttachmentLoader*)self)->newRegionAttachment(*((Skin*)skin), String(name), String(path), (Sequence *)sequence); } -spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence) { +spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence) { return (spine_mesh_attachment)((AtlasAttachmentLoader*)self)->newMeshAttachment(*((Skin*)skin), String(name), String(path), (Sequence *)sequence); } -spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name) { +spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name) { return (spine_bounding_box_attachment)((AtlasAttachmentLoader*)self)->newBoundingBoxAttachment(*((Skin*)skin), String(name)); } -spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name) { +spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name) { return (spine_path_attachment)((AtlasAttachmentLoader*)self)->newPathAttachment(*((Skin*)skin), String(name)); } -spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name) { +spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name) { return (spine_point_attachment)((AtlasAttachmentLoader*)self)->newPointAttachment(*((Skin*)skin), String(name)); } -spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name) { +spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name) { return (spine_clipping_attachment)((AtlasAttachmentLoader*)self)->newClippingAttachment(*((Skin*)skin), String(name)); } -spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char* name) { +spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char * name) { return (spine_atlas_region)((AtlasAttachmentLoader*)self)->findRegion(String(name)); } diff --git a/spine-c/src/generated/atlas_attachment_loader.h b/spine-c/src/generated/atlas_attachment_loader.h index 61a88a15c..7cc0bfb12 100644 --- a/spine-c/src/generated/atlas_attachment_loader.h +++ b/spine-c/src/generated/atlas_attachment_loader.h @@ -12,13 +12,13 @@ SPINE_C_API spine_atlas_attachment_loader spine_atlas_attachment_loader_create(s SPINE_C_API void spine_atlas_attachment_loader_dispose(spine_atlas_attachment_loader self); -SPINE_C_API spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence); -SPINE_C_API spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence); -SPINE_C_API spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char* name); +SPINE_C_API spine_region_attachment spine_atlas_attachment_loader_new_region_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence); +SPINE_C_API spine_mesh_attachment spine_atlas_attachment_loader_new_mesh_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence); +SPINE_C_API spine_bounding_box_attachment spine_atlas_attachment_loader_new_bounding_box_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_path_attachment spine_atlas_attachment_loader_new_path_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_point_attachment spine_atlas_attachment_loader_new_point_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_clipping_attachment spine_atlas_attachment_loader_new_clipping_attachment(spine_atlas_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_atlas_region spine_atlas_attachment_loader_find_region(spine_atlas_attachment_loader self, const char * name); #ifdef __cplusplus } diff --git a/spine-c/src/generated/atlas_page.cpp b/spine-c/src/generated/atlas_page.cpp index 934542aec..a70c59823 100644 --- a/spine-c/src/generated/atlas_page.cpp +++ b/spine-c/src/generated/atlas_page.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_atlas_page spine_atlas_page_create(const char* inName) { +spine_atlas_page spine_atlas_page_create(const char * inName) { return (spine_atlas_page) new (__FILE__, __LINE__) AtlasPage(String(inName)); } @@ -11,19 +11,19 @@ void spine_atlas_page_dispose(spine_atlas_page self) { delete (AtlasPage*)self; } -const char* spine_atlas_page_get_name(spine_atlas_page self) { +const char * spine_atlas_page_get_name(spine_atlas_page self) { return ((AtlasPage*)self)->name.buffer(); } -void spine_atlas_page_set_name(spine_atlas_page self, const char* value) { +void spine_atlas_page_set_name(spine_atlas_page self, const char * value) { ((AtlasPage*)self)->name = String(value); } -const char* spine_atlas_page_get_texture_path(spine_atlas_page self) { +const char * spine_atlas_page_get_texture_path(spine_atlas_page self) { return ((AtlasPage*)self)->texturePath.buffer(); } -void spine_atlas_page_set_texture_path(spine_atlas_page self, const char* value) { +void spine_atlas_page_set_texture_path(spine_atlas_page self, const char * value) { ((AtlasPage*)self)->texturePath = String(value); } diff --git a/spine-c/src/generated/atlas_page.h b/spine-c/src/generated/atlas_page.h index 74aa90019..083e7b776 100644 --- a/spine-c/src/generated/atlas_page.h +++ b/spine-c/src/generated/atlas_page.h @@ -8,14 +8,14 @@ extern "C" { #endif -SPINE_C_API spine_atlas_page spine_atlas_page_create(const char* inName); +SPINE_C_API spine_atlas_page spine_atlas_page_create(const char * inName); SPINE_C_API void spine_atlas_page_dispose(spine_atlas_page self); -SPINE_C_API const char* spine_atlas_page_get_name(spine_atlas_page self); -SPINE_C_API void spine_atlas_page_set_name(spine_atlas_page self, const char* value); -SPINE_C_API const char* spine_atlas_page_get_texture_path(spine_atlas_page self); -SPINE_C_API void spine_atlas_page_set_texture_path(spine_atlas_page self, const char* value); +SPINE_C_API const char * spine_atlas_page_get_name(spine_atlas_page self); +SPINE_C_API void spine_atlas_page_set_name(spine_atlas_page self, const char * value); +SPINE_C_API const char * spine_atlas_page_get_texture_path(spine_atlas_page self); +SPINE_C_API void spine_atlas_page_set_texture_path(spine_atlas_page self, const char * value); SPINE_C_API spine_format spine_atlas_page_get_format(spine_atlas_page self); SPINE_C_API void spine_atlas_page_set_format(spine_atlas_page self, spine_format value); SPINE_C_API spine_texture_filter spine_atlas_page_get_min_filter(spine_atlas_page self); diff --git a/spine-c/src/generated/atlas_region.cpp b/spine-c/src/generated/atlas_region.cpp index dc02afbe1..27bb98ed7 100644 --- a/spine-c/src/generated/atlas_region.cpp +++ b/spine-c/src/generated/atlas_region.cpp @@ -11,6 +11,10 @@ void spine_atlas_region_dispose(spine_atlas_region self) { delete (AtlasRegion*)self; } +spine_rtti spine_atlas_region_get_rtti(spine_atlas_region self) { + return (spine_rtti)&((AtlasRegion*)self)->getRTTI(); +} + spine_atlas_page spine_atlas_region_get_page(spine_atlas_region self) { return (spine_atlas_page)((AtlasRegion*)self)->getPage(); } @@ -27,6 +31,38 @@ int spine_atlas_region_get_y(spine_atlas_region self) { return ((AtlasRegion*)self)->getY(); } +float spine_atlas_region_get_offset_x(spine_atlas_region self) { + return ((AtlasRegion*)self)->getOffsetX(); +} + +float spine_atlas_region_get_offset_y(spine_atlas_region self) { + return ((AtlasRegion*)self)->getOffsetY(); +} + +int spine_atlas_region_get_packed_width(spine_atlas_region self) { + return ((AtlasRegion*)self)->getPackedWidth(); +} + +int spine_atlas_region_get_packed_height(spine_atlas_region self) { + return ((AtlasRegion*)self)->getPackedHeight(); +} + +int spine_atlas_region_get_original_width(spine_atlas_region self) { + return ((AtlasRegion*)self)->getOriginalWidth(); +} + +int spine_atlas_region_get_original_height(spine_atlas_region self) { + return ((AtlasRegion*)self)->getOriginalHeight(); +} + +bool spine_atlas_region_get_rotate(spine_atlas_region self) { + return ((AtlasRegion*)self)->getRotate(); +} + +int spine_atlas_region_get_degrees(spine_atlas_region self) { + return ((AtlasRegion*)self)->getDegrees(); +} + spine_array_int spine_atlas_region_get_splits(spine_atlas_region self) { return (spine_array_int)&((AtlasRegion*)self)->getSplits(); } @@ -43,7 +79,7 @@ void spine_atlas_region_set_page(spine_atlas_region self, spine_atlas_page value ((AtlasRegion*)self)->setPage((AtlasPage *)value); } -void spine_atlas_region_set_name(spine_atlas_region self, const char* value) { +void spine_atlas_region_set_name(spine_atlas_region self, const char * value) { ((AtlasRegion*)self)->setName(String(value)); } @@ -59,6 +95,38 @@ void spine_atlas_region_set_y(spine_atlas_region self, int value) { ((AtlasRegion*)self)->setY(value); } +void spine_atlas_region_set_offset_x(spine_atlas_region self, float value) { + ((AtlasRegion*)self)->setOffsetX(value); +} + +void spine_atlas_region_set_offset_y(spine_atlas_region self, float value) { + ((AtlasRegion*)self)->setOffsetY(value); +} + +void spine_atlas_region_set_packed_width(spine_atlas_region self, int value) { + ((AtlasRegion*)self)->setPackedWidth(value); +} + +void spine_atlas_region_set_packed_height(spine_atlas_region self, int value) { + ((AtlasRegion*)self)->setPackedHeight(value); +} + +void spine_atlas_region_set_original_width(spine_atlas_region self, int value) { + ((AtlasRegion*)self)->setOriginalWidth(value); +} + +void spine_atlas_region_set_original_height(spine_atlas_region self, int value) { + ((AtlasRegion*)self)->setOriginalHeight(value); +} + +void spine_atlas_region_set_rotate(spine_atlas_region self, bool value) { + ((AtlasRegion*)self)->setRotate(value); +} + +void spine_atlas_region_set_degrees(spine_atlas_region self, int value) { + ((AtlasRegion*)self)->setDegrees(value); +} + void spine_atlas_region_set_splits(spine_atlas_region self, spine_array_int value) { ((AtlasRegion*)self)->setSplits(*((const Array*)value)); } @@ -103,30 +171,6 @@ void spine_atlas_region_set_v2(spine_atlas_region self, float value) { ((TextureRegion*)(AtlasRegion*)self)->setV2(value); } -int spine_atlas_region_get_degrees(spine_atlas_region self) { - return ((TextureRegion*)(AtlasRegion*)self)->getDegrees(); -} - -void spine_atlas_region_set_degrees(spine_atlas_region self, int value) { - ((TextureRegion*)(AtlasRegion*)self)->setDegrees(value); -} - -float spine_atlas_region_get_offset_x(spine_atlas_region self) { - return ((TextureRegion*)(AtlasRegion*)self)->getOffsetX(); -} - -void spine_atlas_region_set_offset_x(spine_atlas_region self, float value) { - ((TextureRegion*)(AtlasRegion*)self)->setOffsetX(value); -} - -float spine_atlas_region_get_offset_y(spine_atlas_region self) { - return ((TextureRegion*)(AtlasRegion*)self)->getOffsetY(); -} - -void spine_atlas_region_set_offset_y(spine_atlas_region self, float value) { - ((TextureRegion*)(AtlasRegion*)self)->setOffsetY(value); -} - int spine_atlas_region_get_region_width(spine_atlas_region self) { return ((TextureRegion*)(AtlasRegion*)self)->getRegionWidth(); } @@ -143,18 +187,6 @@ void spine_atlas_region_set_region_height(spine_atlas_region self, int value) { ((TextureRegion*)(AtlasRegion*)self)->setRegionHeight(value); } -int spine_atlas_region_get_original_width(spine_atlas_region self) { - return ((TextureRegion*)(AtlasRegion*)self)->getOriginalWidth(); -} - -void spine_atlas_region_set_original_width(spine_atlas_region self, int value) { - ((TextureRegion*)(AtlasRegion*)self)->setOriginalWidth(value); -} - -int spine_atlas_region_get_original_height(spine_atlas_region self) { - return ((TextureRegion*)(AtlasRegion*)self)->getOriginalHeight(); -} - -void spine_atlas_region_set_original_height(spine_atlas_region self, int value) { - ((TextureRegion*)(AtlasRegion*)self)->setOriginalHeight(value); +spine_rtti spine_atlas_region_rtti(void) { + return (spine_rtti)&AtlasRegion::rtti; } diff --git a/spine-c/src/generated/atlas_region.h b/spine-c/src/generated/atlas_region.h index 5a2407bf3..c649601b4 100644 --- a/spine-c/src/generated/atlas_region.h +++ b/spine-c/src/generated/atlas_region.h @@ -12,18 +12,35 @@ SPINE_C_API spine_atlas_region spine_atlas_region_create(void); SPINE_C_API void spine_atlas_region_dispose(spine_atlas_region self); +SPINE_C_API spine_rtti spine_atlas_region_get_rtti(spine_atlas_region self); SPINE_C_API spine_atlas_page spine_atlas_region_get_page(spine_atlas_region self); SPINE_C_API int spine_atlas_region_get_index(spine_atlas_region self); SPINE_C_API int spine_atlas_region_get_x(spine_atlas_region self); SPINE_C_API int spine_atlas_region_get_y(spine_atlas_region self); +SPINE_C_API float spine_atlas_region_get_offset_x(spine_atlas_region self); +SPINE_C_API float spine_atlas_region_get_offset_y(spine_atlas_region self); +SPINE_C_API int spine_atlas_region_get_packed_width(spine_atlas_region self); +SPINE_C_API int spine_atlas_region_get_packed_height(spine_atlas_region self); +SPINE_C_API int spine_atlas_region_get_original_width(spine_atlas_region self); +SPINE_C_API int spine_atlas_region_get_original_height(spine_atlas_region self); +SPINE_C_API bool spine_atlas_region_get_rotate(spine_atlas_region self); +SPINE_C_API int spine_atlas_region_get_degrees(spine_atlas_region self); SPINE_C_API spine_array_int spine_atlas_region_get_splits(spine_atlas_region self); SPINE_C_API spine_array_int spine_atlas_region_get_pads(spine_atlas_region self); SPINE_C_API spine_array_float spine_atlas_region_get_values(spine_atlas_region self); SPINE_C_API void spine_atlas_region_set_page(spine_atlas_region self, spine_atlas_page value); -SPINE_C_API void spine_atlas_region_set_name(spine_atlas_region self, const char* value); +SPINE_C_API void spine_atlas_region_set_name(spine_atlas_region self, const char * value); SPINE_C_API void spine_atlas_region_set_index(spine_atlas_region self, int value); SPINE_C_API void spine_atlas_region_set_x(spine_atlas_region self, int value); SPINE_C_API void spine_atlas_region_set_y(spine_atlas_region self, int value); +SPINE_C_API void spine_atlas_region_set_offset_x(spine_atlas_region self, float value); +SPINE_C_API void spine_atlas_region_set_offset_y(spine_atlas_region self, float value); +SPINE_C_API void spine_atlas_region_set_packed_width(spine_atlas_region self, int value); +SPINE_C_API void spine_atlas_region_set_packed_height(spine_atlas_region self, int value); +SPINE_C_API void spine_atlas_region_set_original_width(spine_atlas_region self, int value); +SPINE_C_API void spine_atlas_region_set_original_height(spine_atlas_region self, int value); +SPINE_C_API void spine_atlas_region_set_rotate(spine_atlas_region self, bool value); +SPINE_C_API void spine_atlas_region_set_degrees(spine_atlas_region self, int value); SPINE_C_API void spine_atlas_region_set_splits(spine_atlas_region self, spine_array_int value); SPINE_C_API void spine_atlas_region_set_pads(spine_atlas_region self, spine_array_int value); SPINE_C_API void spine_atlas_region_set_values(spine_atlas_region self, spine_array_float value); @@ -35,20 +52,11 @@ SPINE_C_API float spine_atlas_region_get_u2(spine_atlas_region self); SPINE_C_API void spine_atlas_region_set_u2(spine_atlas_region self, float value); SPINE_C_API float spine_atlas_region_get_v2(spine_atlas_region self); SPINE_C_API void spine_atlas_region_set_v2(spine_atlas_region self, float value); -SPINE_C_API int spine_atlas_region_get_degrees(spine_atlas_region self); -SPINE_C_API void spine_atlas_region_set_degrees(spine_atlas_region self, int value); -SPINE_C_API float spine_atlas_region_get_offset_x(spine_atlas_region self); -SPINE_C_API void spine_atlas_region_set_offset_x(spine_atlas_region self, float value); -SPINE_C_API float spine_atlas_region_get_offset_y(spine_atlas_region self); -SPINE_C_API void spine_atlas_region_set_offset_y(spine_atlas_region self, float value); SPINE_C_API int spine_atlas_region_get_region_width(spine_atlas_region self); SPINE_C_API void spine_atlas_region_set_region_width(spine_atlas_region self, int value); SPINE_C_API int spine_atlas_region_get_region_height(spine_atlas_region self); SPINE_C_API void spine_atlas_region_set_region_height(spine_atlas_region self, int value); -SPINE_C_API int spine_atlas_region_get_original_width(spine_atlas_region self); -SPINE_C_API void spine_atlas_region_set_original_width(spine_atlas_region self, int value); -SPINE_C_API int spine_atlas_region_get_original_height(spine_atlas_region self); -SPINE_C_API void spine_atlas_region_set_original_height(spine_atlas_region self, int value); +SPINE_C_API spine_rtti spine_atlas_region_rtti(void); #ifdef __cplusplus } diff --git a/spine-c/src/generated/attachment.cpp b/spine-c/src/generated/attachment.cpp index d8dc82f03..c417ad40d 100644 --- a/spine-c/src/generated/attachment.cpp +++ b/spine-c/src/generated/attachment.cpp @@ -11,7 +11,7 @@ spine_rtti spine_attachment_get_rtti(spine_attachment self) { return (spine_rtti)&((Attachment*)self)->getRTTI(); } -const char* spine_attachment_get_name(spine_attachment self) { +const char * spine_attachment_get_name(spine_attachment self) { return ((Attachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/attachment.h b/spine-c/src/generated/attachment.h index 1b45e3139..dba12195c 100644 --- a/spine-c/src/generated/attachment.h +++ b/spine-c/src/generated/attachment.h @@ -11,7 +11,7 @@ extern "C" { SPINE_C_API void spine_attachment_dispose(spine_attachment self); SPINE_C_API spine_rtti spine_attachment_get_rtti(spine_attachment self); -SPINE_C_API const char* spine_attachment_get_name(spine_attachment self); +SPINE_C_API const char * spine_attachment_get_name(spine_attachment self); SPINE_C_API spine_attachment spine_attachment_copy(spine_attachment self); SPINE_C_API int spine_attachment_get_ref_count(spine_attachment self); SPINE_C_API void spine_attachment_reference(spine_attachment self); diff --git a/spine-c/src/generated/attachment_loader.cpp b/spine-c/src/generated/attachment_loader.cpp index ec9c40f65..d3c636ef9 100644 --- a/spine-c/src/generated/attachment_loader.cpp +++ b/spine-c/src/generated/attachment_loader.cpp @@ -7,26 +7,26 @@ void spine_attachment_loader_dispose(spine_attachment_loader self) { delete (AttachmentLoader*)self; } -spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence) { +spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence) { return (spine_region_attachment)((AttachmentLoader*)self)->newRegionAttachment(*((Skin*)skin), String(name), String(path), (Sequence *)sequence); } -spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence) { +spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence) { return (spine_mesh_attachment)((AttachmentLoader*)self)->newMeshAttachment(*((Skin*)skin), String(name), String(path), (Sequence *)sequence); } -spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, const char* name) { +spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, const char * name) { return (spine_bounding_box_attachment)((AttachmentLoader*)self)->newBoundingBoxAttachment(*((Skin*)skin), String(name)); } -spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char* name) { +spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char * name) { return (spine_path_attachment)((AttachmentLoader*)self)->newPathAttachment(*((Skin*)skin), String(name)); } -spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char* name) { +spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char * name) { return (spine_point_attachment)((AttachmentLoader*)self)->newPointAttachment(*((Skin*)skin), String(name)); } -spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, const char* name) { +spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, const char * name) { return (spine_clipping_attachment)((AttachmentLoader*)self)->newClippingAttachment(*((Skin*)skin), String(name)); } diff --git a/spine-c/src/generated/attachment_loader.h b/spine-c/src/generated/attachment_loader.h index f656d8839..7b052dd94 100644 --- a/spine-c/src/generated/attachment_loader.h +++ b/spine-c/src/generated/attachment_loader.h @@ -10,12 +10,12 @@ extern "C" { SPINE_C_API void spine_attachment_loader_dispose(spine_attachment_loader self); -SPINE_C_API spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence); -SPINE_C_API spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char* name, const char* path, spine_sequence sequence); -SPINE_C_API spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char* name); -SPINE_C_API spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, const char* name); +SPINE_C_API spine_region_attachment spine_attachment_loader_new_region_attachment(spine_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence); +SPINE_C_API spine_mesh_attachment spine_attachment_loader_new_mesh_attachment(spine_attachment_loader self, spine_skin skin, const char * name, const char * path, spine_sequence sequence); +SPINE_C_API spine_bounding_box_attachment spine_attachment_loader_new_bounding_box_attachment(spine_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_path_attachment spine_attachment_loader_new_path_attachment(spine_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_point_attachment spine_attachment_loader_new_point_attachment(spine_attachment_loader self, spine_skin skin, const char * name); +SPINE_C_API spine_clipping_attachment spine_attachment_loader_new_clipping_attachment(spine_attachment_loader self, spine_skin skin, const char * name); #ifdef __cplusplus } diff --git a/spine-c/src/generated/attachment_timeline.cpp b/spine-c/src/generated/attachment_timeline.cpp index 5f805a0dd..cda6ae7ce 100644 --- a/spine-c/src/generated/attachment_timeline.cpp +++ b/spine-c/src/generated/attachment_timeline.cpp @@ -19,7 +19,7 @@ void spine_attachment_timeline_apply(spine_attachment_timeline self, spine_skele ((AttachmentTimeline*)self)->apply(*((Skeleton*)skeleton), lastTime, time, (Array *)pEvents, alpha, (MixBlend)blend, (MixDirection)direction, appliedPose); } -void spine_attachment_timeline_set_frame(spine_attachment_timeline self, int frame, float time, const char* attachmentName) { +void spine_attachment_timeline_set_frame(spine_attachment_timeline self, int frame, float time, const char * attachmentName) { ((AttachmentTimeline*)self)->setFrame(frame, time, String(attachmentName)); } diff --git a/spine-c/src/generated/attachment_timeline.h b/spine-c/src/generated/attachment_timeline.h index fb9127913..18238dc7b 100644 --- a/spine-c/src/generated/attachment_timeline.h +++ b/spine-c/src/generated/attachment_timeline.h @@ -14,7 +14,7 @@ SPINE_C_API void spine_attachment_timeline_dispose(spine_attachment_timeline sel SPINE_C_API spine_rtti spine_attachment_timeline_get_rtti(spine_attachment_timeline self); SPINE_C_API void spine_attachment_timeline_apply(spine_attachment_timeline self, spine_skeleton skeleton, float lastTime, float time, spine_array_event pEvents, float alpha, spine_mix_blend blend, spine_mix_direction direction, bool appliedPose); -SPINE_C_API void spine_attachment_timeline_set_frame(spine_attachment_timeline self, int frame, float time, const char* attachmentName); +SPINE_C_API void spine_attachment_timeline_set_frame(spine_attachment_timeline self, int frame, float time, const char * attachmentName); SPINE_C_API size_t spine_attachment_timeline_get_frame_entries(spine_attachment_timeline self); SPINE_C_API size_t spine_attachment_timeline_get_frame_count(spine_attachment_timeline self); SPINE_C_API spine_array_float spine_attachment_timeline_get_frames(spine_attachment_timeline self); diff --git a/spine-c/src/generated/bone_data.cpp b/spine-c/src/generated/bone_data.cpp index db8242992..d4f985769 100644 --- a/spine-c/src/generated/bone_data.cpp +++ b/spine-c/src/generated/bone_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_bone_data spine_bone_data_create(int index, const char* name, spine_bone_data parent) { +spine_bone_data spine_bone_data_create(int index, const char * name, spine_bone_data parent) { return (spine_bone_data) new (__FILE__, __LINE__) BoneData(index, String(name), (BoneData *)parent); } @@ -31,11 +31,11 @@ spine_color spine_bone_data_get_color(spine_bone_data self) { return (spine_color)&((BoneData*)self)->getColor(); } -const char* spine_bone_data_get_icon(spine_bone_data self) { +const char * spine_bone_data_get_icon(spine_bone_data self) { return ((BoneData*)self)->getIcon().buffer(); } -void spine_bone_data_set_icon(spine_bone_data self, const char* icon) { +void spine_bone_data_set_icon(spine_bone_data self, const char * icon) { ((BoneData*)self)->setIcon(String(icon)); } @@ -51,7 +51,7 @@ spine_bone_local spine_bone_data_get_setup_pose(spine_bone_data self) { return (spine_bone_local)&((PosedDataGeneric*)(BoneData*)self)->getSetupPose(); } -const char* spine_bone_data_get_name(spine_bone_data self) { +const char * spine_bone_data_get_name(spine_bone_data self) { return ((PosedDataGeneric*)(BoneData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/bone_data.h b/spine-c/src/generated/bone_data.h index c6a7b9191..9120561c8 100644 --- a/spine-c/src/generated/bone_data.h +++ b/spine-c/src/generated/bone_data.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_bone_data spine_bone_data_create(int index, const char* name, spine_bone_data parent); +SPINE_C_API spine_bone_data spine_bone_data_create(int index, const char * name, spine_bone_data parent); SPINE_C_API void spine_bone_data_dispose(spine_bone_data self); @@ -17,12 +17,12 @@ SPINE_C_API spine_bone_data spine_bone_data_get_parent(spine_bone_data self); SPINE_C_API float spine_bone_data_get_length(spine_bone_data self); SPINE_C_API void spine_bone_data_set_length(spine_bone_data self, float inValue); SPINE_C_API spine_color spine_bone_data_get_color(spine_bone_data self); -SPINE_C_API const char* spine_bone_data_get_icon(spine_bone_data self); -SPINE_C_API void spine_bone_data_set_icon(spine_bone_data self, const char* icon); +SPINE_C_API const char * spine_bone_data_get_icon(spine_bone_data self); +SPINE_C_API void spine_bone_data_set_icon(spine_bone_data self, const char * icon); SPINE_C_API bool spine_bone_data_get_visible(spine_bone_data self); SPINE_C_API void spine_bone_data_set_visible(spine_bone_data self, bool inValue); SPINE_C_API spine_bone_local spine_bone_data_get_setup_pose(spine_bone_data self); -SPINE_C_API const char* spine_bone_data_get_name(spine_bone_data self); +SPINE_C_API const char * spine_bone_data_get_name(spine_bone_data self); SPINE_C_API bool spine_bone_data_get_skin_required(spine_bone_data self); SPINE_C_API void spine_bone_data_set_skin_required(spine_bone_data self, bool skinRequired); diff --git a/spine-c/src/generated/bone_pose.cpp b/spine-c/src/generated/bone_pose.cpp index ee5308b17..e828ad8ea 100644 --- a/spine-c/src/generated/bone_pose.cpp +++ b/spine-c/src/generated/bone_pose.cpp @@ -103,19 +103,19 @@ float spine_bone_pose_get_world_scale_y(spine_bone_pose self) { return ((BonePose*)self)->getWorldScaleY(); } -void spine_bone_pose_world_to_local(spine_bone_pose self, float worldX, float worldY, float* outLocalX, float* outLocalY) { +void spine_bone_pose_world_to_local(spine_bone_pose self, float worldX, float worldY, float * outLocalX, float * outLocalY) { ((BonePose*)self)->worldToLocal(worldX, worldY, *outLocalX, *outLocalY); } -void spine_bone_pose_local_to_world(spine_bone_pose self, float localX, float localY, float* outWorldX, float* outWorldY) { +void spine_bone_pose_local_to_world(spine_bone_pose self, float localX, float localY, float * outWorldX, float * outWorldY) { ((BonePose*)self)->localToWorld(localX, localY, *outWorldX, *outWorldY); } -void spine_bone_pose_world_to_parent(spine_bone_pose self, float worldX, float worldY, float* outParentX, float* outParentY) { +void spine_bone_pose_world_to_parent(spine_bone_pose self, float worldX, float worldY, float * outParentX, float * outParentY) { ((BonePose*)self)->worldToParent(worldX, worldY, *outParentX, *outParentY); } -void spine_bone_pose_parent_to_world(spine_bone_pose self, float parentX, float parentY, float* outWorldX, float* outWorldY) { +void spine_bone_pose_parent_to_world(spine_bone_pose self, float parentX, float parentY, float * outWorldX, float * outWorldY) { ((BonePose*)self)->parentToWorld(parentX, parentY, *outWorldX, *outWorldY); } diff --git a/spine-c/src/generated/bone_pose.h b/spine-c/src/generated/bone_pose.h index 871d88728..833fb6a41 100644 --- a/spine-c/src/generated/bone_pose.h +++ b/spine-c/src/generated/bone_pose.h @@ -35,10 +35,10 @@ SPINE_C_API float spine_bone_pose_get_world_rotation_x(spine_bone_pose self); SPINE_C_API float spine_bone_pose_get_world_rotation_y(spine_bone_pose self); SPINE_C_API float spine_bone_pose_get_world_scale_x(spine_bone_pose self); SPINE_C_API float spine_bone_pose_get_world_scale_y(spine_bone_pose self); -SPINE_C_API void spine_bone_pose_world_to_local(spine_bone_pose self, float worldX, float worldY, float* outLocalX, float* outLocalY); -SPINE_C_API void spine_bone_pose_local_to_world(spine_bone_pose self, float localX, float localY, float* outWorldX, float* outWorldY); -SPINE_C_API void spine_bone_pose_world_to_parent(spine_bone_pose self, float worldX, float worldY, float* outParentX, float* outParentY); -SPINE_C_API void spine_bone_pose_parent_to_world(spine_bone_pose self, float parentX, float parentY, float* outWorldX, float* outWorldY); +SPINE_C_API void spine_bone_pose_world_to_local(spine_bone_pose self, float worldX, float worldY, float * outLocalX, float * outLocalY); +SPINE_C_API void spine_bone_pose_local_to_world(spine_bone_pose self, float localX, float localY, float * outWorldX, float * outWorldY); +SPINE_C_API void spine_bone_pose_world_to_parent(spine_bone_pose self, float worldX, float worldY, float * outParentX, float * outParentY); +SPINE_C_API void spine_bone_pose_parent_to_world(spine_bone_pose self, float parentX, float parentY, float * outWorldX, float * outWorldY); SPINE_C_API float spine_bone_pose_world_to_local_rotation(spine_bone_pose self, float worldRotation); SPINE_C_API float spine_bone_pose_local_to_world_rotation(spine_bone_pose self, float localRotation); SPINE_C_API void spine_bone_pose_rotate_world(spine_bone_pose self, float degrees); diff --git a/spine-c/src/generated/bounding_box_attachment.cpp b/spine-c/src/generated/bounding_box_attachment.cpp index a8141ad2a..da314c9f1 100644 --- a/spine-c/src/generated/bounding_box_attachment.cpp +++ b/spine-c/src/generated/bounding_box_attachment.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_bounding_box_attachment spine_bounding_box_attachment_create(const char* name) { +spine_bounding_box_attachment spine_bounding_box_attachment_create(const char * name) { return (spine_bounding_box_attachment) new (__FILE__, __LINE__) BoundingBoxAttachment(String(name)); } @@ -71,7 +71,7 @@ void spine_bounding_box_attachment_copy_to(spine_bounding_box_attachment self, s ((VertexAttachment*)(BoundingBoxAttachment*)self)->copyTo((VertexAttachment *)other); } -const char* spine_bounding_box_attachment_get_name(spine_bounding_box_attachment self) { +const char * spine_bounding_box_attachment_get_name(spine_bounding_box_attachment self) { return ((VertexAttachment*)(BoundingBoxAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/bounding_box_attachment.h b/spine-c/src/generated/bounding_box_attachment.h index 3d10b7a45..89944d87a 100644 --- a/spine-c/src/generated/bounding_box_attachment.h +++ b/spine-c/src/generated/bounding_box_attachment.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_bounding_box_attachment spine_bounding_box_attachment_create(const char* name); +SPINE_C_API spine_bounding_box_attachment spine_bounding_box_attachment_create(const char * name); SPINE_C_API void spine_bounding_box_attachment_dispose(spine_bounding_box_attachment self); @@ -27,7 +27,7 @@ SPINE_C_API void spine_bounding_box_attachment_set_world_vertices_length(spine_b SPINE_C_API spine_attachment spine_bounding_box_attachment_get_timeline_attachment(spine_bounding_box_attachment self); SPINE_C_API void spine_bounding_box_attachment_set_timeline_attachment(spine_bounding_box_attachment self, spine_attachment attachment); SPINE_C_API void spine_bounding_box_attachment_copy_to(spine_bounding_box_attachment self, spine_vertex_attachment other); -SPINE_C_API const char* spine_bounding_box_attachment_get_name(spine_bounding_box_attachment self); +SPINE_C_API const char * spine_bounding_box_attachment_get_name(spine_bounding_box_attachment self); SPINE_C_API int spine_bounding_box_attachment_get_ref_count(spine_bounding_box_attachment self); SPINE_C_API void spine_bounding_box_attachment_reference(spine_bounding_box_attachment self); SPINE_C_API void spine_bounding_box_attachment_dereference(spine_bounding_box_attachment self); diff --git a/spine-c/src/generated/clipping_attachment.cpp b/spine-c/src/generated/clipping_attachment.cpp index d2a0cd161..762bf71a6 100644 --- a/spine-c/src/generated/clipping_attachment.cpp +++ b/spine-c/src/generated/clipping_attachment.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_clipping_attachment spine_clipping_attachment_create(const char* name) { +spine_clipping_attachment spine_clipping_attachment_create(const char * name) { return (spine_clipping_attachment) new (__FILE__, __LINE__) ClippingAttachment(String(name)); } @@ -79,7 +79,7 @@ void spine_clipping_attachment_copy_to(spine_clipping_attachment self, spine_ver ((VertexAttachment*)(ClippingAttachment*)self)->copyTo((VertexAttachment *)other); } -const char* spine_clipping_attachment_get_name(spine_clipping_attachment self) { +const char * spine_clipping_attachment_get_name(spine_clipping_attachment self) { return ((VertexAttachment*)(ClippingAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/clipping_attachment.h b/spine-c/src/generated/clipping_attachment.h index a6e903fd7..bf618e69e 100644 --- a/spine-c/src/generated/clipping_attachment.h +++ b/spine-c/src/generated/clipping_attachment.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_clipping_attachment spine_clipping_attachment_create(const char* name); +SPINE_C_API spine_clipping_attachment spine_clipping_attachment_create(const char * name); SPINE_C_API void spine_clipping_attachment_dispose(spine_clipping_attachment self); @@ -29,7 +29,7 @@ SPINE_C_API void spine_clipping_attachment_set_world_vertices_length(spine_clipp SPINE_C_API spine_attachment spine_clipping_attachment_get_timeline_attachment(spine_clipping_attachment self); SPINE_C_API void spine_clipping_attachment_set_timeline_attachment(spine_clipping_attachment self, spine_attachment attachment); SPINE_C_API void spine_clipping_attachment_copy_to(spine_clipping_attachment self, spine_vertex_attachment other); -SPINE_C_API const char* spine_clipping_attachment_get_name(spine_clipping_attachment self); +SPINE_C_API const char * spine_clipping_attachment_get_name(spine_clipping_attachment self); SPINE_C_API int spine_clipping_attachment_get_ref_count(spine_clipping_attachment self); SPINE_C_API void spine_clipping_attachment_reference(spine_clipping_attachment self); SPINE_C_API void spine_clipping_attachment_dereference(spine_clipping_attachment self); diff --git a/spine-c/src/generated/constraint_data.cpp b/spine-c/src/generated/constraint_data.cpp index 10d9284c7..9d5dd56a0 100644 --- a/spine-c/src/generated/constraint_data.cpp +++ b/spine-c/src/generated/constraint_data.cpp @@ -15,7 +15,7 @@ spine_constraint spine_constraint_data_create_method(spine_constraint_data self, return (spine_constraint)((ConstraintData*)self)->create(*((Skeleton*)skeleton)); } -const char* spine_constraint_data_get_name(spine_constraint_data self) { +const char * spine_constraint_data_get_name(spine_constraint_data self) { return ((ConstraintData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/constraint_data.h b/spine-c/src/generated/constraint_data.h index 01f8be0ea..63b81f272 100644 --- a/spine-c/src/generated/constraint_data.h +++ b/spine-c/src/generated/constraint_data.h @@ -12,7 +12,7 @@ SPINE_C_API void spine_constraint_data_dispose(spine_constraint_data self); SPINE_C_API spine_rtti spine_constraint_data_get_rtti(spine_constraint_data self); SPINE_C_API spine_constraint spine_constraint_data_create_method(spine_constraint_data self, spine_skeleton skeleton); -SPINE_C_API const char* spine_constraint_data_get_name(spine_constraint_data self); +SPINE_C_API const char * spine_constraint_data_get_name(spine_constraint_data self); SPINE_C_API bool spine_constraint_data_get_skin_required(spine_constraint_data self); SPINE_C_API spine_rtti spine_constraint_data_rtti(void); diff --git a/spine-c/src/generated/event.cpp b/spine-c/src/generated/event.cpp index b35be219d..48d85b480 100644 --- a/spine-c/src/generated/event.cpp +++ b/spine-c/src/generated/event.cpp @@ -35,11 +35,11 @@ void spine_event_set_float(spine_event self, float inValue) { ((Event*)self)->setFloat(inValue); } -const char* spine_event_get_string(spine_event self) { +const char * spine_event_get_string(spine_event self) { return ((Event*)self)->getString().buffer(); } -void spine_event_set_string(spine_event self, const char* inValue) { +void spine_event_set_string(spine_event self, const char * inValue) { ((Event*)self)->setString(String(inValue)); } diff --git a/spine-c/src/generated/event.h b/spine-c/src/generated/event.h index 2658865cf..36c8d409b 100644 --- a/spine-c/src/generated/event.h +++ b/spine-c/src/generated/event.h @@ -18,8 +18,8 @@ SPINE_C_API int spine_event_get_int(spine_event self); SPINE_C_API void spine_event_set_int(spine_event self, int inValue); SPINE_C_API float spine_event_get_float(spine_event self); SPINE_C_API void spine_event_set_float(spine_event self, float inValue); -SPINE_C_API const char* spine_event_get_string(spine_event self); -SPINE_C_API void spine_event_set_string(spine_event self, const char* inValue); +SPINE_C_API const char * spine_event_get_string(spine_event self); +SPINE_C_API void spine_event_set_string(spine_event self, const char * inValue); SPINE_C_API float spine_event_get_volume(spine_event self); SPINE_C_API void spine_event_set_volume(spine_event self, float inValue); SPINE_C_API float spine_event_get_balance(spine_event self); diff --git a/spine-c/src/generated/event_data.cpp b/spine-c/src/generated/event_data.cpp index 158a89da4..96e1bf118 100644 --- a/spine-c/src/generated/event_data.cpp +++ b/spine-c/src/generated/event_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_event_data spine_event_data_create(const char* name) { +spine_event_data spine_event_data_create(const char * name) { return (spine_event_data) new (__FILE__, __LINE__) EventData(String(name)); } @@ -11,7 +11,7 @@ void spine_event_data_dispose(spine_event_data self) { delete (EventData*)self; } -const char* spine_event_data_get_name(spine_event_data self) { +const char * spine_event_data_get_name(spine_event_data self) { return ((EventData*)self)->getName().buffer(); } @@ -31,19 +31,19 @@ void spine_event_data_set_float(spine_event_data self, float inValue) { ((EventData*)self)->setFloat(inValue); } -const char* spine_event_data_get_string(spine_event_data self) { +const char * spine_event_data_get_string(spine_event_data self) { return ((EventData*)self)->getString().buffer(); } -void spine_event_data_set_string(spine_event_data self, const char* inValue) { +void spine_event_data_set_string(spine_event_data self, const char * inValue) { ((EventData*)self)->setString(String(inValue)); } -const char* spine_event_data_get_audio_path(spine_event_data self) { +const char * spine_event_data_get_audio_path(spine_event_data self) { return ((EventData*)self)->getAudioPath().buffer(); } -void spine_event_data_set_audio_path(spine_event_data self, const char* inValue) { +void spine_event_data_set_audio_path(spine_event_data self, const char * inValue) { ((EventData*)self)->setAudioPath(String(inValue)); } diff --git a/spine-c/src/generated/event_data.h b/spine-c/src/generated/event_data.h index ace33b3e4..dfb6c29e7 100644 --- a/spine-c/src/generated/event_data.h +++ b/spine-c/src/generated/event_data.h @@ -8,19 +8,19 @@ extern "C" { #endif -SPINE_C_API spine_event_data spine_event_data_create(const char* name); +SPINE_C_API spine_event_data spine_event_data_create(const char * name); SPINE_C_API void spine_event_data_dispose(spine_event_data self); -SPINE_C_API const char* spine_event_data_get_name(spine_event_data self); +SPINE_C_API const char * spine_event_data_get_name(spine_event_data self); SPINE_C_API int spine_event_data_get_int(spine_event_data self); SPINE_C_API void spine_event_data_set_int(spine_event_data self, int inValue); SPINE_C_API float spine_event_data_get_float(spine_event_data self); SPINE_C_API void spine_event_data_set_float(spine_event_data self, float inValue); -SPINE_C_API const char* spine_event_data_get_string(spine_event_data self); -SPINE_C_API void spine_event_data_set_string(spine_event_data self, const char* inValue); -SPINE_C_API const char* spine_event_data_get_audio_path(spine_event_data self); -SPINE_C_API void spine_event_data_set_audio_path(spine_event_data self, const char* inValue); +SPINE_C_API const char * spine_event_data_get_string(spine_event_data self); +SPINE_C_API void spine_event_data_set_string(spine_event_data self, const char * inValue); +SPINE_C_API const char * spine_event_data_get_audio_path(spine_event_data self); +SPINE_C_API void spine_event_data_set_audio_path(spine_event_data self, const char * inValue); SPINE_C_API float spine_event_data_get_volume(spine_event_data self); SPINE_C_API void spine_event_data_set_volume(spine_event_data self, float inValue); SPINE_C_API float spine_event_data_get_balance(spine_event_data self); diff --git a/spine-c/src/generated/ik_constraint_data.cpp b/spine-c/src/generated/ik_constraint_data.cpp index d7ca55c79..d7754703e 100644 --- a/spine-c/src/generated/ik_constraint_data.cpp +++ b/spine-c/src/generated/ik_constraint_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_ik_constraint_data spine_ik_constraint_data_create(const char* name) { +spine_ik_constraint_data spine_ik_constraint_data_create(const char * name) { return (spine_ik_constraint_data) new (__FILE__, __LINE__) IkConstraintData(String(name)); } @@ -39,7 +39,7 @@ void spine_ik_constraint_data_set_uniform(spine_ik_constraint_data self, bool un ((IkConstraintData*)self)->setUniform(uniform); } -const char* spine_ik_constraint_data_get_name(spine_ik_constraint_data self) { +const char * spine_ik_constraint_data_get_name(spine_ik_constraint_data self) { return ((ConstraintDataGeneric*)(IkConstraintData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/ik_constraint_data.h b/spine-c/src/generated/ik_constraint_data.h index 19417c9ec..33e450a35 100644 --- a/spine-c/src/generated/ik_constraint_data.h +++ b/spine-c/src/generated/ik_constraint_data.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_ik_constraint_data spine_ik_constraint_data_create(const char* name); +SPINE_C_API spine_ik_constraint_data spine_ik_constraint_data_create(const char * name); SPINE_C_API void spine_ik_constraint_data_dispose(spine_ik_constraint_data self); @@ -19,7 +19,7 @@ SPINE_C_API spine_bone_data spine_ik_constraint_data_get_target(spine_ik_constra SPINE_C_API void spine_ik_constraint_data_set_target(spine_ik_constraint_data self, spine_bone_data inValue); SPINE_C_API bool spine_ik_constraint_data_get_uniform(spine_ik_constraint_data self); SPINE_C_API void spine_ik_constraint_data_set_uniform(spine_ik_constraint_data self, bool uniform); -SPINE_C_API const char* spine_ik_constraint_data_get_name(spine_ik_constraint_data self); +SPINE_C_API const char * spine_ik_constraint_data_get_name(spine_ik_constraint_data self); SPINE_C_API bool spine_ik_constraint_data_get_skin_required(spine_ik_constraint_data self); SPINE_C_API spine_ik_constraint_pose spine_ik_constraint_data_get_setup_pose(spine_ik_constraint_data self); SPINE_C_API void spine_ik_constraint_data_set_skin_required(spine_ik_constraint_data self, bool skinRequired); diff --git a/spine-c/src/generated/linked_mesh.cpp b/spine-c/src/generated/linked_mesh.cpp index eaec53b47..f8f6f73fc 100644 --- a/spine-c/src/generated/linked_mesh.cpp +++ b/spine-c/src/generated/linked_mesh.cpp @@ -3,11 +3,11 @@ using namespace spine; -spine_linked_mesh spine_linked_mesh_create(spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char* parent, bool inheritTimelines) { +spine_linked_mesh spine_linked_mesh_create(spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char * parent, bool inheritTimelines) { return (spine_linked_mesh) new (__FILE__, __LINE__) LinkedMesh((MeshAttachment *)mesh, skinIndex, slotIndex, String(parent), inheritTimelines); } -spine_linked_mesh spine_linked_mesh_create2(spine_mesh_attachment mesh, const char* skin, size_t slotIndex, const char* parent, bool inheritTimelines) { +spine_linked_mesh spine_linked_mesh_create2(spine_mesh_attachment mesh, const char * skin, size_t slotIndex, const char * parent, bool inheritTimelines) { return (spine_linked_mesh) new (__FILE__, __LINE__) LinkedMesh((MeshAttachment *)mesh, String(skin), slotIndex, String(parent), inheritTimelines); } diff --git a/spine-c/src/generated/linked_mesh.h b/spine-c/src/generated/linked_mesh.h index 3693c5ea0..197ffa237 100644 --- a/spine-c/src/generated/linked_mesh.h +++ b/spine-c/src/generated/linked_mesh.h @@ -8,8 +8,8 @@ extern "C" { #endif -SPINE_C_API spine_linked_mesh spine_linked_mesh_create(spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char* parent, bool inheritTimelines); -SPINE_C_API spine_linked_mesh spine_linked_mesh_create2(spine_mesh_attachment mesh, const char* skin, size_t slotIndex, const char* parent, bool inheritTimelines); +SPINE_C_API spine_linked_mesh spine_linked_mesh_create(spine_mesh_attachment mesh, const int skinIndex, size_t slotIndex, const char * parent, bool inheritTimelines); +SPINE_C_API spine_linked_mesh spine_linked_mesh_create2(spine_mesh_attachment mesh, const char * skin, size_t slotIndex, const char * parent, bool inheritTimelines); SPINE_C_API void spine_linked_mesh_dispose(spine_linked_mesh self); diff --git a/spine-c/src/generated/mesh_attachment.cpp b/spine-c/src/generated/mesh_attachment.cpp index 48c34fc82..28c714123 100644 --- a/spine-c/src/generated/mesh_attachment.cpp +++ b/spine-c/src/generated/mesh_attachment.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_mesh_attachment spine_mesh_attachment_create(const char* name) { +spine_mesh_attachment spine_mesh_attachment_create(const char * name) { return (spine_mesh_attachment) new (__FILE__, __LINE__) MeshAttachment(String(name)); } @@ -59,11 +59,11 @@ spine_color spine_mesh_attachment_get_color(spine_mesh_attachment self) { return (spine_color)&((MeshAttachment*)self)->getColor(); } -const char* spine_mesh_attachment_get_path(spine_mesh_attachment self) { +const char * spine_mesh_attachment_get_path(spine_mesh_attachment self) { return ((MeshAttachment*)self)->getPath().buffer(); } -void spine_mesh_attachment_set_path(spine_mesh_attachment self, const char* inValue) { +void spine_mesh_attachment_set_path(spine_mesh_attachment self, const char * inValue) { ((MeshAttachment*)self)->setPath(String(inValue)); } @@ -163,7 +163,7 @@ void spine_mesh_attachment_copy_to(spine_mesh_attachment self, spine_vertex_atta ((VertexAttachment*)(MeshAttachment*)self)->copyTo((VertexAttachment *)other); } -const char* spine_mesh_attachment_get_name(spine_mesh_attachment self) { +const char * spine_mesh_attachment_get_name(spine_mesh_attachment self) { return ((VertexAttachment*)(MeshAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/mesh_attachment.h b/spine-c/src/generated/mesh_attachment.h index 6f02d1e24..b897ed638 100644 --- a/spine-c/src/generated/mesh_attachment.h +++ b/spine-c/src/generated/mesh_attachment.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_mesh_attachment spine_mesh_attachment_create(const char* name); +SPINE_C_API spine_mesh_attachment spine_mesh_attachment_create(const char * name); SPINE_C_API void spine_mesh_attachment_dispose(spine_mesh_attachment self); @@ -24,8 +24,8 @@ SPINE_C_API spine_array_float spine_mesh_attachment_get_u_vs(spine_mesh_attachme SPINE_C_API spine_array_unsigned_short spine_mesh_attachment_get_triangles(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_triangles(spine_mesh_attachment self, spine_array_unsigned_short inValue); SPINE_C_API spine_color spine_mesh_attachment_get_color(spine_mesh_attachment self); -SPINE_C_API const char* spine_mesh_attachment_get_path(spine_mesh_attachment self); -SPINE_C_API void spine_mesh_attachment_set_path(spine_mesh_attachment self, const char* inValue); +SPINE_C_API const char * spine_mesh_attachment_get_path(spine_mesh_attachment self); +SPINE_C_API void spine_mesh_attachment_set_path(spine_mesh_attachment self, const char * inValue); SPINE_C_API spine_texture_region spine_mesh_attachment_get_region(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_region(spine_mesh_attachment self, spine_texture_region region); SPINE_C_API spine_sequence spine_mesh_attachment_get_sequence(spine_mesh_attachment self); @@ -50,7 +50,7 @@ SPINE_C_API void spine_mesh_attachment_set_world_vertices_length(spine_mesh_atta SPINE_C_API spine_attachment spine_mesh_attachment_get_timeline_attachment(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_set_timeline_attachment(spine_mesh_attachment self, spine_attachment attachment); SPINE_C_API void spine_mesh_attachment_copy_to(spine_mesh_attachment self, spine_vertex_attachment other); -SPINE_C_API const char* spine_mesh_attachment_get_name(spine_mesh_attachment self); +SPINE_C_API const char * spine_mesh_attachment_get_name(spine_mesh_attachment self); SPINE_C_API int spine_mesh_attachment_get_ref_count(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_reference(spine_mesh_attachment self); SPINE_C_API void spine_mesh_attachment_dereference(spine_mesh_attachment self); diff --git a/spine-c/src/generated/path_attachment.cpp b/spine-c/src/generated/path_attachment.cpp index 9a1bf31f3..de07e70e7 100644 --- a/spine-c/src/generated/path_attachment.cpp +++ b/spine-c/src/generated/path_attachment.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_path_attachment spine_path_attachment_create(const char* name) { +spine_path_attachment spine_path_attachment_create(const char * name) { return (spine_path_attachment) new (__FILE__, __LINE__) PathAttachment(String(name)); } @@ -95,7 +95,7 @@ void spine_path_attachment_copy_to(spine_path_attachment self, spine_vertex_atta ((VertexAttachment*)(PathAttachment*)self)->copyTo((VertexAttachment *)other); } -const char* spine_path_attachment_get_name(spine_path_attachment self) { +const char * spine_path_attachment_get_name(spine_path_attachment self) { return ((VertexAttachment*)(PathAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/path_attachment.h b/spine-c/src/generated/path_attachment.h index 52258f29a..21c212896 100644 --- a/spine-c/src/generated/path_attachment.h +++ b/spine-c/src/generated/path_attachment.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_path_attachment spine_path_attachment_create(const char* name); +SPINE_C_API spine_path_attachment spine_path_attachment_create(const char * name); SPINE_C_API void spine_path_attachment_dispose(spine_path_attachment self); @@ -33,7 +33,7 @@ SPINE_C_API void spine_path_attachment_set_world_vertices_length(spine_path_atta SPINE_C_API spine_attachment spine_path_attachment_get_timeline_attachment(spine_path_attachment self); SPINE_C_API void spine_path_attachment_set_timeline_attachment(spine_path_attachment self, spine_attachment attachment); SPINE_C_API void spine_path_attachment_copy_to(spine_path_attachment self, spine_vertex_attachment other); -SPINE_C_API const char* spine_path_attachment_get_name(spine_path_attachment self); +SPINE_C_API const char * spine_path_attachment_get_name(spine_path_attachment self); SPINE_C_API int spine_path_attachment_get_ref_count(spine_path_attachment self); SPINE_C_API void spine_path_attachment_reference(spine_path_attachment self); SPINE_C_API void spine_path_attachment_dereference(spine_path_attachment self); diff --git a/spine-c/src/generated/path_constraint_data.cpp b/spine-c/src/generated/path_constraint_data.cpp index 0adde3a1a..782bdcf66 100644 --- a/spine-c/src/generated/path_constraint_data.cpp +++ b/spine-c/src/generated/path_constraint_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_path_constraint_data spine_path_constraint_data_create(const char* name) { +spine_path_constraint_data spine_path_constraint_data_create(const char * name) { return (spine_path_constraint_data) new (__FILE__, __LINE__) PathConstraintData(String(name)); } @@ -63,7 +63,7 @@ void spine_path_constraint_data_set_offset_rotation(spine_path_constraint_data s ((PathConstraintData*)self)->setOffsetRotation(offsetRotation); } -const char* spine_path_constraint_data_get_name(spine_path_constraint_data self) { +const char * spine_path_constraint_data_get_name(spine_path_constraint_data self) { return ((ConstraintDataGeneric*)(PathConstraintData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/path_constraint_data.h b/spine-c/src/generated/path_constraint_data.h index ff57abdea..8a6e65643 100644 --- a/spine-c/src/generated/path_constraint_data.h +++ b/spine-c/src/generated/path_constraint_data.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_path_constraint_data spine_path_constraint_data_create(const char* name); +SPINE_C_API spine_path_constraint_data spine_path_constraint_data_create(const char * name); SPINE_C_API void spine_path_constraint_data_dispose(spine_path_constraint_data self); @@ -25,7 +25,7 @@ SPINE_C_API spine_rotate_mode spine_path_constraint_data_get_rotate_mode(spine_p SPINE_C_API void spine_path_constraint_data_set_rotate_mode(spine_path_constraint_data self, spine_rotate_mode rotateMode); SPINE_C_API float spine_path_constraint_data_get_offset_rotation(spine_path_constraint_data self); SPINE_C_API void spine_path_constraint_data_set_offset_rotation(spine_path_constraint_data self, float offsetRotation); -SPINE_C_API const char* spine_path_constraint_data_get_name(spine_path_constraint_data self); +SPINE_C_API const char * spine_path_constraint_data_get_name(spine_path_constraint_data self); SPINE_C_API bool spine_path_constraint_data_get_skin_required(spine_path_constraint_data self); SPINE_C_API spine_path_constraint_pose spine_path_constraint_data_get_setup_pose(spine_path_constraint_data self); SPINE_C_API void spine_path_constraint_data_set_skin_required(spine_path_constraint_data self, bool skinRequired); diff --git a/spine-c/src/generated/physics_constraint_data.cpp b/spine-c/src/generated/physics_constraint_data.cpp index d2fc072fc..186743f5a 100644 --- a/spine-c/src/generated/physics_constraint_data.cpp +++ b/spine-c/src/generated/physics_constraint_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_physics_constraint_data spine_physics_constraint_data_create(const char* name) { +spine_physics_constraint_data spine_physics_constraint_data_create(const char * name) { return (spine_physics_constraint_data) new (__FILE__, __LINE__) PhysicsConstraintData(String(name)); } @@ -139,7 +139,7 @@ void spine_physics_constraint_data_set_mix_global(spine_physics_constraint_data ((PhysicsConstraintData*)self)->setMixGlobal(mixGlobal); } -const char* spine_physics_constraint_data_get_name(spine_physics_constraint_data self) { +const char * spine_physics_constraint_data_get_name(spine_physics_constraint_data self) { return ((ConstraintDataGeneric*)(PhysicsConstraintData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/physics_constraint_data.h b/spine-c/src/generated/physics_constraint_data.h index afc02ebc7..808d54e56 100644 --- a/spine-c/src/generated/physics_constraint_data.h +++ b/spine-c/src/generated/physics_constraint_data.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_physics_constraint_data spine_physics_constraint_data_create(const char* name); +SPINE_C_API spine_physics_constraint_data spine_physics_constraint_data_create(const char * name); SPINE_C_API void spine_physics_constraint_data_dispose(spine_physics_constraint_data self); @@ -44,7 +44,7 @@ SPINE_C_API bool spine_physics_constraint_data_get_gravity_global(spine_physics_ SPINE_C_API void spine_physics_constraint_data_set_gravity_global(spine_physics_constraint_data self, bool gravityGlobal); SPINE_C_API bool spine_physics_constraint_data_get_mix_global(spine_physics_constraint_data self); SPINE_C_API void spine_physics_constraint_data_set_mix_global(spine_physics_constraint_data self, bool mixGlobal); -SPINE_C_API const char* spine_physics_constraint_data_get_name(spine_physics_constraint_data self); +SPINE_C_API const char * spine_physics_constraint_data_get_name(spine_physics_constraint_data self); SPINE_C_API bool spine_physics_constraint_data_get_skin_required(spine_physics_constraint_data self); SPINE_C_API spine_physics_constraint_pose spine_physics_constraint_data_get_setup_pose(spine_physics_constraint_data self); SPINE_C_API void spine_physics_constraint_data_set_skin_required(spine_physics_constraint_data self, bool skinRequired); diff --git a/spine-c/src/generated/point_attachment.cpp b/spine-c/src/generated/point_attachment.cpp index a5907883f..11eda0f94 100644 --- a/spine-c/src/generated/point_attachment.cpp +++ b/spine-c/src/generated/point_attachment.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_point_attachment spine_point_attachment_create(const char* name) { +spine_point_attachment spine_point_attachment_create(const char * name) { return (spine_point_attachment) new (__FILE__, __LINE__) PointAttachment(String(name)); } @@ -43,7 +43,7 @@ spine_color spine_point_attachment_get_color(spine_point_attachment self) { return (spine_color)&((PointAttachment*)self)->getColor(); } -void spine_point_attachment_compute_world_position(spine_point_attachment self, spine_bone_pose bone, float* ox, float* oy) { +void spine_point_attachment_compute_world_position(spine_point_attachment self, spine_bone_pose bone, float * ox, float * oy) { ((PointAttachment*)self)->computeWorldPosition(*((BonePose*)bone), *ox, *oy); } @@ -55,7 +55,7 @@ spine_attachment spine_point_attachment_copy(spine_point_attachment self) { return (spine_attachment)((PointAttachment*)self)->copy(); } -const char* spine_point_attachment_get_name(spine_point_attachment self) { +const char * spine_point_attachment_get_name(spine_point_attachment self) { return ((Attachment*)(PointAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/point_attachment.h b/spine-c/src/generated/point_attachment.h index c4d6b1a14..005d67806 100644 --- a/spine-c/src/generated/point_attachment.h +++ b/spine-c/src/generated/point_attachment.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_point_attachment spine_point_attachment_create(const char* name); +SPINE_C_API spine_point_attachment spine_point_attachment_create(const char * name); SPINE_C_API void spine_point_attachment_dispose(spine_point_attachment self); @@ -20,10 +20,10 @@ SPINE_C_API void spine_point_attachment_set_y(spine_point_attachment self, float SPINE_C_API float spine_point_attachment_get_rotation(spine_point_attachment self); SPINE_C_API void spine_point_attachment_set_rotation(spine_point_attachment self, float inValue); SPINE_C_API spine_color spine_point_attachment_get_color(spine_point_attachment self); -SPINE_C_API void spine_point_attachment_compute_world_position(spine_point_attachment self, spine_bone_pose bone, float* ox, float* oy); +SPINE_C_API void spine_point_attachment_compute_world_position(spine_point_attachment self, spine_bone_pose bone, float * ox, float * oy); SPINE_C_API float spine_point_attachment_compute_world_rotation(spine_point_attachment self, spine_bone_pose bone); SPINE_C_API spine_attachment spine_point_attachment_copy(spine_point_attachment self); -SPINE_C_API const char* spine_point_attachment_get_name(spine_point_attachment self); +SPINE_C_API const char * spine_point_attachment_get_name(spine_point_attachment self); SPINE_C_API int spine_point_attachment_get_ref_count(spine_point_attachment self); SPINE_C_API void spine_point_attachment_reference(spine_point_attachment self); SPINE_C_API void spine_point_attachment_dereference(spine_point_attachment self); diff --git a/spine-c/src/generated/posed_data.cpp b/spine-c/src/generated/posed_data.cpp index db5345516..7eb9d90a1 100644 --- a/spine-c/src/generated/posed_data.cpp +++ b/spine-c/src/generated/posed_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_posed_data spine_posed_data_create(const char* name) { +spine_posed_data spine_posed_data_create(const char * name) { return (spine_posed_data) new (__FILE__, __LINE__) PosedData(String(name)); } @@ -11,7 +11,7 @@ void spine_posed_data_dispose(spine_posed_data self) { delete (PosedData*)self; } -const char* spine_posed_data_get_name(spine_posed_data self) { +const char * spine_posed_data_get_name(spine_posed_data self) { return ((PosedData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/posed_data.h b/spine-c/src/generated/posed_data.h index 9739d687d..581565f49 100644 --- a/spine-c/src/generated/posed_data.h +++ b/spine-c/src/generated/posed_data.h @@ -8,11 +8,11 @@ extern "C" { #endif -SPINE_C_API spine_posed_data spine_posed_data_create(const char* name); +SPINE_C_API spine_posed_data spine_posed_data_create(const char * name); SPINE_C_API void spine_posed_data_dispose(spine_posed_data self); -SPINE_C_API const char* spine_posed_data_get_name(spine_posed_data self); +SPINE_C_API const char * spine_posed_data_get_name(spine_posed_data self); SPINE_C_API bool spine_posed_data_get_skin_required(spine_posed_data self); SPINE_C_API void spine_posed_data_set_skin_required(spine_posed_data self, bool skinRequired); diff --git a/spine-c/src/generated/region_attachment.cpp b/spine-c/src/generated/region_attachment.cpp index a2538472c..d10a29033 100644 --- a/spine-c/src/generated/region_attachment.cpp +++ b/spine-c/src/generated/region_attachment.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_region_attachment spine_region_attachment_create(const char* name) { +spine_region_attachment spine_region_attachment_create(const char * name) { return (spine_region_attachment) new (__FILE__, __LINE__) RegionAttachment(String(name)); } @@ -87,11 +87,11 @@ spine_color spine_region_attachment_get_color(spine_region_attachment self) { return (spine_color)&((RegionAttachment*)self)->getColor(); } -const char* spine_region_attachment_get_path(spine_region_attachment self) { +const char * spine_region_attachment_get_path(spine_region_attachment self) { return ((RegionAttachment*)self)->getPath().buffer(); } -void spine_region_attachment_set_path(spine_region_attachment self, const char* inValue) { +void spine_region_attachment_set_path(spine_region_attachment self, const char * inValue) { ((RegionAttachment*)self)->setPath(String(inValue)); } @@ -123,7 +123,7 @@ spine_attachment spine_region_attachment_copy(spine_region_attachment self) { return (spine_attachment)((RegionAttachment*)self)->copy(); } -const char* spine_region_attachment_get_name(spine_region_attachment self) { +const char * spine_region_attachment_get_name(spine_region_attachment self) { return ((Attachment*)(RegionAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/region_attachment.h b/spine-c/src/generated/region_attachment.h index 3b1e2d975..cf09b8c2c 100644 --- a/spine-c/src/generated/region_attachment.h +++ b/spine-c/src/generated/region_attachment.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_region_attachment spine_region_attachment_create(const char* name); +SPINE_C_API spine_region_attachment spine_region_attachment_create(const char * name); SPINE_C_API void spine_region_attachment_dispose(spine_region_attachment self); @@ -31,8 +31,8 @@ SPINE_C_API void spine_region_attachment_set_width(spine_region_attachment self, SPINE_C_API float spine_region_attachment_get_height(spine_region_attachment self); SPINE_C_API void spine_region_attachment_set_height(spine_region_attachment self, float inValue); SPINE_C_API spine_color spine_region_attachment_get_color(spine_region_attachment self); -SPINE_C_API const char* spine_region_attachment_get_path(spine_region_attachment self); -SPINE_C_API void spine_region_attachment_set_path(spine_region_attachment self, const char* inValue); +SPINE_C_API const char * spine_region_attachment_get_path(spine_region_attachment self); +SPINE_C_API void spine_region_attachment_set_path(spine_region_attachment self, const char * inValue); SPINE_C_API spine_texture_region spine_region_attachment_get_region(spine_region_attachment self); SPINE_C_API void spine_region_attachment_set_region(spine_region_attachment self, spine_texture_region region); SPINE_C_API spine_sequence spine_region_attachment_get_sequence(spine_region_attachment self); @@ -40,7 +40,7 @@ SPINE_C_API void spine_region_attachment_set_sequence(spine_region_attachment se SPINE_C_API spine_array_float spine_region_attachment_get_offset(spine_region_attachment self); SPINE_C_API spine_array_float spine_region_attachment_get_u_vs(spine_region_attachment self); SPINE_C_API spine_attachment spine_region_attachment_copy(spine_region_attachment self); -SPINE_C_API const char* spine_region_attachment_get_name(spine_region_attachment self); +SPINE_C_API const char * spine_region_attachment_get_name(spine_region_attachment self); SPINE_C_API int spine_region_attachment_get_ref_count(spine_region_attachment self); SPINE_C_API void spine_region_attachment_reference(spine_region_attachment self); SPINE_C_API void spine_region_attachment_dereference(spine_region_attachment self); diff --git a/spine-c/src/generated/sequence.cpp b/spine-c/src/generated/sequence.cpp index c31b008fb..433250cdd 100644 --- a/spine-c/src/generated/sequence.cpp +++ b/spine-c/src/generated/sequence.cpp @@ -19,8 +19,8 @@ void spine_sequence_apply(spine_sequence self, spine_slot_pose slot, spine_attac ((Sequence*)self)->apply((SlotPose *)slot, (Attachment *)attachment); } -const char* spine_sequence_get_path(spine_sequence self, const char* basePath, int index) { - return (const char*)&((Sequence*)self)->getPath(String(basePath), index); +const char * spine_sequence_get_path(spine_sequence self, const char * basePath, int index) { + return (const char *)&((Sequence*)self)->getPath(String(basePath), index); } int spine_sequence_get_id(spine_sequence self) { diff --git a/spine-c/src/generated/sequence.h b/spine-c/src/generated/sequence.h index d5e5df5ee..9095a5aea 100644 --- a/spine-c/src/generated/sequence.h +++ b/spine-c/src/generated/sequence.h @@ -14,7 +14,7 @@ SPINE_C_API void spine_sequence_dispose(spine_sequence self); SPINE_C_API spine_sequence spine_sequence_copy(spine_sequence self); SPINE_C_API void spine_sequence_apply(spine_sequence self, spine_slot_pose slot, spine_attachment attachment); -SPINE_C_API const char* spine_sequence_get_path(spine_sequence self, const char* basePath, int index); +SPINE_C_API const char * spine_sequence_get_path(spine_sequence self, const char * basePath, int index); SPINE_C_API int spine_sequence_get_id(spine_sequence self); SPINE_C_API void spine_sequence_set_id(spine_sequence self, int id); SPINE_C_API int spine_sequence_get_start(spine_sequence self); diff --git a/spine-c/src/generated/skeleton.cpp b/spine-c/src/generated/skeleton.cpp index 8a6552177..a92947a3c 100644 --- a/spine-c/src/generated/skeleton.cpp +++ b/spine-c/src/generated/skeleton.cpp @@ -67,7 +67,7 @@ spine_bone spine_skeleton_get_root_bone(spine_skeleton self) { return (spine_bone)((Skeleton*)self)->getRootBone(); } -spine_bone spine_skeleton_find_bone(spine_skeleton self, const char* boneName) { +spine_bone spine_skeleton_find_bone(spine_skeleton self, const char * boneName) { return (spine_bone)((Skeleton*)self)->findBone(String(boneName)); } @@ -75,7 +75,7 @@ spine_array_slot spine_skeleton_get_slots(spine_skeleton self) { return (spine_array_slot)&((Skeleton*)self)->getSlots(); } -spine_slot spine_skeleton_find_slot(spine_skeleton self, const char* slotName) { +spine_slot spine_skeleton_find_slot(spine_skeleton self, const char * slotName) { return (spine_slot)((Skeleton*)self)->findSlot(String(slotName)); } @@ -87,7 +87,7 @@ spine_skin spine_skeleton_get_skin(spine_skeleton self) { return (spine_skin)((Skeleton*)self)->getSkin(); } -void spine_skeleton_set_skin_1(spine_skeleton self, const char* skinName) { +void spine_skeleton_set_skin_1(spine_skeleton self, const char * skinName) { ((Skeleton*)self)->setSkin(String(skinName)); } @@ -95,15 +95,15 @@ void spine_skeleton_set_skin_2(spine_skeleton self, spine_skin newSkin) { ((Skeleton*)self)->setSkin((Skin *)newSkin); } -spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char* slotName, const char* attachmentName) { +spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char * slotName, const char * attachmentName) { return (spine_attachment)((Skeleton*)self)->getAttachment(String(slotName), String(attachmentName)); } -spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char* attachmentName) { +spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char * attachmentName) { return (spine_attachment)((Skeleton*)self)->getAttachment(slotIndex, String(attachmentName)); } -void spine_skeleton_set_attachment(spine_skeleton self, const char* slotName, const char* attachmentName) { +void spine_skeleton_set_attachment(spine_skeleton self, const char * slotName, const char * attachmentName) { ((Skeleton*)self)->setAttachment(String(slotName), String(attachmentName)); } @@ -115,11 +115,11 @@ spine_array_physics_constraint spine_skeleton_get_physics_constraints(spine_skel return (spine_array_physics_constraint)&((Skeleton*)self)->getPhysicsConstraints(); } -void spine_skeleton_get_bounds_1(spine_skeleton self, float* outX, float* outY, float* outWidth, float* outHeight, spine_array_float outVertexBuffer) { +void spine_skeleton_get_bounds_1(spine_skeleton self, float * outX, float * outY, float * outWidth, float * outHeight, spine_array_float outVertexBuffer) { ((Skeleton*)self)->getBounds(*outX, *outY, *outWidth, *outHeight, *((Array*)outVertexBuffer)); } -void spine_skeleton_get_bounds_2(spine_skeleton self, float* outX, float* outY, float* outWidth, float* outHeight, spine_array_float outVertexBuffer, spine_skeleton_clipping clipper) { +void spine_skeleton_get_bounds_2(spine_skeleton self, float * outX, float * outY, float * outWidth, float * outHeight, spine_array_float outVertexBuffer, spine_skeleton_clipping clipper) { ((Skeleton*)self)->getBounds(*outX, *outY, *outWidth, *outHeight, *((Array*)outVertexBuffer), (SkeletonClipping *)clipper); } diff --git a/spine-c/src/generated/skeleton.h b/spine-c/src/generated/skeleton.h index 86d017db3..1d2f782e6 100644 --- a/spine-c/src/generated/skeleton.h +++ b/spine-c/src/generated/skeleton.h @@ -26,20 +26,20 @@ SPINE_C_API spine_skeleton_data spine_skeleton_get_data(spine_skeleton self); SPINE_C_API spine_array_bone spine_skeleton_get_bones(spine_skeleton self); SPINE_C_API spine_array_update spine_skeleton_get_update_cache(spine_skeleton self); SPINE_C_API spine_bone spine_skeleton_get_root_bone(spine_skeleton self); -SPINE_C_API spine_bone spine_skeleton_find_bone(spine_skeleton self, const char* boneName); +SPINE_C_API spine_bone spine_skeleton_find_bone(spine_skeleton self, const char * boneName); SPINE_C_API spine_array_slot spine_skeleton_get_slots(spine_skeleton self); -SPINE_C_API spine_slot spine_skeleton_find_slot(spine_skeleton self, const char* slotName); +SPINE_C_API spine_slot spine_skeleton_find_slot(spine_skeleton self, const char * slotName); SPINE_C_API spine_array_slot spine_skeleton_get_draw_order(spine_skeleton self); SPINE_C_API spine_skin spine_skeleton_get_skin(spine_skeleton self); -SPINE_C_API void spine_skeleton_set_skin_1(spine_skeleton self, const char* skinName); +SPINE_C_API void spine_skeleton_set_skin_1(spine_skeleton self, const char * skinName); SPINE_C_API void spine_skeleton_set_skin_2(spine_skeleton self, spine_skin newSkin); -SPINE_C_API spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char* slotName, const char* attachmentName); -SPINE_C_API spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char* attachmentName); -SPINE_C_API void spine_skeleton_set_attachment(spine_skeleton self, const char* slotName, const char* attachmentName); +SPINE_C_API spine_attachment spine_skeleton_get_attachment_1(spine_skeleton self, const char * slotName, const char * attachmentName); +SPINE_C_API spine_attachment spine_skeleton_get_attachment_2(spine_skeleton self, int slotIndex, const char * attachmentName); +SPINE_C_API void spine_skeleton_set_attachment(spine_skeleton self, const char * slotName, const char * attachmentName); SPINE_C_API spine_array_constraint spine_skeleton_get_constraints(spine_skeleton self); SPINE_C_API spine_array_physics_constraint spine_skeleton_get_physics_constraints(spine_skeleton self); -SPINE_C_API void spine_skeleton_get_bounds_1(spine_skeleton self, float* outX, float* outY, float* outWidth, float* outHeight, spine_array_float outVertexBuffer); -SPINE_C_API void spine_skeleton_get_bounds_2(spine_skeleton self, float* outX, float* outY, float* outWidth, float* outHeight, spine_array_float outVertexBuffer, spine_skeleton_clipping clipper); +SPINE_C_API void spine_skeleton_get_bounds_1(spine_skeleton self, float * outX, float * outY, float * outWidth, float * outHeight, spine_array_float outVertexBuffer); +SPINE_C_API void spine_skeleton_get_bounds_2(spine_skeleton self, float * outX, float * outY, float * outWidth, float * outHeight, spine_array_float outVertexBuffer, spine_skeleton_clipping clipper); SPINE_C_API spine_color spine_skeleton_get_color(spine_skeleton self); SPINE_C_API void spine_skeleton_set_color_1(spine_skeleton self, spine_color color); SPINE_C_API void spine_skeleton_set_color_2(spine_skeleton self, float r, float g, float b, float a); diff --git a/spine-c/src/generated/skeleton_binary.cpp b/spine-c/src/generated/skeleton_binary.cpp index a59d9477f..133910468 100644 --- a/spine-c/src/generated/skeleton_binary.cpp +++ b/spine-c/src/generated/skeleton_binary.cpp @@ -19,7 +19,7 @@ spine_skeleton_data spine_skeleton_binary_read_skeleton_data(spine_skeleton_bina return (spine_skeleton_data)((SkeletonBinary*)self)->readSkeletonData(binary, length); } -spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char* path) { +spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char * path) { return (spine_skeleton_data)((SkeletonBinary*)self)->readSkeletonDataFile(String(path)); } @@ -27,6 +27,6 @@ void spine_skeleton_binary_set_scale(spine_skeleton_binary self, float scale) { ((SkeletonBinary*)self)->setScale(scale); } -const char* spine_skeleton_binary_get_error(spine_skeleton_binary self) { +const char * spine_skeleton_binary_get_error(spine_skeleton_binary self) { return ((SkeletonBinary*)self)->getError().buffer(); } diff --git a/spine-c/src/generated/skeleton_binary.h b/spine-c/src/generated/skeleton_binary.h index 57ed99f1a..156a224a1 100644 --- a/spine-c/src/generated/skeleton_binary.h +++ b/spine-c/src/generated/skeleton_binary.h @@ -14,9 +14,9 @@ SPINE_C_API spine_skeleton_binary spine_skeleton_binary_create2(spine_attachment SPINE_C_API void spine_skeleton_binary_dispose(spine_skeleton_binary self); SPINE_C_API spine_skeleton_data spine_skeleton_binary_read_skeleton_data(spine_skeleton_binary self, const unsigned char * binary, int length); -SPINE_C_API spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char* path); +SPINE_C_API spine_skeleton_data spine_skeleton_binary_read_skeleton_data_file(spine_skeleton_binary self, const char * path); SPINE_C_API void spine_skeleton_binary_set_scale(spine_skeleton_binary self, float scale); -SPINE_C_API const char* spine_skeleton_binary_get_error(spine_skeleton_binary self); +SPINE_C_API const char * spine_skeleton_binary_get_error(spine_skeleton_binary self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/skeleton_data.cpp b/spine-c/src/generated/skeleton_data.cpp index 4145c6547..24a57c7aa 100644 --- a/spine-c/src/generated/skeleton_data.cpp +++ b/spine-c/src/generated/skeleton_data.cpp @@ -11,31 +11,31 @@ void spine_skeleton_data_dispose(spine_skeleton_data self) { delete (SkeletonData*)self; } -spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char* boneName) { +spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char * boneName) { return (spine_bone_data)((SkeletonData*)self)->findBone(String(boneName)); } -spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char* slotName) { +spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char * slotName) { return (spine_slot_data)((SkeletonData*)self)->findSlot(String(slotName)); } -spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char* skinName) { +spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char * skinName) { return (spine_skin)((SkeletonData*)self)->findSkin(String(skinName)); } -spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char* eventDataName) { +spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char * eventDataName) { return (spine_event_data)((SkeletonData*)self)->findEvent(String(eventDataName)); } -spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char* animationName) { +spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char * animationName) { return (spine_animation)((SkeletonData*)self)->findAnimation(String(animationName)); } -const char* spine_skeleton_data_get_name(spine_skeleton_data self) { +const char * spine_skeleton_data_get_name(spine_skeleton_data self) { return ((SkeletonData*)self)->getName().buffer(); } -void spine_skeleton_data_set_name(spine_skeleton_data self, const char* inValue) { +void spine_skeleton_data_set_name(spine_skeleton_data self, const char * inValue) { ((SkeletonData*)self)->setName(String(inValue)); } @@ -111,35 +111,35 @@ void spine_skeleton_data_set_reference_scale(spine_skeleton_data self, float inV ((SkeletonData*)self)->setReferenceScale(inValue); } -const char* spine_skeleton_data_get_version(spine_skeleton_data self) { +const char * spine_skeleton_data_get_version(spine_skeleton_data self) { return ((SkeletonData*)self)->getVersion().buffer(); } -void spine_skeleton_data_set_version(spine_skeleton_data self, const char* inValue) { +void spine_skeleton_data_set_version(spine_skeleton_data self, const char * inValue) { ((SkeletonData*)self)->setVersion(String(inValue)); } -const char* spine_skeleton_data_get_hash(spine_skeleton_data self) { +const char * spine_skeleton_data_get_hash(spine_skeleton_data self) { return ((SkeletonData*)self)->getHash().buffer(); } -void spine_skeleton_data_set_hash(spine_skeleton_data self, const char* inValue) { +void spine_skeleton_data_set_hash(spine_skeleton_data self, const char * inValue) { ((SkeletonData*)self)->setHash(String(inValue)); } -const char* spine_skeleton_data_get_images_path(spine_skeleton_data self) { +const char * spine_skeleton_data_get_images_path(spine_skeleton_data self) { return ((SkeletonData*)self)->getImagesPath().buffer(); } -void spine_skeleton_data_set_images_path(spine_skeleton_data self, const char* inValue) { +void spine_skeleton_data_set_images_path(spine_skeleton_data self, const char * inValue) { ((SkeletonData*)self)->setImagesPath(String(inValue)); } -const char* spine_skeleton_data_get_audio_path(spine_skeleton_data self) { +const char * spine_skeleton_data_get_audio_path(spine_skeleton_data self) { return ((SkeletonData*)self)->getAudioPath().buffer(); } -void spine_skeleton_data_set_audio_path(spine_skeleton_data self, const char* inValue) { +void spine_skeleton_data_set_audio_path(spine_skeleton_data self, const char * inValue) { ((SkeletonData*)self)->setAudioPath(String(inValue)); } diff --git a/spine-c/src/generated/skeleton_data.h b/spine-c/src/generated/skeleton_data.h index 0b4b23984..05c886a30 100644 --- a/spine-c/src/generated/skeleton_data.h +++ b/spine-c/src/generated/skeleton_data.h @@ -12,13 +12,13 @@ SPINE_C_API spine_skeleton_data spine_skeleton_data_create(void); SPINE_C_API void spine_skeleton_data_dispose(spine_skeleton_data self); -SPINE_C_API spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char* boneName); -SPINE_C_API spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char* slotName); -SPINE_C_API spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char* skinName); -SPINE_C_API spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char* eventDataName); -SPINE_C_API spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char* animationName); -SPINE_C_API const char* spine_skeleton_data_get_name(spine_skeleton_data self); -SPINE_C_API void spine_skeleton_data_set_name(spine_skeleton_data self, const char* inValue); +SPINE_C_API spine_bone_data spine_skeleton_data_find_bone(spine_skeleton_data self, const char * boneName); +SPINE_C_API spine_slot_data spine_skeleton_data_find_slot(spine_skeleton_data self, const char * slotName); +SPINE_C_API spine_skin spine_skeleton_data_find_skin(spine_skeleton_data self, const char * skinName); +SPINE_C_API spine_event_data spine_skeleton_data_find_event(spine_skeleton_data self, const char * eventDataName); +SPINE_C_API spine_animation spine_skeleton_data_find_animation(spine_skeleton_data self, const char * animationName); +SPINE_C_API const char * spine_skeleton_data_get_name(spine_skeleton_data self); +SPINE_C_API void spine_skeleton_data_set_name(spine_skeleton_data self, const char * inValue); SPINE_C_API spine_array_bone_data spine_skeleton_data_get_bones(spine_skeleton_data self); SPINE_C_API spine_array_slot_data spine_skeleton_data_get_slots(spine_skeleton_data self); SPINE_C_API spine_array_skin spine_skeleton_data_get_skins(spine_skeleton_data self); @@ -37,14 +37,14 @@ SPINE_C_API float spine_skeleton_data_get_height(spine_skeleton_data self); SPINE_C_API void spine_skeleton_data_set_height(spine_skeleton_data self, float inValue); SPINE_C_API float spine_skeleton_data_get_reference_scale(spine_skeleton_data self); SPINE_C_API void spine_skeleton_data_set_reference_scale(spine_skeleton_data self, float inValue); -SPINE_C_API const char* spine_skeleton_data_get_version(spine_skeleton_data self); -SPINE_C_API void spine_skeleton_data_set_version(spine_skeleton_data self, const char* inValue); -SPINE_C_API const char* spine_skeleton_data_get_hash(spine_skeleton_data self); -SPINE_C_API void spine_skeleton_data_set_hash(spine_skeleton_data self, const char* inValue); -SPINE_C_API const char* spine_skeleton_data_get_images_path(spine_skeleton_data self); -SPINE_C_API void spine_skeleton_data_set_images_path(spine_skeleton_data self, const char* inValue); -SPINE_C_API const char* spine_skeleton_data_get_audio_path(spine_skeleton_data self); -SPINE_C_API void spine_skeleton_data_set_audio_path(spine_skeleton_data self, const char* inValue); +SPINE_C_API const char * spine_skeleton_data_get_version(spine_skeleton_data self); +SPINE_C_API void spine_skeleton_data_set_version(spine_skeleton_data self, const char * inValue); +SPINE_C_API const char * spine_skeleton_data_get_hash(spine_skeleton_data self); +SPINE_C_API void spine_skeleton_data_set_hash(spine_skeleton_data self, const char * inValue); +SPINE_C_API const char * spine_skeleton_data_get_images_path(spine_skeleton_data self); +SPINE_C_API void spine_skeleton_data_set_images_path(spine_skeleton_data self, const char * inValue); +SPINE_C_API const char * spine_skeleton_data_get_audio_path(spine_skeleton_data self); +SPINE_C_API void spine_skeleton_data_set_audio_path(spine_skeleton_data self, const char * inValue); SPINE_C_API float spine_skeleton_data_get_fps(spine_skeleton_data self); SPINE_C_API void spine_skeleton_data_set_fps(spine_skeleton_data self, float inValue); diff --git a/spine-c/src/generated/skeleton_json.cpp b/spine-c/src/generated/skeleton_json.cpp index ddd92cf58..2b539783e 100644 --- a/spine-c/src/generated/skeleton_json.cpp +++ b/spine-c/src/generated/skeleton_json.cpp @@ -15,7 +15,7 @@ void spine_skeleton_json_dispose(spine_skeleton_json self) { delete (SkeletonJson*)self; } -spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char* path) { +spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char * path) { return (spine_skeleton_data)((SkeletonJson*)self)->readSkeletonDataFile(String(path)); } @@ -27,6 +27,6 @@ void spine_skeleton_json_set_scale(spine_skeleton_json self, float scale) { ((SkeletonJson*)self)->setScale(scale); } -const char* spine_skeleton_json_get_error(spine_skeleton_json self) { +const char * spine_skeleton_json_get_error(spine_skeleton_json self) { return ((SkeletonJson*)self)->getError().buffer(); } diff --git a/spine-c/src/generated/skeleton_json.h b/spine-c/src/generated/skeleton_json.h index 1e4a89655..2cc06403c 100644 --- a/spine-c/src/generated/skeleton_json.h +++ b/spine-c/src/generated/skeleton_json.h @@ -13,10 +13,10 @@ SPINE_C_API spine_skeleton_json spine_skeleton_json_create2(spine_attachment_loa SPINE_C_API void spine_skeleton_json_dispose(spine_skeleton_json self); -SPINE_C_API spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char* path); +SPINE_C_API spine_skeleton_data spine_skeleton_json_read_skeleton_data_file(spine_skeleton_json self, const char * path); SPINE_C_API spine_skeleton_data spine_skeleton_json_read_skeleton_data(spine_skeleton_json self, const char * json); SPINE_C_API void spine_skeleton_json_set_scale(spine_skeleton_json self, float scale); -SPINE_C_API const char* spine_skeleton_json_get_error(spine_skeleton_json self); +SPINE_C_API const char * spine_skeleton_json_get_error(spine_skeleton_json self); #ifdef __cplusplus } diff --git a/spine-c/src/generated/skin.cpp b/spine-c/src/generated/skin.cpp index e7581c1d7..4a6e804a6 100644 --- a/spine-c/src/generated/skin.cpp +++ b/spine-c/src/generated/skin.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_skin spine_skin_create(const char* name) { +spine_skin spine_skin_create(const char * name) { return (spine_skin) new (__FILE__, __LINE__) Skin(String(name)); } @@ -11,15 +11,15 @@ void spine_skin_dispose(spine_skin self) { delete (Skin*)self; } -void spine_skin_set_attachment(spine_skin self, size_t slotIndex, const char* name, spine_attachment attachment) { +void spine_skin_set_attachment(spine_skin self, size_t slotIndex, const char * name, spine_attachment attachment) { ((Skin*)self)->setAttachment(slotIndex, String(name), (Attachment *)attachment); } -spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char* name) { +spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char * name) { return (spine_attachment)((Skin*)self)->getAttachment(slotIndex, String(name)); } -void spine_skin_remove_attachment(spine_skin self, size_t slotIndex, const char* name) { +void spine_skin_remove_attachment(spine_skin self, size_t slotIndex, const char * name) { ((Skin*)self)->removeAttachment(slotIndex, String(name)); } @@ -27,7 +27,7 @@ void spine_skin_find_attachments_for_slot(spine_skin self, size_t slotIndex, spi ((Skin*)self)->findAttachmentsForSlot(slotIndex, *((Array*)attachments)); } -const char* spine_skin_get_name(spine_skin self) { +const char * spine_skin_get_name(spine_skin self) { return ((Skin*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/skin.h b/spine-c/src/generated/skin.h index e5f2f2f29..101a12d35 100644 --- a/spine-c/src/generated/skin.h +++ b/spine-c/src/generated/skin.h @@ -8,15 +8,15 @@ extern "C" { #endif -SPINE_C_API spine_skin spine_skin_create(const char* name); +SPINE_C_API spine_skin spine_skin_create(const char * name); SPINE_C_API void spine_skin_dispose(spine_skin self); -SPINE_C_API void spine_skin_set_attachment(spine_skin self, size_t slotIndex, const char* name, spine_attachment attachment); -SPINE_C_API spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char* name); -SPINE_C_API void spine_skin_remove_attachment(spine_skin self, size_t slotIndex, const char* name); +SPINE_C_API void spine_skin_set_attachment(spine_skin self, size_t slotIndex, const char * name, spine_attachment attachment); +SPINE_C_API spine_attachment spine_skin_get_attachment(spine_skin self, size_t slotIndex, const char * name); +SPINE_C_API void spine_skin_remove_attachment(spine_skin self, size_t slotIndex, const char * name); SPINE_C_API void spine_skin_find_attachments_for_slot(spine_skin self, size_t slotIndex, spine_array_attachment attachments); -SPINE_C_API const char* spine_skin_get_name(spine_skin self); +SPINE_C_API const char * spine_skin_get_name(spine_skin self); SPINE_C_API void spine_skin_add_skin(spine_skin self, spine_skin other); SPINE_C_API void spine_skin_copy_skin(spine_skin self, spine_skin other); SPINE_C_API spine_array_bone_data spine_skin_get_bones(spine_skin self); diff --git a/spine-c/src/generated/slider_data.cpp b/spine-c/src/generated/slider_data.cpp index 32e8c87b4..6050025f2 100644 --- a/spine-c/src/generated/slider_data.cpp +++ b/spine-c/src/generated/slider_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_slider_data spine_slider_data_create(const char* name) { +spine_slider_data spine_slider_data_create(const char * name) { return (spine_slider_data) new (__FILE__, __LINE__) SliderData(String(name)); } @@ -83,7 +83,7 @@ void spine_slider_data_set_local(spine_slider_data self, bool local) { ((SliderData*)self)->setLocal(local); } -const char* spine_slider_data_get_name(spine_slider_data self) { +const char * spine_slider_data_get_name(spine_slider_data self) { return ((ConstraintDataGeneric*)(SliderData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/slider_data.h b/spine-c/src/generated/slider_data.h index 39b347359..ef8e158f7 100644 --- a/spine-c/src/generated/slider_data.h +++ b/spine-c/src/generated/slider_data.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_slider_data spine_slider_data_create(const char* name); +SPINE_C_API spine_slider_data spine_slider_data_create(const char * name); SPINE_C_API void spine_slider_data_dispose(spine_slider_data self); @@ -30,7 +30,7 @@ SPINE_C_API float spine_slider_data_get_offset(spine_slider_data self); SPINE_C_API void spine_slider_data_set_offset(spine_slider_data self, float offset); SPINE_C_API bool spine_slider_data_get_local(spine_slider_data self); SPINE_C_API void spine_slider_data_set_local(spine_slider_data self, bool local); -SPINE_C_API const char* spine_slider_data_get_name(spine_slider_data self); +SPINE_C_API const char * spine_slider_data_get_name(spine_slider_data self); SPINE_C_API bool spine_slider_data_get_skin_required(spine_slider_data self); SPINE_C_API spine_slider_pose spine_slider_data_get_setup_pose(spine_slider_data self); SPINE_C_API void spine_slider_data_set_skin_required(spine_slider_data self, bool skinRequired); diff --git a/spine-c/src/generated/slot_data.cpp b/spine-c/src/generated/slot_data.cpp index 6e529292a..f335ee746 100644 --- a/spine-c/src/generated/slot_data.cpp +++ b/spine-c/src/generated/slot_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_slot_data spine_slot_data_create(int index, const char* name, spine_bone_data boneData) { +spine_slot_data spine_slot_data_create(int index, const char * name, spine_bone_data boneData) { return (spine_slot_data) new (__FILE__, __LINE__) SlotData(index, String(name), *((BoneData*)boneData)); } @@ -19,11 +19,11 @@ spine_bone_data spine_slot_data_get_bone_data(spine_slot_data self) { return (spine_bone_data)&((SlotData*)self)->getBoneData(); } -void spine_slot_data_set_attachment_name(spine_slot_data self, const char* attachmentName) { +void spine_slot_data_set_attachment_name(spine_slot_data self, const char * attachmentName) { ((SlotData*)self)->setAttachmentName(String(attachmentName)); } -const char* spine_slot_data_get_attachment_name(spine_slot_data self) { +const char * spine_slot_data_get_attachment_name(spine_slot_data self) { return ((SlotData*)self)->getAttachmentName().buffer(); } @@ -47,7 +47,7 @@ spine_slot_pose spine_slot_data_get_setup_pose(spine_slot_data self) { return (spine_slot_pose)&((PosedDataGeneric*)(SlotData*)self)->getSetupPose(); } -const char* spine_slot_data_get_name(spine_slot_data self) { +const char * spine_slot_data_get_name(spine_slot_data self) { return ((PosedDataGeneric*)(SlotData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/slot_data.h b/spine-c/src/generated/slot_data.h index 61bb2075c..4e4506d61 100644 --- a/spine-c/src/generated/slot_data.h +++ b/spine-c/src/generated/slot_data.h @@ -8,20 +8,20 @@ extern "C" { #endif -SPINE_C_API spine_slot_data spine_slot_data_create(int index, const char* name, spine_bone_data boneData); +SPINE_C_API spine_slot_data spine_slot_data_create(int index, const char * name, spine_bone_data boneData); SPINE_C_API void spine_slot_data_dispose(spine_slot_data self); SPINE_C_API int spine_slot_data_get_index(spine_slot_data self); SPINE_C_API spine_bone_data spine_slot_data_get_bone_data(spine_slot_data self); -SPINE_C_API void spine_slot_data_set_attachment_name(spine_slot_data self, const char* attachmentName); -SPINE_C_API const char* spine_slot_data_get_attachment_name(spine_slot_data self); +SPINE_C_API void spine_slot_data_set_attachment_name(spine_slot_data self, const char * attachmentName); +SPINE_C_API const char * spine_slot_data_get_attachment_name(spine_slot_data self); SPINE_C_API spine_blend_mode spine_slot_data_get_blend_mode(spine_slot_data self); SPINE_C_API void spine_slot_data_set_blend_mode(spine_slot_data self, spine_blend_mode blendMode); SPINE_C_API bool spine_slot_data_get_visible(spine_slot_data self); SPINE_C_API void spine_slot_data_set_visible(spine_slot_data self, bool visible); SPINE_C_API spine_slot_pose spine_slot_data_get_setup_pose(spine_slot_data self); -SPINE_C_API const char* spine_slot_data_get_name(spine_slot_data self); +SPINE_C_API const char * spine_slot_data_get_name(spine_slot_data self); SPINE_C_API bool spine_slot_data_get_skin_required(spine_slot_data self); SPINE_C_API void spine_slot_data_set_skin_required(spine_slot_data self, bool skinRequired); diff --git a/spine-c/src/generated/texture_region.cpp b/spine-c/src/generated/texture_region.cpp index 67fcf2d84..adc5e518f 100644 --- a/spine-c/src/generated/texture_region.cpp +++ b/spine-c/src/generated/texture_region.cpp @@ -11,6 +11,10 @@ void spine_texture_region_dispose(spine_texture_region self) { delete (TextureRegion*)self; } +spine_rtti spine_texture_region_get_rtti(spine_texture_region self) { + return (spine_rtti)&((TextureRegion*)self)->getRTTI(); +} + float spine_texture_region_get_u(spine_texture_region self) { return ((TextureRegion*)self)->getU(); } @@ -43,30 +47,6 @@ void spine_texture_region_set_v2(spine_texture_region self, float value) { ((TextureRegion*)self)->setV2(value); } -int spine_texture_region_get_degrees(spine_texture_region self) { - return ((TextureRegion*)self)->getDegrees(); -} - -void spine_texture_region_set_degrees(spine_texture_region self, int value) { - ((TextureRegion*)self)->setDegrees(value); -} - -float spine_texture_region_get_offset_x(spine_texture_region self) { - return ((TextureRegion*)self)->getOffsetX(); -} - -void spine_texture_region_set_offset_x(spine_texture_region self, float value) { - ((TextureRegion*)self)->setOffsetX(value); -} - -float spine_texture_region_get_offset_y(spine_texture_region self) { - return ((TextureRegion*)self)->getOffsetY(); -} - -void spine_texture_region_set_offset_y(spine_texture_region self, float value) { - ((TextureRegion*)self)->setOffsetY(value); -} - int spine_texture_region_get_region_width(spine_texture_region self) { return ((TextureRegion*)self)->getRegionWidth(); } @@ -83,18 +63,6 @@ void spine_texture_region_set_region_height(spine_texture_region self, int value ((TextureRegion*)self)->setRegionHeight(value); } -int spine_texture_region_get_original_width(spine_texture_region self) { - return ((TextureRegion*)self)->getOriginalWidth(); -} - -void spine_texture_region_set_original_width(spine_texture_region self, int value) { - ((TextureRegion*)self)->setOriginalWidth(value); -} - -int spine_texture_region_get_original_height(spine_texture_region self) { - return ((TextureRegion*)self)->getOriginalHeight(); -} - -void spine_texture_region_set_original_height(spine_texture_region self, int value) { - ((TextureRegion*)self)->setOriginalHeight(value); +spine_rtti spine_texture_region_rtti(void) { + return (spine_rtti)&TextureRegion::rtti; } diff --git a/spine-c/src/generated/texture_region.h b/spine-c/src/generated/texture_region.h index cfd52dc5d..be446b92e 100644 --- a/spine-c/src/generated/texture_region.h +++ b/spine-c/src/generated/texture_region.h @@ -12,6 +12,7 @@ SPINE_C_API spine_texture_region spine_texture_region_create(void); SPINE_C_API void spine_texture_region_dispose(spine_texture_region self); +SPINE_C_API spine_rtti spine_texture_region_get_rtti(spine_texture_region self); SPINE_C_API float spine_texture_region_get_u(spine_texture_region self); SPINE_C_API void spine_texture_region_set_u(spine_texture_region self, float value); SPINE_C_API float spine_texture_region_get_v(spine_texture_region self); @@ -20,20 +21,11 @@ SPINE_C_API float spine_texture_region_get_u2(spine_texture_region self); SPINE_C_API void spine_texture_region_set_u2(spine_texture_region self, float value); SPINE_C_API float spine_texture_region_get_v2(spine_texture_region self); SPINE_C_API void spine_texture_region_set_v2(spine_texture_region self, float value); -SPINE_C_API int spine_texture_region_get_degrees(spine_texture_region self); -SPINE_C_API void spine_texture_region_set_degrees(spine_texture_region self, int value); -SPINE_C_API float spine_texture_region_get_offset_x(spine_texture_region self); -SPINE_C_API void spine_texture_region_set_offset_x(spine_texture_region self, float value); -SPINE_C_API float spine_texture_region_get_offset_y(spine_texture_region self); -SPINE_C_API void spine_texture_region_set_offset_y(spine_texture_region self, float value); SPINE_C_API int spine_texture_region_get_region_width(spine_texture_region self); SPINE_C_API void spine_texture_region_set_region_width(spine_texture_region self, int value); SPINE_C_API int spine_texture_region_get_region_height(spine_texture_region self); SPINE_C_API void spine_texture_region_set_region_height(spine_texture_region self, int value); -SPINE_C_API int spine_texture_region_get_original_width(spine_texture_region self); -SPINE_C_API void spine_texture_region_set_original_width(spine_texture_region self, int value); -SPINE_C_API int spine_texture_region_get_original_height(spine_texture_region self); -SPINE_C_API void spine_texture_region_set_original_height(spine_texture_region self, int value); +SPINE_C_API spine_rtti spine_texture_region_rtti(void); #ifdef __cplusplus } diff --git a/spine-c/src/generated/transform_constraint_data.cpp b/spine-c/src/generated/transform_constraint_data.cpp index bb83cfd64..8683fb79d 100644 --- a/spine-c/src/generated/transform_constraint_data.cpp +++ b/spine-c/src/generated/transform_constraint_data.cpp @@ -3,7 +3,7 @@ using namespace spine; -spine_transform_constraint_data spine_transform_constraint_data_create(const char* name) { +spine_transform_constraint_data spine_transform_constraint_data_create(const char * name) { return (spine_transform_constraint_data) new (__FILE__, __LINE__) TransformConstraintData(String(name)); } @@ -115,7 +115,7 @@ spine_array_from_property spine_transform_constraint_data_get_properties(spine_t return (spine_array_from_property)&((TransformConstraintData*)self)->getProperties(); } -const char* spine_transform_constraint_data_get_name(spine_transform_constraint_data self) { +const char * spine_transform_constraint_data_get_name(spine_transform_constraint_data self) { return ((ConstraintDataGeneric*)(TransformConstraintData*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/transform_constraint_data.h b/spine-c/src/generated/transform_constraint_data.h index 6616a36ef..0fe217d05 100644 --- a/spine-c/src/generated/transform_constraint_data.h +++ b/spine-c/src/generated/transform_constraint_data.h @@ -8,7 +8,7 @@ extern "C" { #endif -SPINE_C_API spine_transform_constraint_data spine_transform_constraint_data_create(const char* name); +SPINE_C_API spine_transform_constraint_data spine_transform_constraint_data_create(const char * name); SPINE_C_API void spine_transform_constraint_data_dispose(spine_transform_constraint_data self); @@ -38,7 +38,7 @@ SPINE_C_API void spine_transform_constraint_data_set_additive(spine_transform_co SPINE_C_API bool spine_transform_constraint_data_get_clamp(spine_transform_constraint_data self); SPINE_C_API void spine_transform_constraint_data_set_clamp(spine_transform_constraint_data self, bool clamp); SPINE_C_API spine_array_from_property spine_transform_constraint_data_get_properties(spine_transform_constraint_data self); -SPINE_C_API const char* spine_transform_constraint_data_get_name(spine_transform_constraint_data self); +SPINE_C_API const char * spine_transform_constraint_data_get_name(spine_transform_constraint_data self); SPINE_C_API bool spine_transform_constraint_data_get_skin_required(spine_transform_constraint_data self); SPINE_C_API spine_transform_constraint_pose spine_transform_constraint_data_get_setup_pose(spine_transform_constraint_data self); SPINE_C_API void spine_transform_constraint_data_set_skin_required(spine_transform_constraint_data self, bool skinRequired); diff --git a/spine-c/src/generated/vertex_attachment.cpp b/spine-c/src/generated/vertex_attachment.cpp index 9773a5075..75b816974 100644 --- a/spine-c/src/generated/vertex_attachment.cpp +++ b/spine-c/src/generated/vertex_attachment.cpp @@ -59,7 +59,7 @@ void spine_vertex_attachment_copy_to(spine_vertex_attachment self, spine_vertex_ ((VertexAttachment*)self)->copyTo((VertexAttachment *)other); } -const char* spine_vertex_attachment_get_name(spine_vertex_attachment self) { +const char * spine_vertex_attachment_get_name(spine_vertex_attachment self) { return ((Attachment*)(VertexAttachment*)self)->getName().buffer(); } diff --git a/spine-c/src/generated/vertex_attachment.h b/spine-c/src/generated/vertex_attachment.h index fea439e6e..cb15198bd 100644 --- a/spine-c/src/generated/vertex_attachment.h +++ b/spine-c/src/generated/vertex_attachment.h @@ -23,7 +23,7 @@ SPINE_C_API void spine_vertex_attachment_set_world_vertices_length(spine_vertex_ SPINE_C_API spine_attachment spine_vertex_attachment_get_timeline_attachment(spine_vertex_attachment self); SPINE_C_API void spine_vertex_attachment_set_timeline_attachment(spine_vertex_attachment self, spine_attachment attachment); SPINE_C_API void spine_vertex_attachment_copy_to(spine_vertex_attachment self, spine_vertex_attachment other); -SPINE_C_API const char* spine_vertex_attachment_get_name(spine_vertex_attachment self); +SPINE_C_API const char * spine_vertex_attachment_get_name(spine_vertex_attachment self); SPINE_C_API spine_attachment spine_vertex_attachment_copy(spine_vertex_attachment self); SPINE_C_API int spine_vertex_attachment_get_ref_count(spine_vertex_attachment self); SPINE_C_API void spine_vertex_attachment_reference(spine_vertex_attachment self);