mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Formatting
This commit is contained in:
parent
9ec6ead094
commit
e5bc9b709e
@ -140,7 +140,8 @@ public class SkeletonRenderer {
|
||||
}
|
||||
|
||||
command.vertices.setSize(command.vertices.size + verticesLength);
|
||||
region.computeWorldVertices(slot, sequence.getOffsets(sequenceIndex), command.vertices.items, vertexStart, vertexSize);
|
||||
region.computeWorldVertices(slot, sequence.getOffsets(sequenceIndex), command.vertices.items, vertexStart,
|
||||
vertexSize);
|
||||
uvs = sequence.getUVs(sequenceIndex);
|
||||
indices = quadTriangles;
|
||||
color = region.getColor();
|
||||
|
||||
@ -5,6 +5,5 @@
|
||||
import FlutterMacOS
|
||||
import Foundation
|
||||
|
||||
|
||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
}
|
||||
|
||||
@ -81,7 +81,8 @@ int main() {
|
||||
|
||||
int skeleton_length = 0;
|
||||
uint8_t *skeleton_bytes = read_file("data/spineboy-pro.skel", &skeleton_length);
|
||||
spine_skeleton_data_result skeleton_result = spine_skeleton_data_load_binary(atlas, skeleton_bytes, skeleton_length, "data/spineboy-pro.skel");
|
||||
spine_skeleton_data_result skeleton_result = spine_skeleton_data_load_binary(atlas, skeleton_bytes, skeleton_length,
|
||||
"data/spineboy-pro.skel");
|
||||
spine_skeleton_data skeleton_data = spine_skeleton_data_result_get_data(skeleton_result);
|
||||
spine_skeleton_data_result_dispose(skeleton_result);
|
||||
|
||||
|
||||
@ -82,8 +82,7 @@ int main() {
|
||||
skeleton.setupPose();
|
||||
skeleton.updateWorldTransform(spine::Physics_None);
|
||||
|
||||
std::cout << "Loaded mix-and-match successfully. Bones=" << skeletonData->getBones().size()
|
||||
<< ", slots=" << skeletonData->getSlots().size()
|
||||
std::cout << "Loaded mix-and-match successfully. Bones=" << skeletonData->getBones().size() << ", slots=" << skeletonData->getSlots().size()
|
||||
<< ", skins=" << skeletonData->getSkins().size() << std::endl;
|
||||
|
||||
delete skeletonData;
|
||||
|
||||
@ -68,7 +68,8 @@ func runSkeletonDrawableTestSwift() {
|
||||
|
||||
let boundsAfterPose = drawable.skeleton.bounds
|
||||
print(
|
||||
" Bounds after setupPose: x=\(boundsAfterPose.x), y=\(boundsAfterPose.y), width=\(boundsAfterPose.width), height=\(boundsAfterPose.height)")
|
||||
" Bounds after setupPose: x=\(boundsAfterPose.x), y=\(boundsAfterPose.y), width=\(boundsAfterPose.width), height=\(boundsAfterPose.height)"
|
||||
)
|
||||
|
||||
// Test position
|
||||
let position = drawable.skeleton.getPosition()
|
||||
@ -127,7 +128,9 @@ func runSkeletonDrawableTestSwift() {
|
||||
drawable.update(0.5) // Update to middle of jump
|
||||
|
||||
let boundsAfterJump = drawable.skeleton.bounds
|
||||
print(" Bounds during jump: x=\(boundsAfterJump.x), y=\(boundsAfterJump.y), width=\(boundsAfterJump.width), height=\(boundsAfterJump.height)")
|
||||
print(
|
||||
" Bounds during jump: x=\(boundsAfterJump.x), y=\(boundsAfterJump.y), width=\(boundsAfterJump.width), height=\(boundsAfterJump.height)"
|
||||
)
|
||||
|
||||
// Test skin entries
|
||||
print("\nTesting skin entries:")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user