We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e326092 commit d6e2e9fCopy full SHA for d6e2e9f
common/src/main/kotlin/com/lambda/graphics/gl/Matrices.kt
@@ -15,6 +15,10 @@ object Matrices {
15
stack.last().translate(x, y, z)
16
}
17
18
+ fun scale(x: Double, y: Double, z: Double) {
19
+ stack.last().scale(x.toFloat(), y.toFloat(), z.toFloat())
20
+ }
21
+
22
fun scale(x: Float, y: Float, z: Float) {
23
stack.last().scale(x, y, z)
24
@@ -32,6 +36,12 @@ object Matrices {
32
36
stack.addLast(Matrix4f(entry))
33
37
34
38
39
+ fun push(block: Matrices.() -> Unit) {
40
+ push()
41
+ this.block()
42
+ pop()
43
44
35
45
fun pop() {
46
stack.removeLast()
47
0 commit comments