mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
New Spine 3.9 latest runtimes
This commit is contained in:
parent
008ae69f58
commit
834a582158
9 changed files with 4905 additions and 41 deletions
1750
plugins/spine/src/runtimes/spine-both.d.ts
vendored
Normal file
1750
plugins/spine/src/runtimes/spine-both.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1346,12 +1346,12 @@ var spine;
|
|||
var AnimationState = (function () {
|
||||
function AnimationState(data) {
|
||||
this.tracks = new Array();
|
||||
this.timeScale = 1;
|
||||
this.events = new Array();
|
||||
this.listeners = new Array();
|
||||
this.queue = new EventQueue(this);
|
||||
this.propertyIDs = new spine.IntSet();
|
||||
this.animationsChanged = false;
|
||||
this.timeScale = 1;
|
||||
this.trackEntryPool = new spine.Pool(function () { return new TrackEntry(); });
|
||||
this.data = data;
|
||||
}
|
||||
|
@ -2097,24 +2097,24 @@ var spine;
|
|||
EventType[EventType["complete"] = 4] = "complete";
|
||||
EventType[EventType["event"] = 5] = "event";
|
||||
})(EventType = spine.EventType || (spine.EventType = {}));
|
||||
var AnimationStateAdapter2 = (function () {
|
||||
function AnimationStateAdapter2() {
|
||||
var AnimationStateAdapter = (function () {
|
||||
function AnimationStateAdapter() {
|
||||
}
|
||||
AnimationStateAdapter2.prototype.start = function (entry) {
|
||||
AnimationStateAdapter.prototype.start = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.interrupt = function (entry) {
|
||||
AnimationStateAdapter.prototype.interrupt = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.end = function (entry) {
|
||||
AnimationStateAdapter.prototype.end = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.dispose = function (entry) {
|
||||
AnimationStateAdapter.prototype.dispose = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.complete = function (entry) {
|
||||
AnimationStateAdapter.prototype.complete = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.event = function (entry, event) {
|
||||
AnimationStateAdapter.prototype.event = function (entry, event) {
|
||||
};
|
||||
return AnimationStateAdapter2;
|
||||
return AnimationStateAdapter;
|
||||
}());
|
||||
spine.AnimationStateAdapter2 = AnimationStateAdapter2;
|
||||
spine.AnimationStateAdapter = AnimationStateAdapter;
|
||||
})(spine || (spine = {}));
|
||||
var spine;
|
||||
(function (spine) {
|
||||
|
@ -2484,10 +2484,10 @@ var spine;
|
|||
this.appliedValid = false;
|
||||
this.a = 0;
|
||||
this.b = 0;
|
||||
this.worldX = 0;
|
||||
this.c = 0;
|
||||
this.d = 0;
|
||||
this.worldY = 0;
|
||||
this.worldX = 0;
|
||||
this.sorted = false;
|
||||
this.active = false;
|
||||
if (data == null)
|
||||
|
@ -6416,6 +6416,9 @@ var spine;
|
|||
this.darkColor = data.darkColor == null ? null : new spine.Color();
|
||||
this.setToSetupPose();
|
||||
}
|
||||
Slot.prototype.getSkeleton = function () {
|
||||
return this.bone.skeleton;
|
||||
};
|
||||
Slot.prototype.getAttachment = function () {
|
||||
return this.attachment;
|
||||
};
|
||||
|
@ -8492,7 +8495,19 @@ var spine;
|
|||
var gl = this.context.gl;
|
||||
this.bind();
|
||||
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, minFilter);
|
||||
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, magFilter);
|
||||
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, GLTexture.validateMagFilter(magFilter));
|
||||
};
|
||||
GLTexture.validateMagFilter = function (magFilter) {
|
||||
switch (magFilter) {
|
||||
case spine.TextureFilter.MipMap:
|
||||
case spine.TextureFilter.MipMapLinearLinear:
|
||||
case spine.TextureFilter.MipMapLinearNearest:
|
||||
case spine.TextureFilter.MipMapNearestLinear:
|
||||
case spine.TextureFilter.MipMapNearestNearest:
|
||||
return spine.TextureFilter.Linear;
|
||||
default:
|
||||
return magFilter;
|
||||
}
|
||||
};
|
||||
GLTexture.prototype.setWraps = function (uWrap, vWrap) {
|
||||
var gl = this.context.gl;
|
||||
|
|
File diff suppressed because one or more lines are too long
1362
plugins/spine/src/runtimes/spine-canvas.d.ts
vendored
Normal file
1362
plugins/spine/src/runtimes/spine-canvas.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1346,12 +1346,12 @@ var spine;
|
|||
var AnimationState = (function () {
|
||||
function AnimationState(data) {
|
||||
this.tracks = new Array();
|
||||
this.timeScale = 1;
|
||||
this.events = new Array();
|
||||
this.listeners = new Array();
|
||||
this.queue = new EventQueue(this);
|
||||
this.propertyIDs = new spine.IntSet();
|
||||
this.animationsChanged = false;
|
||||
this.timeScale = 1;
|
||||
this.trackEntryPool = new spine.Pool(function () { return new TrackEntry(); });
|
||||
this.data = data;
|
||||
}
|
||||
|
@ -2097,24 +2097,24 @@ var spine;
|
|||
EventType[EventType["complete"] = 4] = "complete";
|
||||
EventType[EventType["event"] = 5] = "event";
|
||||
})(EventType = spine.EventType || (spine.EventType = {}));
|
||||
var AnimationStateAdapter2 = (function () {
|
||||
function AnimationStateAdapter2() {
|
||||
var AnimationStateAdapter = (function () {
|
||||
function AnimationStateAdapter() {
|
||||
}
|
||||
AnimationStateAdapter2.prototype.start = function (entry) {
|
||||
AnimationStateAdapter.prototype.start = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.interrupt = function (entry) {
|
||||
AnimationStateAdapter.prototype.interrupt = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.end = function (entry) {
|
||||
AnimationStateAdapter.prototype.end = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.dispose = function (entry) {
|
||||
AnimationStateAdapter.prototype.dispose = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.complete = function (entry) {
|
||||
AnimationStateAdapter.prototype.complete = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.event = function (entry, event) {
|
||||
AnimationStateAdapter.prototype.event = function (entry, event) {
|
||||
};
|
||||
return AnimationStateAdapter2;
|
||||
return AnimationStateAdapter;
|
||||
}());
|
||||
spine.AnimationStateAdapter2 = AnimationStateAdapter2;
|
||||
spine.AnimationStateAdapter = AnimationStateAdapter;
|
||||
})(spine || (spine = {}));
|
||||
var spine;
|
||||
(function (spine) {
|
||||
|
@ -2484,10 +2484,10 @@ var spine;
|
|||
this.appliedValid = false;
|
||||
this.a = 0;
|
||||
this.b = 0;
|
||||
this.worldX = 0;
|
||||
this.c = 0;
|
||||
this.d = 0;
|
||||
this.worldY = 0;
|
||||
this.worldX = 0;
|
||||
this.sorted = false;
|
||||
this.active = false;
|
||||
if (data == null)
|
||||
|
@ -6416,6 +6416,9 @@ var spine;
|
|||
this.darkColor = data.darkColor == null ? null : new spine.Color();
|
||||
this.setToSetupPose();
|
||||
}
|
||||
Slot.prototype.getSkeleton = function () {
|
||||
return this.bone.skeleton;
|
||||
};
|
||||
Slot.prototype.getAttachment = function () {
|
||||
return this.attachment;
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
1719
plugins/spine/src/runtimes/spine-webgl.d.ts
vendored
Normal file
1719
plugins/spine/src/runtimes/spine-webgl.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1346,12 +1346,12 @@ var spine;
|
|||
var AnimationState = (function () {
|
||||
function AnimationState(data) {
|
||||
this.tracks = new Array();
|
||||
this.timeScale = 1;
|
||||
this.events = new Array();
|
||||
this.listeners = new Array();
|
||||
this.queue = new EventQueue(this);
|
||||
this.propertyIDs = new spine.IntSet();
|
||||
this.animationsChanged = false;
|
||||
this.timeScale = 1;
|
||||
this.trackEntryPool = new spine.Pool(function () { return new TrackEntry(); });
|
||||
this.data = data;
|
||||
}
|
||||
|
@ -2097,24 +2097,24 @@ var spine;
|
|||
EventType[EventType["complete"] = 4] = "complete";
|
||||
EventType[EventType["event"] = 5] = "event";
|
||||
})(EventType = spine.EventType || (spine.EventType = {}));
|
||||
var AnimationStateAdapter2 = (function () {
|
||||
function AnimationStateAdapter2() {
|
||||
var AnimationStateAdapter = (function () {
|
||||
function AnimationStateAdapter() {
|
||||
}
|
||||
AnimationStateAdapter2.prototype.start = function (entry) {
|
||||
AnimationStateAdapter.prototype.start = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.interrupt = function (entry) {
|
||||
AnimationStateAdapter.prototype.interrupt = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.end = function (entry) {
|
||||
AnimationStateAdapter.prototype.end = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.dispose = function (entry) {
|
||||
AnimationStateAdapter.prototype.dispose = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.complete = function (entry) {
|
||||
AnimationStateAdapter.prototype.complete = function (entry) {
|
||||
};
|
||||
AnimationStateAdapter2.prototype.event = function (entry, event) {
|
||||
AnimationStateAdapter.prototype.event = function (entry, event) {
|
||||
};
|
||||
return AnimationStateAdapter2;
|
||||
return AnimationStateAdapter;
|
||||
}());
|
||||
spine.AnimationStateAdapter2 = AnimationStateAdapter2;
|
||||
spine.AnimationStateAdapter = AnimationStateAdapter;
|
||||
})(spine || (spine = {}));
|
||||
var spine;
|
||||
(function (spine) {
|
||||
|
@ -2484,10 +2484,10 @@ var spine;
|
|||
this.appliedValid = false;
|
||||
this.a = 0;
|
||||
this.b = 0;
|
||||
this.worldX = 0;
|
||||
this.c = 0;
|
||||
this.d = 0;
|
||||
this.worldY = 0;
|
||||
this.worldX = 0;
|
||||
this.sorted = false;
|
||||
this.active = false;
|
||||
if (data == null)
|
||||
|
@ -6416,6 +6416,9 @@ var spine;
|
|||
this.darkColor = data.darkColor == null ? null : new spine.Color();
|
||||
this.setToSetupPose();
|
||||
}
|
||||
Slot.prototype.getSkeleton = function () {
|
||||
return this.bone.skeleton;
|
||||
};
|
||||
Slot.prototype.getAttachment = function () {
|
||||
return this.attachment;
|
||||
};
|
||||
|
@ -8224,7 +8227,19 @@ var spine;
|
|||
var gl = this.context.gl;
|
||||
this.bind();
|
||||
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, minFilter);
|
||||
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, magFilter);
|
||||
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, GLTexture.validateMagFilter(magFilter));
|
||||
};
|
||||
GLTexture.validateMagFilter = function (magFilter) {
|
||||
switch (magFilter) {
|
||||
case spine.TextureFilter.MipMap:
|
||||
case spine.TextureFilter.MipMapLinearLinear:
|
||||
case spine.TextureFilter.MipMapLinearNearest:
|
||||
case spine.TextureFilter.MipMapNearestLinear:
|
||||
case spine.TextureFilter.MipMapNearestNearest:
|
||||
return spine.TextureFilter.Linear;
|
||||
default:
|
||||
return magFilter;
|
||||
}
|
||||
};
|
||||
GLTexture.prototype.setWraps = function (uWrap, vWrap) {
|
||||
var gl = this.context.gl;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue