mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Apply formatter.
This commit is contained in:
parent
c5bab4ccfc
commit
83945e17dc
@ -106,7 +106,8 @@ static void toColor2(spColor *color, const char *value, int /*bool*/ hasAlpha) {
|
|||||||
color->g = toColor(value, 1);
|
color->g = toColor(value, 1);
|
||||||
color->b = toColor(value, 2);
|
color->b = toColor(value, 2);
|
||||||
if (hasAlpha) color->a = toColor(value, 3);
|
if (hasAlpha) color->a = toColor(value, 3);
|
||||||
else color->a =1.0f;
|
else
|
||||||
|
color->a = 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@ -305,7 +305,7 @@ export class SpineAtlasFile extends Phaser.Loader.MultiFile {
|
|||||||
} else {
|
} else {
|
||||||
file.data = {
|
file.data = {
|
||||||
data: file.data,
|
data: file.data,
|
||||||
premultipliedAlpha: this.premultipliedAlpha || file.data.indexOf("pma: true") >= 0
|
premultipliedAlpha: this.premultipliedAlpha || file.data.indexOf("pma: true") >= 0
|
||||||
};
|
};
|
||||||
file.addToCache();
|
file.addToCache();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -86,7 +86,7 @@ export class SceneRenderer implements Disposable {
|
|||||||
this.enableRenderer(this.batcher);
|
this.enableRenderer(this.batcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
drawSkeleton (skeleton: Skeleton, premultipliedAlpha = false, slotRangeStart = -1, slotRangeEnd = -1, transform: VertexTransformer | null = null) {
|
drawSkeleton (skeleton: Skeleton, premultipliedAlpha = false, slotRangeStart = -1, slotRangeEnd = -1, transform: VertexTransformer | null = null) {
|
||||||
this.enableRenderer(this.batcher);
|
this.enableRenderer(this.batcher);
|
||||||
this.skeletonRenderer.premultipliedAlpha = premultipliedAlpha;
|
this.skeletonRenderer.premultipliedAlpha = premultipliedAlpha;
|
||||||
this.skeletonRenderer.draw(this.batcher, skeleton, slotRangeStart, slotRangeEnd, transform);
|
this.skeletonRenderer.draw(this.batcher, skeleton, slotRangeStart, slotRangeEnd, transform);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user