Step 1 of #8. 1.21.11's version-specific code moves from versions/1.21.11/src to the top-level src/, built by Stonecutter as the project :1.21.11. The other versions still build from their own copies as :mc-<v> until they're folded in. - settings.gradle: applies Stonecutter (Groovy controller) with stonecutterVersions = ["1.21.11"] and skips those folders when including the old mc-<v> projects. - The old root build.gradle becomes stonecutter.gradle (the root project's script, with the shared repositories, common wiring and buildAll), and 1.21.11's build.gradle becomes the root build.gradle that Stonecutter runs for each version. versions/1.21.11 keeps its gradle.properties and run/. - The jar has the same 415 entries, fabric.mod.json and mixin configs as before; the only class differences also appear when rebuilding an untouched version today. - scripts/port.sh treats src/ as the active Stonecutter version, so changes port between it and the old copies both ways. - README and VERSION_GUIDE describe the layout, version comments and how to add a version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
44 lines
968 B
Java
44 lines
968 B
Java
package org.saturnclient.impl.ref;
|
|
|
|
import org.joml.Matrix3x2fStack;
|
|
import org.saturnclient.common.ref.render.MatrixStackRef;
|
|
|
|
public class Matrix3x2fStackRef implements MatrixStackRef {
|
|
public final Matrix3x2fStack stack;
|
|
|
|
public Matrix3x2fStackRef(Matrix3x2fStack stack) {
|
|
this.stack = stack;
|
|
}
|
|
|
|
@Override
|
|
public void push() {
|
|
stack.pushMatrix();
|
|
}
|
|
|
|
@Override
|
|
public void pop() {
|
|
stack.popMatrix();
|
|
}
|
|
|
|
@Override
|
|
public void scale(float x, float y) {
|
|
stack.scale(x, y);
|
|
}
|
|
|
|
@Override
|
|
public void translate(float x, float y) {
|
|
stack.translate(x, y);
|
|
}
|
|
|
|
@Override
|
|
public void rotate(float angle) {
|
|
stack.rotate((float) Math.toRadians(angle));
|
|
}
|
|
|
|
@Override
|
|
public void rotate(float angle, float originX, float originY, float originZ) {
|
|
translate(originX, originY);
|
|
rotate(angle);
|
|
translate(-originX, -originY);
|
|
}
|
|
} |