mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[c] Fix formatting generated by codgen.
This commit is contained in:
parent
a687a6c05c
commit
8503ae00d3
@ -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,
|
||||
|
||||
@ -232,9 +232,9 @@ export function toCTypeName(cppType: string, knownTypeNames: Set<string>): 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
|
||||
|
||||
@ -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();
|
||||
}
|
||||
@ -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<int>*)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;
|
||||
}
|
||||
|
||||
@ -12,10 +12,19 @@ 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);
|
||||
@ -24,6 +33,14 @@ SPINE_C_API void spine_atlas_region_set_name(spine_atlas_region self, const char
|
||||
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
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user